Journal
WEEK7
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)
I decided to make something that combines parenting and gamification so I found that I can make a sound and light game with an ultrasonic senor and push button for kids safety purposes
the device will be used behind doors or behind the door electrical system center to make mothers more aware if kids are dealing with electrical points
The source of inspiration is my background about the habits process
Tool Chain
Which software/machines/materials did you use in the assignment? Why?
Software: I used Tinkercad to design and simulate the circuit before we use the real electronic components; To avoid any problems in the real circuit and avoid damage of the components.
Electronics components
Breadboard
ultrasonic sensor
peizo buzzer
Led light (red )
resistor 220 omm
pushbutton
arduino uno
Jumper wires
Materials :
cardboard
ruller
scissors
wax gun
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?
Introduction :
I used TINKERCAD to simulate the circuit before I started to Build the circuit on a breadboard in real.
The inputs :
an ultrasonic sensor to detect distance of kids proximity from electrical points
and a pushbutton for manual mode
The outputs are
1. sound using piezo buzzer
2. and light using Led light
The power is supported from arduino uno (5v) as the piezo, Led light, pushbutton and ultrasonic sensor can work friendly
The circuit is connected as shown in simulation using wires and breadboard
the Arduino Uno takes orders through code
Details :
I tried to draw the circuit on tinkercad so I inserted the components ( Piezo buzzer, Ultrasonic sonsor, Arduino uno, breadboard,pushbutton,Led light, wires )
The wiring steps:
The ultrasonic sensor has 4 pins :
* vcc (connected to 5v arduino pin through breadboard),
* ground (connected to ground pin in Arduino ),
* echo(connected to digital pin 2) and finally
* trigger (connected to digital pin 3)The piezo's positive side is connected to the digital pin (9) in arduino, and the other side is connected to ground of arduino
the led light is connected to 220 omm resistor :
the +ve connected to pin (7)
the -ve connected to arduino ground
the pushbutton:
one side : connected to pin (12)
the other side : connected to pin (AREF)The power source is 5v from arduino uno
then I used Arduino C Text to write your code in Arduino
The code scenario
basically if someone is near by 20 cm, the buzzer and led is working with rhythm in automatic mode, if someone push the button, the buzzer and led is working with rhythm in manual mode
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?
wiring

The wiring steps:
The ultrasonic sensor has 4 pins :
* vcc (connected to 5v arduino pin through breadboard),
* ground (connected to ground pin in Arduino ),
* echo(connected to digital pin 2) and finally
* trigger (connected to digital pin 3)The piezo's positive side is connected to the digital pin 9 in arduino, and the other side is connected to ground of arduino
the led light is connected to 220 omm resistor :
the +ve connected to pin (7)
the -ve connected to arduino ground
the pushbutton:
one side : connected to pin (12)
the other side : connected to pin (AREF)The power source is 5v from arduino uno
The code scenario
basically if someone is near by 20 cm, the buzzer and led is working with rhythm in automatic mode, if someone push the button, the buzzer and led is working with rhythm in manual mode
I upload the code in arduino after checking any mistakes
then I test the project

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)
I didn't find the idea easily so I finish this task after inspiration of my peers and instructor
After finishing real wiring and uploading the code, the buzzer don't stop,as happened in week 6 assessment The diagnosis was problem in some wires continuity after testing by avometer, I reconnected the circuit then checking the code for any mistakes
Final Project
How can you use the skills and knowledge that you've acquired this week in your final project?
using sensors in combination with manual inputs as well as coding and uploading on arduino are so helpful to me during final project phase
WOW!
What is the coolest thing that you've learned this week? What is something that you will never forget from this week?
Making a Smart Temperature Indicator circuit using Arduino & Building a simple representation of a smart home system which senses the light in a room, as well as, weather parameters (temperature and humidity) in order to control a DC fan and a DC lamp are two projects that help me a lot.
Finding the person searching game is so nice