| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
DFR0055 bảng dữ liệu(PDF) 4 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0055 bảng dữ liệu(HTML) 4 Page - DFROBOT |
|
4 / 6 page ![]() 2.Waterproof DS18B20 Digital Temperature Sensor & Arduino board 1(A) ----> Digital Pin2 2(B) ----> 5V/3.3V 3(C) ----> GND Setting for the Pull-up Register/Pull-down Register Selection Jumpers When connect DS18B20 with the adapter,please choose to use the Pull-up Register Jumper ***************************************************************/ #include <OneWire.h> int DS18S20_Pin = 2; //DS18S20 Signal pin on digital 2 //Temperature chip i/o OneWire ds(DS18S20_Pin); // on digital pin 2 void setup(void) { Serial.begin(9600); } void loop(void) { float temperature = getTemp(); Serial.println(temperature); delay(2000); //just here to slow down the output so it is easier to read } float getTemp(){ //returns the temperature from one DS18S20 in DEG Celsius byte data[12]; byte addr[8]; |
|
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |