• The motor driver board contained a ULN2003 This is mainly one of the default examples that comes with the stepper library Code #include <Stepper.h> const int stepsPerRevolution = 512; //…

  • 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,…

  • A reed switch is a small device that when the device is exposed to a magnetic field, the two materials inside the switch pull together and the switch closes. When…

  • In a sensor pack we recieved recently there were a large amount of sensors but little documentation. One of the sensors that caught our attention was a touch sensor. These…

  • We are using this sensor in this example We will connect the Red, Green and blue connections up to the following port pins C0, C1 and C2 Then we will…