Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: _1602_ds1307_dht11_sr04 Download
  • Category:
  • Other systems
  • Tags:
  • File Size:
  • 2kb
  • Update:
  • 2013-02-04
  • Downloads:
  • 0 Times
  • Uploaded by:
  • dicklaw
 Description: #include <LiquidCrystal.h> LiquidCrystal lcd(2,3,4,5,6,7) /* 1602 vss to gnd vdd to 5v RS TO PIN2 RW TO GND E TO PIN3 D4 TO PIN4 D5 TO PIN5 D6 TO PIN6 D7 TO PIN7 A TO 5V K TO GND */ #include "Wire.h" #define DS1307_ADDRESS 0x68 byte zero = 0x00 //workaround for issue#527 /* DS1307 SDA TO PIN A4 SCL TO PIN A5 VCC TO 5V GND TO GND */ #include <dht11.h> dht11 DHT11 #define DHT11PIN 8 //DHT11 PIN 3 连接UNO 3 #define TRIGPIN 9 #define ECHOPIN 10 long ping() { digitalWrite(TRIGPIN, LOW) delayMicroseconds(2) digitalWrite(TRIGPIN, HIGH) delayMicroseconds(10) digitalWrite(TRIGPIN, LOW) return pulseIn(ECHOPIN, HIGH)/58 } void setup() { Wire.begin() Serial.begin(9600) //setDateTime() //MUST CONFIGURE IN FUNCTION lcd.begin(16, 2) //lcd.setCursor(0,1) //lcd.write("LIGHT: ") pinMode(TRIGPIN, OUTPUT) pinMode(ECHOPIN, INPUT) pinMode(13, OUTPUT) } void loop() { //int sensorValue
 Downloaders recently: [More information of uploader dicklaw]
 To Search:
File list (Check if you may need any files):
 

_1602_ds1307_dht11_sr04
.......................\_1602_ds1307_dht11_sr04.ino
    

CodeBus www.codebus.net