Robofun 機器人論壇

標題: Arduino的High是定義成幾伏特? [打印本頁]

作者: henry1620    時間: 2015-3-5 17:03
標題: Arduino的High是定義成幾伏特?
大大好:

請問一下關於Arduino的digital Read(),是要超過幾伏才會被定義成HIGH呢?
作者: henry1620    時間: 2015-3-5 17:07
回復 1# henry1620


    已查到相關資訊
HIGH是5V
LOW是0V

提供給有需要的人一起用
作者: babyfish0226    時間: 2015-3-6 11:18
回復 2# henry1620
5V好像不太正確喔,下面是官方文件的說明資料來源 http://arduino.cc/en/Reference/Constants
HIGH

The meaning of HIGH (in reference to a pin) is somewhat different depending on whether a pin is set to an INPUT orOUTPUT. When a pin is configured as an INPUT with pinMode(), and read with digitalRead(), the Arduino (Atmega) will report HIGH if:

A pin may also be configured as an INPUT with pinMode(), and subsequently made HIGH with digitalWrite(). This will enable the internal 20K pullup resistors, which will pull up the input pin to a HIGH reading unless it is pulled LOW by external circuitry. This is how INPUT_PULLUP works and is described below in more detail.

When a pin is configured to OUTPUT with pinMode(), and set to HIGH with digitalWrite(), the pin is at:

In this state it can source current, e.g. light an LED that is connected through a series resistor to ground.


作者: henry1620    時間: 2015-3-8 00:35
謝謝b大的回覆!!!




歡迎光臨 Robofun 機器人論壇 (https://robofun.net/forum/) Powered by Discuz! X3.2