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 …
Basics
-
-
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 …
-
An RGB led is a combination of a Red, Green and Blue LED’s in one package, they can be common cathode or common anode types In the example I used an RGB LED breakout. The LED was wired up as …
-
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 …