Week 7 - Journal
Ideation
Tell us about your assignment's idea for this week. Why do you care about this idea? What inspired you? (Please include images or links to sources of inspiration)
Title of Media
I wanted to try this device to control the movement of the motor to see the things that move and try the components that I will use inside the filament project and see how they work together and write the code ,I watched a lot of videos and finally decided to give it a try
How the device works ... When the IR sensor (input) senses that there is movement of an object, it will make the motor (output) work and the LED (output) will light up And we can control the speed of the motor during the potentiometer
https://www.youtube.com/watch?v=fSy2JYkdn-c
https://www.youtube.com/watch?v=VHGHCx4TX5Q
https://www.instructables.com/Arduino-Animation/
https://www.youtube.com/watch?v=OjRtGEwQDYg
Tool Chain
Which software/machines/materials did you use in the assignment? Why?
ARDUINO ID to write the code
autodesk Tinkercad to to simulate the electric circuit
white cardboard
-Arduino uno
-jumper wires
-potentiometer
-led RGB
-DC motor
-breadboard
-IR Sensor HW-201.
-motor controller l293
-resistors 220 ohm
-9v adaptor
Design/Preparation Process
Explain the design and/or preparation process of your assignment. How did you use the tool or software to design and/or prepare your assignment before fabrication/implementation?
First i did a search to find out the data sheet of the motor control and how to connect it with the motor and the correct way of wiring , and to know the output pins and input pins
I did a research on how to connect the potentiometer with the motor
Then I started connecting the components on Tinkercad to see how to connect the wires and test the sensor is working or not
Then I started connecting the motor with the sensor and control to see if it works and to test it first before connecting all components
When the IR sensor (input) senses that there is movement of an object, it will make the motor (output) work
-pin (7,input) sensor
-pin (3,output) (speed motor)
-pin (2 ,output) direction
Then I test the motor and the code if it was correct or not
Development/Implementation Process
Explain the development/implementation process of your assignment. How did you use the machine/tool to manufacture or implement the design of your assignment?
After making sure that the sensor is working and the motor and the connection is correct, I connected all components, so I connected the potentiometer and the RGB LED
the positive wire to the (12 v)
l293 controller and the negative to breadboard negative section.
- RGB-led connected negative leg to negative on a breadboard.
- ( led green ) to breadboard to 220-ohm resistor to the pin 11 Arduino
(leg blue ) to breadboard to 220-ohm resistor to pin 9 Arduino
-(leg Red ) to breadboard to 220-ohm resistor to pin 8 Arduino
- potentiometer positive leg to positive section on a breadboard
- and negative to the negative section on a breadboard
-and out leg (input ) to (A0)pin Arduino
-motor I connected leg to the enable side in the controller
and wiring the pin enables A on the controller to pin (3) Speed
-and logic input to pin (2) in Arduino Direction
I searched for a code to find out how to write the code to control the speed of the motor , And I found a code and I understood the method of write , then I began to modify it and combine it with the other code so that the sensor works, so it sends the request to the components to work and control the speed of the motor through the potentiometer
When the IR sensor (input) senses that there is movement of an object, it will make the motor (output) work and the LED (output) will light up And we can control the speed of the motor during the potentiometer
-used 9v adaptor
-pin (7,input) sensor
-pin (3,output) (speed motor)
-pin (2 ,output) direction
-pin (9,output) blue led
-pin (8,output ) red led
-pin (11,output) green led
-A0 (input) potentiometer
After making sure that all the components are working and the code is correct, I put the components inside the cardboard and tested them with the graphics and the movement of the motor
After the test , I found that the motor is very fast and does not clearly show the drawn shapes
Community of Learning
Did you ask for feedback? What are the ideas that others have contributed or suggested? What was someone else’s idea that you built upon? How did you help your peers? How did your peers help you?
I had written this code first, but the LED was not working , the error in the code to change LED colors to blue, green and red .
Esraa told me this note and I modified it in the code and changed the colors ( blue , delay 500 sec , green delay 500 sec , red delay 500 ) this void loop
Title of Media
Overcoming Challenges
When you got stuck, what/who did you turn to? At what point did you have to pause to research or learn more before moving on? What are some mistakes, pitfalls, or challenges that others can avoid if they were doing this assignment?
Iin the last week i try to use this sensor but it never work . and i try again to make this circuit and use these components, but it did not work because the LDR sensor was not working, but the first was the error in the code, but I solved it, but then I used the same circuit with another sensor(IR Sensor HW-201), but it worked, so you must make sure that all components are working well before starting project
Final Project
How can you use the skills and knowledge that you've acquired this week in your final project?
WOW!
What is the coolest thing that you've learned this week? What is something that you will never forget from this week?
Title of Media
Weekly Digest [OPTIONAL]
Tell us about any other cool things that you've made this week: in the Hands-on activity, tutorial examples, exercises, or any other cool mini-project that you tried out aside from the assignment.
this week we build and program two modes; Manual and Automatic, using a slide switch:
We divided into groups, Amr nd I worked together
Manual Mode: In this mode, a person can simply control the DC lamp ON/OFF) using a Push Button at the input of the Arduino board, and the DC Fan using another Push Button also connected at the input of the Arduino board.
Automatic Mode: In this mode, the LDR sensor would check for light in the room, if it is dark, the Lamp will turn ON, or otherwise it stays OFF. On the other hand, the DHT sensor would check the temperature and humidity levels in order to control the DC fan and put it into one of two states:
Fan is ON when Temperature is higher than 40 or Humidity is higher than 80