• BasicsCode

    RGB LED example

    by shedboy71

    This was a quick test for a multi color LED. Pins 2, 3 and 4 were used   [c] int red = 2; int green =3; int blue =4; int j; void setup() { pinMode(red,OUTPUT); pinMode(green,OUTPUT); pinMode(blue,OUTPUT); } void loop() …

  • random LEDs on using the LOLShield and an Arduino   Switch LEDS off and on by column [c] #include <Charliplexing.h> void setup() { LedSign::Init(); // initializes the screen } void loop() { for (int x=0; x<14; x++) { for (int …

  • The LoL Shield is a charlieplexed LED matrix for the Arduino. The LEDs are individually addressable, so you can use it to display anything in a 9×14 grid. Scroll text, play games, display images, or anything else you want to …

  • Basics

    Colour LCD Shield

    by shedboy71

    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 …

  • Basics

    Arduino and LDR example

    by shedboy71

    In this example we connect a photoresistor to an Arduino, the value read from the photoresistor corresponds to the amount of light present. The photoresistor is connected to analog pin 0 in this example. A photoresistor (or light-dependent resistor, LDR, or photo-conductive cell) is a …

  • Another simple example is to hook up a speaker to your Arduino.   Schematic Layout     Code A simple example.   [c] int pin = 8; int note = 988; void setup() { } void loop() { //3 dots …

  • Basics

    DHT11 sensor example

    by shedboy71

    In this example we will show a basic example of connecting a DHT11 Temperature and Humidity Sensor to your Arduino. This is a very nice little, low cost sensor which requires only a pull up resistor to VDD. This can …

  • Basics

    Piezo Buzzer example

    by shedboy71

    In this example we will connect a Piezo buzzer to our arduino and play some basic sounds, this uses the PWM functionality of the Arduino. A piezoelectric element may be driven by an oscillating electronic circuit or other audio signal …

  • Code

    Touch sensor example

    by shedboy71

    The touch sensor is connected to D3 and we attach an LED to D13   Code [c] #define TOUCH_SENSOR 3 //the touch sensor is connected to D3 int led = 13; // pin for the LED void setup() { pinMode(led, …

  • In a previous example we showed you a basic usage of a DS18B20 which outputted the temperature to the Serial output. A simple addition to the code can show a practical example, in this case if the temperature exceeds a …