Arduino Voltmeter
LCD voltmeter example YOU SHOULD NOT MEASURE MORE THAN 5v or reverse the polarity, you risk causing damage to your Arduino I tested a 1.5v battery, the reading was…
LCD voltmeter example YOU SHOULD NOT MEASURE MORE THAN 5v or reverse the polarity, you risk causing damage to your Arduino I tested a 1.5v battery, the reading was…
/* Analog input 4 I2C SDA Analog input 5 I2C SCL */ #include <Wire.h> #define address 0x1E //I2C 7bit address of HMC5883 void setup(){ Serial.begin(9600); Wire.begin(); //Put the HMC5883 IC…
This is similar to our DS18B20 example, in this case we merge the BMP085 and an LCD. Code #include <Wire.h> #include <Adafruit_BMP085.h> #include <LiquidCrystal.h> Adafruit_BMP085 bmp; // Connections: Sainsmart LCD/Keypad…
This is a little modification of our DS18B20 example, outputting via the serial monitor is great but of little practical use. In this example we will output the temperature to…
The motor driver board contained a ULN2003 This is mainly one of the default examples that comes with the stepper library Code #include <Stepper.h> const int stepsPerRevolution = 512; //…
User submitted example for a HC-SR04 Ultrasonic Sensor #define echoPin 7 // Echo Pin #define trigPin 8 // Trigger Pin long duration, distance; // Duration used to calculate distance…
This code example switches on all the LEDS on a 8×8 LED matrix, this is controlled by a MAX7219 You will need the Led Control library #include “LedControl.h” /* Max7219_pinCLK…
Connect an LED to digital pin 3 void setup() { pinMode(3, OUTPUT); } void loop() { for (int a = 0 ; a < 256 ; a++) { analogWrite(3, a);…
A new sensor breakout I got recently the BMP05 Barometric, pressure and Temperature sensor. #include <Wire.h> #include <Adafruit_BMP085.h> Adafruit_BMP085 bmp; void setup() { Serial.begin(9600); if (!bmp.begin()) { Serial.println(“Could not…
This was a quick test for a multi color LED int red = 2; int green =3; int blue =4; int j; void setup() { pinMode(red,OUTPUT); pinMode(green,OUTPUT); pinMode(blue,OUTPUT); }…