• Code

    Connect a tilt switch

    by shedboy71

    In this example we connect a tilt switch up to Pin 2 and connect an LED to pin 3, when we move the tilt switch the LED will light   Code [c] const int tiltPin = 2; // the number …

  • Hardware

    Sensor Module Kit

    by shedboy71

    Sensor Module Kit This was a kit that I spotted that I thought would be useful for little experiments, as you can see from the listing below there are a variety of useful little modules. Here is a picture of …

  • Taking our hello world I2C OLED example a bit further, this is our next creation. We connect a DS18B20 temperature sensor and display the temperature on the display Coding You need to download and install various libraries and copy them …

  • Just recently I spotted various I2C OLED displays on sale at reasonable prices and fancied trying to connect these up one of my Arduino’s. Being relatively small size, requiring only 2 connections SDA and SCL from the Arduino but still …

  • Basics

    Arduino and C# example

    by shedboy71

    Its a fairly simple process to connect your Arduino to your PC and write an appilcation to interact with your hardware. You will need the usual Arduino hardware, IDE and in this case an LED connected to the board. For …

  • Shields

    Clock shield

    by shedboy71

    Clock Shield I chose this shield, not because you can actually use this as a clock but because of the various features that are available for beginners to experiment, here is what is available on the shield Piezo Buzzer An …

  • This shield got my attention as it looked like a nice beginners learning type shield with which you could get up and running with an Arduino Here is a picture of the board, a few code examples are available later …

  • Another MAX7219 example using random numbers to randomly light an LED in the matrix, you may want to increase the delay Download and install the LedControl Arduino library as it is essential for using the MAX7219. Code [c] #include “LedControl.h” …

  • Code

    MAX7219 example

    by shedboy71

    The first thing you will need is to download and install the LedControl Arduino library as it is essential for using the MAX7219.   Code [c] #include “LedControl.h” //  need the library LedControl lc=LedControl(12,11,10,1); // // pin 12 is connected …

  • In this example we use the ethernet shield again but this time we connect an RGB led to pins 6, 7 and 8   Code [c] #include <SPI.h> #include <Ethernet.h> #include <Servo.h> Servo myservo;  // create servo object to control a …