Ultrasonic transducers or ultrasonic sensors are a type of acoustic sensor divided into three broad categories: transmitters, receivers and transceivers. Transmitters convert electrical signals into ultrasound, receivers convert ultrasound into electrical signals, and transceivers can both transmit and receive ultrasound. …
Code
-
-
This example switches on all the LEDs on a 8×8 LED matrix, the matrix is controlled by a MAX7219 You will need the Led Control library #include “LedControl.h” /* Max7219_pinCLK = 10; Max7219_pinCS = 9; Max7219_pinDIN = 8; */ LedControl …
-
This example uses the BMP05 Barometric, pressure and Temperature sensor. It requires the BMP085 library from adafruit. This is a nice little sensor. [c] #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. Pins 2, 3 and 4 were used [c] int red = 2; int green =3; int blue =4; int j; void setup() { pinMode(red,OUTPUT); pinMode(green,OUTPUT); pinMode(blue,OUTPUT); } void loop() …
-
The LoL Shield is a charlieplexed LED matrix for the Arduino. The LEDs are individually addressable, so you can use it to display anything in a 9×14 grid. Scroll text, play games, display images, or anything else you want to …
-
The touch sensor is connected to D3 and we attach an LED to D13 Code [c] #define TOUCH_SENSOR 3 //the touch sensor is connected to D3 int led = 13; // pin for the LED void setup() { pinMode(led, …
-
In our example of creating a knight rider effect with some LEDs you will require the following parts. Amount Part Type Properties 8 Red (633nm) LED package 3 mm [THT]; leg yes; color Red (633nm) 1 Arduino Uno (Rev3) type …