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. …
arduino
-
-
This water sensor is fairly easy to connect this to your Arduino, the requirements are simply VCC (5v), GND and then connect the SIG to one of the Analog pins. In our code example this will be Analog 0. …
-
This is a basic LCD voltmeter example YOU SHOULD NOT MEASURE MORE THAN 5v or reverse the polarity, you risk causing permanent damage to your Arduino I tested a 1.5v battery, the reading was 1.50v, using a multimeter I read …
-
The HMC5883L is a 3-axis magnetometer. The most common include usage of the chip is as a digital compass to sense direction or using them to detect ferrous metals. /* Analog input 4 I2C SDA Analog input 5 I2C SCL …
-
Code [c] #include <Wire.h> #include <Adafruit_BMP085.h> #include <LiquidCrystal.h> Adafruit_BMP085 bmp; // Connections: Sainsmart LCD/Keypad shield LiquidCrystal lcd(8, 9, 4, 5, 6, 7); void setup() { //Serial.begin(9600); delay(1000); //setup the LCD lcd.begin(16, 2); // start the library lcd.setCursor(0,0); lcd.print(“Temperature”); //debug the …
-
This DS18B20 example we output the temperature to our LCD display. The LCD display we use is the LCD Keypad Shield that is available for sale from various sources. Here is the temperature displayed on the LCD, as you can …
-
This example switches on all the LEDs on a 8×8 LED matrix, the matrix is controlled by a MAX7219 You will need the Led Control library #include “LedControl.h” /* Max7219_pinCLK = 10; Max7219_pinCS = 9; Max7219_pinDIN = 8; */ LedControl …
-
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 …