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…
Arduino
-
-
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…
-
This code example switches on all the LEDS on a 8×8 LED matrix, this is controlled by a MAX7219 You will need the Led Control library #include “LedControl.h” /* Max7219_pinCLK…
-
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…
-
Connect an LED to digital pin 3 void setup() { pinMode(3, OUTPUT); } void loop() { for (int a = 0 ; a < 256 ; a++) { analogWrite(3, a);…