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…
Arduino
-
-
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 circuit shown here uses a NPN transistor connected to a an Arduino output pin to switch an LED pin, obviously this is just an example. In real life you…
-
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…
-
When you are looking for low cost sensors to begin experimenting with then a PIR is a nice low cost option. In the following example we will demonstrate the HC-SR501 PIR sensor,…
-
This example shows how to drive a seven segment display, this is the most basic example in which we use various digital pins as outputs, 7 in this case. In…