“Things Get Smarter”
Alfred J. Pennyworth (Batman Begins)
Continued with Alfred Project in this week I decided to make Alfred more intelligent, more features with user-friendly interface to create (Alfred v2). :-)
Software:
Electronics:
2x (330 Ohm) Resistor.
2x LED.
1x Slider Switch.
1x Arduino UNO R3.
1x IR Sensor. (HW-201)
1x LDR Sensor.
1x Temperature & Humidity Sensor. (DHT11).
1x Liquid Crystal I2C.
In this Part, I Used Fritzing to simulating the circuit wiring and design like circuit below:
Note that
Then I implement the real circuit:
An Enclosure for the Project :-)
Video For The Enclosure
The code running as follows:
First Thing we Include LiquidCrystal_I2C Library and DHT Library then define the DHT Configurations parameters of the lDR Sensor, IR Sensor, light fan, Val for store data, and LCD Configurations.
After this In Void Setup we begin the LCD, DHT, Serial connections in to start to communicate with Arduino then set the pin mode for each component.
In Void Loop, we declare the Humidity and temperature Variables for DHT then we can print the reads in the serial monitor if we want same for the lcd we print the values ofthe DHT readings on it.
And finally we make a variable to save the data from the Light sensor then typed if condition tell, that if the IR sensor doesn't see an obstacle then the FAN led and the Light_Value LED will be off.
And if the IR Sensor See an obstacle, then the readings if Light sensor will be mapped and read by the Light_Value LED.
And also will take us n another If condition that is the DHT read Temperature above 30 c, then the FAN LED will be ON Other than that the LED will be off.
Testing the Real Circuit
I wasn't Know What's the meaning of I2C in the LCD and after a little research I found this useful video talking about it.
Problem: After I Integrate Every Module in the Circuit, the Light_Value Led wasn't functioning properly.
Issue: There wasn't a Variable to store the data from the Light Sensor.
Solution: Add a Val Variable to the cod to store the readings from the Light sensor, then continued with our code.
(like the Photo) :-)
RC Car With Hand Geture Controller
The More I Know about how to use various of the modules, the better I'll make my final project :-)
This week we had an Optional session about soldering and it was so much fun :D❤
Back
Front