This water sensor is fairly easy to connect this to your Arduino, the requirements are simply VCC (5v), GND and then connect the SIG to one of the Analog pins. In our code example this will be Analog 0. …
shedboy71
-
-
In this example we look at how to connect an IR Reciever. Generally, they require Vcc(5v), GND and there is a data out which you connect to your Arduino. Here is a typical IR showing the pinout. Many electronic shops online …
-
The HMC5883L is a 3-axis magnetometer. The most common include usage of the chip is as a digital compass to sense direction or using them to detect ferrous metals. /* Analog input 4 I2C SDA Analog input 5 I2C SCL …
-
In this example we will create a simple clock example using a DS1307 breakout, a keypad/LCD shield and an Arduino Uno The DS1307 real-time clock is a low-power, full binary-coded decimal clock/calendar. Address and data are transferred over the I²C …
-
This DS18B20 example we output the temperature to our LCD display. The LCD display we use is the LCD Keypad Shield that is available for sale from various sources. Here is the temperature displayed on the LCD, as you can …
-
The circuit shown here uses a NPN transistor connected to a an Arduino output pin to switch an LED pin. In real life you would perhaps switch a relay, lamp , fan or a buzzer. A darlington transistor could be …
-
This example switches on all the LEDs on a 8×8 LED matrix, the matrix is controlled by a MAX7219 You will need the Led Control library #include “LedControl.h” /* Max7219_pinCLK = 10; Max7219_pinCS = 9; Max7219_pinDIN = 8; */ LedControl …
-
In the following example we will demonstrate the HC-SR501 PIR sensor, this sensor has many nice features including the ability to be driven by 5v, low cost (£2 to £3), it has a decent range (7 metres) and a fairly small size. These …