Arduino Clock
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,…
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…
The motor driver board contained a ULN2003 This is mainly one of the default examples that comes with the stepper library Code #include <Stepper.h> const int stepsPerRevolution = 512; //…
The circuit shown here uses a NPN transistor connected to a an Arduino output pin to switch an LED pin, obviously this is just an example. In real life you…
This code example switches on all the LEDS on a 8×8 LED matrix, this is controlled by a MAX7219 You will need the Led Control library #include “LedControl.h” /* Max7219_pinCLK…
When you are looking for low cost sensors to begin experimenting with then a PIR is a nice low cost option. In the following example we will demonstrate the HC-SR501 PIR sensor,…
This example shows how to drive a seven segment display, this is the most basic example in which we use various digital pins as outputs, 7 in this case. In…
Connect an LED to digital pin 3 void setup() { pinMode(3, OUTPUT); } void loop() { for (int a = 0 ; a < 256 ; a++) { analogWrite(3, a);…
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…
In a sensor pack we recieved recently there were a large amount of sensors but little documentation. One of the sensors that caught our attention was a touch sensor. These…