星期二, 2月 11, 2014

避免開關鍵太常按損壞,可使用-- 快速開啟螢幕 (Fast Screen ON) -- app

使用手機的感應器,來開啟手機的螢幕。
它可以幫助您快速的開啟、關閉螢幕及鎖定手機。

如果使用上有出現問題,請回報原作者 (https://plus.google.com/113083942365279378210)。

  • 影片:
http://www.youtube.com/watch?v=5yT_M4YeLjc
  • 影片:
http://www.youtube.com/watch?v=Kn4oTOIOJzs
  • 影片:
http://www.youtube.com/watch?v=0I2CRFy3WFQ

  • 使用方法:

將手在手機的感應器前面,快速的來回揮動 2~3次,
就能
開啟手機的螢幕
將手在手機的感應器前面,快速的來回揮動 2~3次,
就能
關閉手機的螢幕
(某些手機,可能無法使用。)

使用【別讓手機進入深度睡眠】這個功能時,
手機能夠正常的開啟螢幕,不會反應遲鈍,
開啟這個功能後,需要重新啟動【喚醒手機】這個功能,
重新載入常駐程式後,
手機關閉螢幕之後,
才能夠保持快速的反應速度。
(如果手機進入深度睡眠,必須在感應器前面,多次快速揮動手,才能開啟螢幕)

----------------------------
請勾選以下選項,第 1 個選項,最後才勾選開啟
1. 喚醒手機
2. 另一種 喚醒手機 的方式
7. 設定成 裝置管理員
8. 使用感應器來關閉螢幕
9. 螢幕的正面朝下,關閉手機的螢幕。
10. 當手機橫向顯示時,避免使用 接近感應器 關閉螢幕。
~~~~~~~~~~
如果手機不能使用【接近感應器】來開啟 和 關閉 螢幕。
請再勾選
6. 別讓手機進入深度睡眠
13. 螢幕的正面朝下,開啟手機的螢幕。
然後重新開啟 第 1 個選項,
試看看螢幕向下能不能開啟螢幕。
注意:
螢幕關閉後3秒內,不能開啟螢幕,
螢幕開啟後10秒內,不能關閉螢幕。

----------------------------
新增 - 另一種 喚醒手機 的方式
【也許能夠喚醒原本無法喚醒的手機】

經過多次測試,可以正常開啟手機,
同時勾選 第一個 和 第二個 喚醒手機的功能,
試看看它能不能開啟螢幕。
----------------------------
解除安裝:
當程式已經設定成 【裝置管理員】,
程式會無法解除安裝,
必須先解除程式的【裝置管理員】權限。

將【設定成 裝置管理員】的選項 取消勾選,
之後程式就能被移除了。

或是到 設定->安全性->裝置管理員,
取消勾選程式,就能取消程式的【裝置管理員】權限。


  • 資料來源: 

https://plus.google.com/113083942365279378210
https://play.google.com/store/apps/details?id=fast.screen.on&hl=zh-TW

Android 會被自動下載廣告app

安裝完 google app [藍色光濾波器] 會造成無法再安裝其他 app,另外,會出現深層睡眠造成關機現象。也會出現許多自動下載的廣告 app 出現,要小心,不然記憶體很快就滿了!!

另外,其也會影響 [快速開啟螢幕] app 的設定,造成會出現深層睡眠,造成關機現象。

星期一, 2月 10, 2014

網頁被 snap.do 綁架

如果不幸你的網頁被 snap.do 綁架,那你需要就你電腦現有的瀏覽器軟體全部設定一下。但首先移除安裝的程式,再來到 regedit 尋找 snap.do 字言的相關設定,移除它!

PS. 會安裝到 snap.do 可能是安裝 youtube downloader HD 時被夾帶安裝,請三思!!如果要下載 youtube 建議使用 realplayer downloader
===================================================================

以下提供三個常見的瀏覽器解決辦法:


※您的瀏覽器是Internet Explorer

第一步、確認IE是否為正確的IE

資料夾位址是 C:\Program Files\Internet Explorer,點開 iexplore.exe 看一下您的首頁是不是自己的網址,如果是的話就證明您進入的IE捷徑是假的,所以您怎麼點就只會連到他要求的那個網址,這樣就只需要將捷徑刪除重新拉一個新的就好。

第二步、檢查啟動程式

從「開始」→「所有程式」→「啟動」,裡面看看有沒有什麼莫名其妙的程式或軟體把它刪了。

第三步、從控制台移除snap.do

A.開始→控制台→程式集下的"解除安裝程式"。(WinXP是"新增移除程式")

B.把snap.do有關的軟體或程式刪除。

第四步、從登錄編輯程式 regedit 中移除snap.do

A.按下開始藍圓球→上方的空白處(搜尋程式及檔案)打上"regedit",開啟登錄編輯程式。(WinXP是"開始"→"執行"→打上"regedit")

B.按下鍵盤上的"ctrl"和"F"鍵,在空白處打上"snap.do",把找到的資料全部刪除。

第五步、清除不必要的電腦暫存檔案

A.請刪除 C:\Temp\ 或 C:\Windows\Temp\ 目錄中的所有目錄與檔案。

B.點選視窗左下的"開始"功能表,點選"執行",輸入"%TEMP%",點選"確定",將開啟的資料夾內所有的資料夾與檔案刪除。(若上述有檔案無法刪除請直接略過。)

C.刪除 Temporary Internet Files 瀏覽歷程紀錄,相關IE對應版本請參考以下網址:

檢查IE版本:http://esupport.trendmicro.com/solution/zh-tw/1075992.aspx

IE 6.0請參考:http://esupport.trendmicro.com/solution/zh-tw/1070797.aspx

IE 7.0請參考:http://esupport.trendmicro.com/solution/zh-tw/1070535.aspx

IE 8.0請參考:http://esupport.trendmicro.com/solution/zh-tw/1071233.aspx

IE 9.0請參考:http://esupport.trendmicro.com/solution/zh-tw/1075968.aspx



※您的瀏覽器是Google Chrome (目前最新版本為 v32.0)

第一步、在管理搜尋引擎裡刪除snap.do

A.開啟Google Chrome瀏覽器。

B.瀏覽器右上角的三條線按下去,選擇"設定"。

C.在畫面中間有個"搜尋"的區塊,按下"管理搜尋引擎..."按鈕,把snap.do有關的網址全部刪除。(或是按下鍵盤上的"ctrl"和"F"鍵,在空白處打上"snap.do",把找到的資料全部刪除)


第二步、從控制台移除snap.do

A.開始→控制台→程式集下的"解除安裝程式"。(WinXP是"新增移除程式")

B.把snap.do有關的軟體或程式刪除。


第三步、從登錄編輯程式 regedit 中移除snap.do

A.按下開始藍圓球→上方的空白處(搜尋程式及檔案)打上"regedit",開啟登錄編輯程式。(WinXP是"開始"→"執行"→打上"regedit")

B.按下鍵盤上的"ctrl"和"F"鍵,在空白處打上"snap.do",把找到的資料全部刪除。



※您的瀏覽器是Firefox 

第一步、打開Firefox瀏覽器

第二步、在網址列輸入"about:config",然後會出現"隨便亂搞會讓保固失效"的視窗,按下"我發誓,我一定會小心的!"按鈕。

第三步、在搜尋欄位輸入"snap",此時會列出與snap有關的網址。
第四步、把有snap.do的網址點選起來,按下滑鼠右鍵,選擇"重設"。


============================================================

最後,電腦重新開機,試試看!
如果刪除後,瀏覽器無法使用、或是變慢、或是無法更新,哪可能還是需要做其他設定。


參考資料來源:
1. http://tw.knowledge.yahoo.com/question/article?qid=1713101205964

Lenovo G570 無法使用 Chrome 瀏覽器或出現藍底白色錯誤

會出現此現象可能為G570 筆電內建的 AMD 顯示卡與 windows 作業系統衝突造成的問題,所以需要更新驅動程式。


  • 請參考 Lenovo 官方網站下載 G570 driver 的 video 程式

http://support.lenovo.com/zh_TW/research/hints-or-tips/detail.page?DocID=HT072724


AMD Video Driver for Windows 7 (32-bit, 64-bit) - Lenovo G470, G570 ... Learn more

Version
: 8.790.9.1000(HD Audio: 7.12.0.7702)/8.981.0.0(HD Audio: 6.14.0.3086)

 AMD Video Driver   
Add to download list

安裝後,請重新開機。

星期二, 1月 14, 2014

Arduino 電路板簡介 (Introduction to the Arduino Board)

== Arduino 電路板簡介 (Introduction to the Arduino Board) ==


下圖為由上而下觀察 Arduino 電路板的架構圖


從頂部中心順時針開始說明 (Starting clockwise from the top center):

-- 類比參考腳位 [AREF] (橘色) Analog Reference pin (orange)
-- 數位控制接地 [GND] (淺綠色) Digital Ground (light green)
-- 數位控制腳位 2-13 (綠色) Digital Pins 2-13 (green)
-- 數位控制腳位 0-1/串列數位傳送與數位接收 - TX/RX (暗綠色) Digital Pins 0-1/Serial In/Out - TX/RX (dark green) - 如果同時使用在串列通信上,這些控制腳位不能被使用為數位輸入與輸出(傳送與接收) These pins cannot be used for digital i/o (digitalRead and digitalWrite) if you are also using serial communication (e.g. Serial.begin).
-- 復歸按鈕 [S1] (暗藍色) Reset Button - S1 (dark blue)
-- 電路串列程式器 (藍綠色) In-circuit Serial Programmer (blue-green)
-- 類比輸入控制腳位 (淺藍色) Analog In Pins 0-5 (light blue)
-- 電源和接地腳位 (電源: 橘色, 接地: 淺橘色) Power and Ground Pins (power: orange, grounds: light orange)
-- 外接電源供應輸入 (直流 9-12 V) [X1] (粉紅色) External Power Supply In (9-12VDC) - X1 (pink)
-- 切換外接電源和 USB 電源(跳線位置在兩個引腳互相最接近所需的電源)[SV1](紫色)Toggles External Power and USB Power (place jumper on two pins closest to desired supply) - SV1 (purple)
-- USB 輸入接口 (黃色) USB (used for uploading sketches to the board and for serial communication between the board and the computer; can be used to power the board) (yellow)

=======================================

微控制器 (Micro-controllers)

ATmega328 (used on most recent boards)
Digital I/O Pins14 (of which 6 provide PWM output)
Analog Input Pins6 (DIP) or 8 (SMD)
DC Current per I/O Pin40 mA
Flash Memory32 KB
SRAM2 KB
EEPROM1KB
ATmega168 (used on most Arduino Diecimila and early Duemilanove)
Digital I/O Pins14 (of which 6 provide PWM output)
Analog Input Pins6 (DIP) or 8 (SMD)
DC Current per I/O Pin40 mA
Flash Memory16 KB
SRAM1 KB
EEPROM512 bytes
ATmega8 (used on some older board)
Digital I/O Pins14 (of which 3 provide PWM output)
Analog Input Pins6
DC Current per I/O Pin40 mA
Flash Memory8 KB
SRAM1 KB
EEPROM512 bytes

=========================================

數位控制腳位 (Digital Pins)

In addition to the specific functions listed below, the digital pins on an Arduino board can be used for general purpose input and output via the pinMode()digitalRead(), and digitalWrite() commands. Each pin has an internal pull-up resistor which can be turned on and off using digitalWrite() (w/ a value of HIGH or LOW, respectively) when the pin is configured as an input. The maximum current per pin is 40 mA.

  • Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. On the Arduino Diecimila, these pins are connected to the corresponding pins of the FTDI USB-to-TTL Serial chip. On the Arduino BT, they are connected to the corresponding pins of theWT11 Bluetooth module. On the Arduino Mini and LilyPad Arduino, they are intended for use with an external TTL serial module (e.g. the Mini-USB Adapter).
  • External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details.
  • PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function. On boards with an ATmega8, PWM output is available only on pins 9, 10, and 11.
  • BT Reset: 7. (Arduino BT-only) Connected to the reset line of the bluetooth module.
  • SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language.
  • LED: 13. On the Diecimila and LilyPad, there is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.

====================================

類比控制腳位 (Analog Pins)

In addition to the specific functions listed below, the analog input pins support 10-bit analog-to-digital conversion (ADC) using the analogRead() function. Most of the analog inputs can also be used as digital pins: analog input 0 as digital pin 14 through analog input 5 as digital pin 19. Analog inputs 6 and 7 (present on the Mini and BT) cannot be used as digital pins.
  • I2C: 4 (SDA) and 5 (SCL). Support I2C (TWI) communication using the Wire library (documentation on the Wiring website).

======================================

電源控制腳位 (Power Pins)

  • VIN (sometimes labelled "9V"). The input voltage to the Arduino board when it's using an external power source (as opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin. Note that different boards accept different input voltages ranges, please see thedocumentation for your board. Also note that the LilyPad has no VIN pin and accepts only a regulated input.
  • 5V. The regulated power supply used to power the microcontroller and other components on the board. This can come either from VIN via an on-board regulator, or be supplied by USB or another regulated 5V supply.
  • 3V3. (Diecimila-only) A 3.3 volt supply generated by the on-board FTDI chip.
  • GND. Ground pins.

==================================

其他腳位 (Other Pins)

  • AREF. Reference voltage for the analog inputs. Used with analogReference().
  • Reset. (Diecimila-only) Bring this line LOW to reset the microcontroller. Typically used to add a reset button to shields which block the one on the board.


資料來源 (Reference):

使用 Proteus 軟體工具來模擬 Arduino

== 利用 Proteus 模擬 Arduino 電路板環境 ==

首先到官方網站下載 proteus 模擬軟體 (PRODEMO.EXE)
http://www.labcenter.com/download/prodemo_download.cfm


  • 安裝 prodemo.exe
  • 開啟 proteus 軟體工具-- open sample project -- 選擇 category [VSM for AVR] -- 選擇擬模擬的類似軟體環境 Results [Application note AVR241] 模擬 ATmega128 電路板模擬環境  



  • Arduino 與 ATMega328P 晶片的腳位對應關係圖

Blink 程式會讓 Arduino pin 13,也就是 ATmega328 的 PB5 這支腳位上的 LED 定時閃爍。

在用 Proteus 模擬 Arduino 的時候,你可能會需要參考底下這張腳位對應圖:
image

▲ 圖片來源: arduino.cc (註: ATmega328 跟 ATmega168 的腳位是相容的)



Reference:

Example- 光敏電阻 (photocell, photoresistor) 控制 LED

== 使用光敏電阻來控制 LED ==

  • 實驗目的
利用光敏電阻來控制 LED 的亮滅,在光線不足時,自動打開 LED 燈,反之,光線充足時便關掉 LED 燈。

  • 材料
  1. 麵包板 x 1
  2. Arduino 主板 x 1
  3. 光敏電阻(photocell) x 1
  4. 220 ohm 電阻 x 1
  5. 10k ohm 電阻 x 1
  6. 單心線 

  • 接線
  1. 光敏電阻一支腳接到 5V,另一支腳接到 analog pin 2 以及串接一顆 10k 電阻, 10k 電阻的另一端接到 GND
  2. LED 長腳(正極)串接一顆 220 ohm 電阻接到 pin 9,LED 短腳(負極)接到 GND
  

  • 程式碼
  1. 實驗過程首先要確認光敏電阻輸出電壓的數值變化,例如,執行程式後打開 Series Monitor 可觀察到 COM port 不斷收到的一串數值即是光敏電阻的變化數值。將手試著遮光,觀察電阻值變化,不遮光約為 85-89,另外遮光約為 5-6 
  2. 利用光敏電阻控制 LED 時要設定最小光線門檻值 int minLight = 50 (一定要小於先前未遮光的最小值 >85)方有效用。

  • 範例影片


Reference: