DC Motor

Overview In this blog we will learn how to use and control a DC motor, by using a transistor, and diode. We will also use a potentiometer to control the speed of the motor. Please click here to learn how to use a potentiometer. Components needed DC motor Transistor Diode Resistor Potentiometer Jumper cables Arduino … Continue reading DC Motor

Security System using an Ultrasonic Sensor HC-SR04

Components needed Ultrasonic Sensor Piezo(buzzer) An LED A resistor Jumper cables Breadboard Arduino Board A computer with the Arduino IDE installed Completed Circuit The image above is the completed circuit for the security system. We will build a simple security system using an ultrasonic sensor where if something is stolen, the piezo (buzzer) will buzz … Continue reading Security System using an Ultrasonic Sensor HC-SR04

Temperature and Humidity Sensor (DHT11)

Components needed DHT11 Sensor Jumper cables A breadboard An Arduino Board A computer with the Arduino IDE installed Completed Circuit The Program #include <DHT.h> #include <DHT_U.h> DHT dht(2, DHT11); float tempInCelcius; float tempInFarenheit; float humidity; void setup() { Serial.begin(9600); Serial.println("Humidity and Temperature Sensor Program"); dht.begin(); } void loop() { delay(2000); tempInCelcius=dht.readTemperature(); humidity=dht.readHumidity(); tempInFarenheit=tempInCelcius*9/5+32; Serial.print("Humidity = … Continue reading Temperature and Humidity Sensor (DHT11)