Skip to main content

Posts

Control DC Motor using Temperature sensor

Control DC Motor using Temperature sensor Description:  The DC motor is controlled through the Temperature Sensor using the following criteria.  When the Temperature reading is greater than 40' C, the Motor is ON  and the Red LED is turned ON .  When the Temperature reading is less than 40' C, the Motor is OFF and the Green LED is turned ON. Working Demo:  https://youtu.be/L-koKBFJmVI Components required: Arduino UNO DC motor Motor Driver [L293D] Battery [9V] Temperature Sensor [TMP36] Schematic diagram: Code:  int celsius = 0; int fahrenheit = 0; int Ena=7; void setup() {   Serial.begin(9600);   pinMode(A0, INPUT);   pinMode(13, OUTPUT);   pinMode(8, OUTPUT);   pinMode(2, OUTPUT);   pinMode(3, OUTPUT);   analogWrite(Ena,255); } void loop() {   celsius = map(((analogRead(A0))), 0, 1023, 30, 70);   fahrenheit = ((celsius * 9) / 5 + 32);   Seria...
Recent posts

Crystal LCD, Temperature Sensor and DC Motor

Motor control using Temperature sensor Description:  The DC motor is controlled through the Temperature Sensor using the following criteria.  When the Temperature reading is above 90' F, the motor is turned ON. "Motor is ON" status and Temperature value is displayed on the LCD screen.  When the Temperature reading is less than 90' F, the motor is turned OFF.  "Motor is OFF"  status and Temperature value is displayed on the LCD screen.  Working Demo:  https://youtu.be/8wGgASq5C84 Components required: Arduino UNO DC motor Motor Driver [L293D] Battery [9V] LCD [16 * 2] Temperature Sensor [TMP36] Schematic diagram: Code:  #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); int celsius = 0; int fahrenheit = 0; int Ena=7; void setup() {   lcd.begin(16, 2);   pinMode(A0, INPUT);   pinMode(13, OUTPUT);   pinMode(8, OUTPUT);   analogWrite(Ena,255); } v...