In this example we connect an SD card to our Arduino, we will log analog readings to a file on the SD card. Here is the layout Code [c] #include <SD.h> const int chipSelect = 4; void setup() { …
Learning
-
-
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 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 …
-
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 …
-
This example shows how to interface a basic touch sensor to our arduino, this sensor came as part of a kit of 37 sensors. Touching the metal sensor pin produces an output at the ‘DO’ pin. The output is not …
-
In this example we will create a basic library, a few examples on this site flash LEDs. We will create a library that will contain a couple of functions, we will then use these in our sample sketch. You need …
-
The Colour LCD Shield provides an easy method of connecting the popular Nokia 6100 LCD to your Arduino. The board comes as shown with the 128×128 mini colour LCD, as well as a backlight driver circuit (boosts to 7V), and three momentary push-buttons (tied …
-
This example shows how to connect a joystick to your Arduino. This could be used for games or perhaps navigating through a menu for example. This is a basic analog 2-axis joystick which has two 10K ohm pots for vertical and …
