The assignment idea is to build and Program a smart circuit using an Arduino UNO which reads a signal from an input component (Sensor, Switch, or variable resistor) to control an action component (Motor, Buzzer, LED...etc) using Code Blocks.
As the weather is hot, I updated my last week's assignment.
I inspired trough Arduino Project Hub 1 and Arduino Project Hub 2
I used a DC fan but controlled it automatically through the temperature.
The software wasTinkerCAD Circut to design and simulate the electronic circuit and build the code blocks.
Also, Arduino to upload the code.
The electronics component I used:
DC fan 5V
LM 35
M-M wires
Arduino UNO
Cable
Breadboard
I used TinkerCAD to simulate the circuit and make sure that the wiring is in the right way.
I used Arduino UNO and the 5V DC fan with LM35.
Finally, tested the functionality by simulating the circuit as shown in the video.
I build the code through the blocks. I made the condition that, if the temperature is more than 30, the fan will turn on, otherwise , the fan will turn off.
The simulation
I copied the code and put it in the Arduino IDE to upload it to the Arduino UNO
I made the circuit as in the simulation, then uploaded the code to the Arduino.
I managed to made it do its function successfully.
When I use the fire, the temperature is getting hot(more than 30) so the fan is turned on.
when the temperature is less than 30, the fan turned off.
The main challenge I faced was the sensor(LM35), I did not know that it is different from the ordinary temperature sensor in TinkerCAD.
I searched a lot and knew more about it through this link which helped me.
Another problem was that the sensor was not accurate and I discovered it later when I asked my colleagues.
Coding is not the best thing for me but it is an essential part of any smart device so I am trying to improve my skills through tutorials and youtube videos.
My new friend
This week, I used TinkerCad for coding by blocks which helped me with imaging the code.
Coding will be an essential step in my final project, so it will help me.
I did not know that there is a specific library for the DHT sensor and it is different from the LM35 in the coding.
Also, I realized the importance of the datasheet and Arduino project hub.
The coolest thing this week was the Jewelry we made together with my group and the instructor.