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 the magnetic field is removed, the two materials then separate …
arduino
-
-
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 …
-
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 …
-
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 …
-
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 …
-
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 …
-
The DS18B20 is a temperature sensor that can be used in various simple projects. This part uses the 1 wire (I2C) bus and you can connect multiple sensors up to your Arduino. The part is also relatively low cost and only …
