Arduino Code

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…

Read more

HMC5883L Arduino example

/* 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…

Read more

BMP805 Sensor example

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…

Read more