In this week I understand Arduino Code structure and write Arduino C code syntax correctly. And that helped me to do my assignment.
I got my assignment idea from my final project, Make an interaction plant but using LEDs and Arduino and alarm system using buzzer and motor.
That assignment is a same of Week6 assignment but a changed the sensor and attach dc motor to it make the role of water pump.
I used Arduino 1.8.15.
The materials which I used is Arduino, RGB LEDs, Resistors, buzzer, Servo motor, temperature sensor, dc motor, L298N Driver Module, breadboard and jumpers.
1- I make the circuit in tinkercad and I used photoshop to put L298N Driver module with my circuit.
2- Using Arduino 1.8.15. to make the code I made it ii 2 parts.
Part1: I made the emoji code according to temperature sensor
When temp.>29 making sad face
When temp.<29 making happy face
Part 2: attach other components
The action is making the motor display.
I made manual using by using push button and switch between manual and automatic using switch.
1- I tested part 1 to make sure the code is working.
2- I connected all parts.
3- I made an enclosure from cardboard.
3- Finally tested the final product
In EOW session I didn't make the circuit and it was too hard to connect all components and my instructor amany helped me to understand the connections like L298N Driver module and she encourage me to making the connection again and that helped me to make that assignment
In tis week I got stuck a lot
1- I made the code and test it in real circuit and it work perfect but when I made the enclosure it didn't work and because of it was a lot of wires I didn't know the error so I connect all wires totally again more than one time.
2- the motors wires was unconnected once and connected another "it is a problem in motor".
In my final project I will make a spare time to make a troubleshooting because when the circuit put in an enclosure it never work from first time.
Making a LEDs controller by using push buttons and potentiometer