DHT11 and I2C LCD example
This particular little project involved connected a DH11 breakout and an I2C LCD display to an Arduino and then displaying the humidity and temperature on the display. The code is…
This particular little project involved connected a DH11 breakout and an I2C LCD display to an Arduino and then displaying the humidity and temperature on the display. The code is…
#include <Wire.h> void setup() { Wire.begin(); Serial.begin(9600); Serial.println(“\nI2C Scanner”); } void loop() { byte error, address; int nDevices; Serial.println(“Scanning…”); nDevices = 0; for(address = 1; address < 127; address++ )…
This is a water sensor that I obtained as part of a kit recently, its fairly easy to connect this to your Arduino. the requirements are simply VCC (5v), GND…
In this example we connect the IR reciever to pin 3 and 8 LEDs from pin 4 to pin 11. We will press a key from 1 to 8 and…
The IR reciever and remote were part of a kit Code #include “IRremote.h” int receiver = 3; IRrecv irrecv(receiver); decode_results results; void setup() { Serial.begin(9600); irrecv.enableIRIn(); } void loop() {…
This is a quick example showing how to connect an IR Reciever. Most of these work the same way, they require Vcc(5v), GND and there is a data out which…
LCD voltmeter example YOU SHOULD NOT MEASURE MORE THAN 5v or reverse the polarity, you risk causing damage to your Arduino I tested a 1.5v battery, the reading was…
/* Analog input 4 I2C SDA Analog input 5 I2C SCL */ #include <Wire.h> #define address 0x1E //I2C 7bit address of HMC5883 void setup(){ Serial.begin(9600); Wire.begin(); //Put the HMC5883 IC…
In this example we will experiment with a DS1307 breakout, a keypad/LCD shield and an Arduino. We will create a simple clock example. The DS1307 real-time clock is a low-power,…
This is similar to our DS18B20 example, in this case we merge the BMP085 and an LCD. Code #include <Wire.h> #include <Adafruit_BMP085.h> #include <LiquidCrystal.h> Adafruit_BMP085 bmp; // Connections: Sainsmart LCD/Keypad…