Week 6 - 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)
the idea was inspired from hall automatic lighting
that triggered if someone walking in the hall to light the hall
Tool Chain
Which software/machines/materials did you use in the assignment? Why?
softwares:
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?
the only design in this project was the circuit and electronics
The components of the project:
Arduino - resistors - microwave sensor - RGB LED - jumper wires - breadboard
first connect the led com cathode to the ground
connect a resistor to each pin of the LED
wire the resistors to PWM pins in arduino
wire Vin to positive - gnd to ground
out to pin 7 in Arduino
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?
the wiring:
wired the LED and sensor to Arduino using the schematic shown in tinkercad
the code blocks :
The code works as that :
first if ( read if there is motion in the hall if there light up the LED in sequence RGB with fading effect (count function )
count function is to add the fade effect to the LED (adding 1+ to brightness every cycle
else ( if there is no one in the hall don't light the LED )
the coding :
copied code text from tinkecad and pasted it into Arduino IDE to compile and uploaded the code to the Arduino
Overcoming Challenges
What kinds of challenges or problems did you face while doing the assignment, tutorials, or exercises? How did you solve them? Did you ask for help from an instructor or peer? Please provide a link to the tutorial or article that you used to solve your problem (if any)
the challenge this week is in count it was just blinking ( count very fast ) which isn't what I wanted
after searching I figured out the problem, it was in the delay the code works so fast that counts fast so the fading isn't noticeable
so adding a small delay to the counter that solved the problem easly
note: delay control fading speed.
another problem the fading wasn't smooth so I edited the code in for loop( i = i ) instead of
(i = constant) so that it prints the last i smoothly
Final Project
How can you use the skills and knowledge that you've acquired this week in your final project?
the coding process learned me more about coding and how to think in the right way to get the desired result from code and how to write it in the right way by looking to the tinkercad text
WOW!
What is the coolest thing that you've learned this week? What is something that you will never forget from this week?
the coolest thing was the waving hand robot making I really enjoyed making it with my partner (Eslam)
and made a great boxy Steve from Minecraft world