There are some situations where you need to save power when you are creating battery powered projects, the lowpower library is one solution (we will look at others later) Code You will need to install the Lowpower library – …
Code
-
-
In this code example we will take a look at the PS2 JOYSTICK SHIELD V2.0. The X-axis of the joystick is connected to pin A0 of Arduino, the Y-axis to pin A1, power supply to 5V and ground to GND. …
-
The keyestudio Multi-purpose shield V2 has 6 leds, in this example we will flash the LEDs The LEDs are connected to pins D8 to D13 Code [codesyntax lang=”cpp”] //pin definition of LEDs int led1 = 13; int led2 = 12; …
-
The LX1972 is a low cost silicon light sensor with spectral response that closely emulates the human eye. Patented circuitry produces peak spectral response at 520nm, with IR response less than ±5%, of the peak response, above 900nm. The photo …
-
In a previous example we took a look at the HDC1008 – http://www.arduinolearning.com/code/hdc1008-sensor-example.php This example used a library from Adafruit but we wanted to show you how to do the same thing with no libraries., here is a reminder of how …
-
In our previous look at the Easy Module Shield v1 – Arduino Easy Module Shield v1. We took a look at the shield and had a simple example looking at the LDR and the pot. In this example we will show examples …
-
Freescale’s MAG3110 is a small, low-power, digital 3-axis magnetometer. The device can be used in conjunction with a 3-axis accelerometer to realize an orientation independent electronic compass that can provide accurate heading information. It features a standard I2C serial interface output …
-
The APDS-9930 provides digital ambient light sensing, IR LED and a complete proximity detection system in a single 8 pin package. The proximity function offers plug and play detection to 100 mm thus eliminating the need for factory calibration of …