This shield got my attention as it looked like a nice beginners learning type shield with which you could get up and running with an Arduino Here is a picture of the board, a few code examples are available later …
Code
-
-
Another MAX7219 example using random numbers to randomly light an LED in the matrix, you may want to increase the delay Download and install the LedControl Arduino library as it is essential for using the MAX7219. Code [c] #include “LedControl.h” …
-
In this example we use the ethernet shield again but this time we connect an RGB led to pins 6, 7 and 8 Code [c] #include <SPI.h> #include <Ethernet.h> #include <Servo.h> Servo myservo; // create servo object to control a …
-
This example requires an ethernet shield and an LED connected to pin 6. Copy the code into a new sketch and upload it to your arduino and then open your web browser to http://192.168.1.177 Code [c] #include <SPI.h> #include …
-
This very simple sketch scans the I2C-bus for devices. If a device is found, it is reported to the Arduino serial monitor. Code [codesyntax lang=”cpp”] #include <Wire.h> void setup() { Wire.begin(); Serial.begin(9600); Serial.println(“\nI2C Scanner”); } void loop() { byte …
-
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 …