![]() In the program we have set four different conditions to run the DC fan. It can drive 2 DC motors and we can also control the speed by providing PWM signals. #Temperature controlled fan arduino driver#This sensor is very easy to use and having very good accuracy compared to other sensors. We are using L293D motor driver IC for controlling DC fan/motor with Arduino. ĭHT22 sensor is used to read the temperature to control fan speed. #Temperature controlled fan arduino zip file#Select the downloaded ZIP file and press Open.Connect it to Arduino pins 10, 9, 8 and 7 respectively. Pin 11 ~ 14 are data pins (D4 ~ D7), used to transmit data/commands to LCD controller.But these pins are not used in 4 bit LCD interfacing, so connect it to ground. Pin 7 ~ 10 are data pins (D0 ~ D3), used to transmit data/command to LCD controller.Pin 6 is EN (Enable), it is used to indicate a valid data/command in data lines (D0 ~ D7).Connect it to ground since we are only writing data to LCD in this project. Pin 4 is RS (Register Select), it is used to select data or command register.Connect it to the variable terminal of a potentiometer whose fixed terminals are connected to ground and 5V. Pin 3 is VEE, for adjusting display contrast.Pin 2 is VDD, connect it to 5V output of Arduino.Now we can connect 16×2 LCD to the Arduino.Fourth pin is Ground, connect it to ground.Second pin is DATA output, connect it to pin 6 of Arduino.First pin is VCC power input, connect it to 5V output of Arduino.After that connect DHT22 sensor to the Arduino, it is using a single wire bus for communication.Pin 16 is Vcc1, which is logic voltage input (voltage level of control signals provided by Arduino).Pin 8 is Vcc2, which is the driver/motor power input, connect it to positive of the battery.Connect pin 7 (Input 2) of L293D to the pin 3 of Arduino.Connect pin 6 (Output 2) of L293D to the remaining terminal of the DC motor.Pins 4 and 5 of the L293D are ground pins, connect these to common ground (battery ground + arduino ground).Connect pin 3 (Output 1) of L293D to one terminal of the DC motor.Connect pin 2 (Input 1) of L293D to the pin 4 of Arduino.Connect pin 1 (Enable 1) of L293D to pin 5 of Arduino.No more than 0.5 Hz sampling rate (once every 2 seconds).Good for -40 to 125☌ temperature readings ☐.5☌ accuracy.Good for 0-100% humidity readings with 2-5% accuracy.2.5mA max current use during conversion (while requesting data).Back Light : Yellow-Green LED backlight. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |