I2C OLED display example

This example shows how to connect an I2C OLED display to one of my Arduino's. Being relatively small size, requiring only 2 connections SDA and SCL from the Arduino but still having good text and graphical capabilities I snapped a couple up cheaply. Continue reading

MMA7455 accelerometer example

The MMA7455 accelerometer is a sensor that can measure acceleration in three axes. This sensor is commonly available as a breakout board that you can connect to your Arduino. It requires VCC, GND , SCA and SCL to be connected. The MMA7455L is a. Continue reading

Water sensor example

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. The water sensor indicates whether the. Continue reading

Infrared receiver example

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. The Infrared Receiver is used to receive infrared. Continue reading

HMC5883L example

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. The Honeywell HMC5883L is a surface-mount, multi-chip module designed for. Continue reading

Arduino clock

Arduino Clock 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. Continue reading

HC-SR04 Ultrasonic Sensor example

The HC-SR04 Ultrasonic Sensor uses sonar to determine distance to an object like bats or dolphins do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package. From 2cm to 400 cm or 1” to 13. Continue reading

8×8 LED matrix example

This example switches on all the LEDs on a 8×8 LED matrix, the matrix is controlled by a MAX7219   LED matrix Typically you will get these in kit format or they may be assembled, here is a picture of a typical module 8x8. Continue reading

HC-SR501 PIR sensor example

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 sensors can. Continue reading

Reed switch example

A reed switch is a small device that when the device is exposed to a magnetic field, the two materials inside the switch pull together and the switch closes. When the magnetic field is removed, the two materials then separate and the switch will. Continue reading