Week 6
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)
Using an ultrasonic sensor and buzzer with Arduino to prevent visually impaired people from being hit by an obstacle.
Source: https://www.youtube.com/watch?v=FHww-ojh568&list=PLTL2YC_uOJh9m1fO_e5pDbZKC4g1bz0fZ&index=5
Tool Chain
Which software/machines/materials did you use in the assignment? Why?
For building the CIRCUIT
1 . Software:
TinkerCAD, for circuit simulation.
Arduino IDE
2 . Tools:
Breadboard
Jumper Wires (male-male)
Arduino Uno - R3
Piezo Buzzer
Ultrasonic Sensor
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?
Designing the circuit on TinkrCAD:
-The Device parts:
Breadboard.
Arduino Uno R3.
Ultrasonic Sensor.
Piezo Buzzer.
Wires
Schematic diagram
Component List
-Connections:
Ultrasonic sensor: Common GND to GND at Arduino, VCC to 5v, Trigger to pin 10 and echo to pin 9.
Buuzer: GND to GND at breadbaord to the Arduino's GND and the +ve to pin 5.
Circuit Wiring Diagram
-Code:
First the code defines the inputs and outputs on code.
Input components : Ultrasonic senses the distance and send it to Arduino and based on it Arduino and output action will be taken based on the value.
Output components: Buzzer which will make a sound given the distance
Setting condition: -If the value that ultrasonic reads is < 10cm, the buzzer peeps with tone 1000 through the buzzer on pin 5 then delay for 1 sec takes place.
-If the value is <10cm the buzzer peeps with less tone 500 through the buzzer on pin 5 then delay for 1 sec takes place.
-If the distance is >15, then the buzzer is off.
Block Code
Circuit Simulation in TinkerCAD
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?
1.Building the circuit on breadboard:
Connecting the ultrasonic and the buzzer to Arduino.
-Connections:
Ultrasonic sensor: Common GND to GND at Arduino, VCC to 5v, Trigger to pin 10 and echo to pin 9.
Buuzer: GND to GND at breadbaord to the Arduino's GND and the +ve to pin 5.
Connections using jumpers on breadboard.
2.Open Arduino IDE and write the code and verify .
Writing the code
Verifying the code to make sure there's no error.
3.Connecting the Arduino and testing the device.
Connecting the Arduino to the Pc and uploading the code
Connecting the Arduino to the Pc and uploading the code
Testing the device.
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 had a problem while doing the assignment:
After finishing the wiring and it was the same as wiring diagram, the device didn't work, so i removed the wires and re-connected them but this time i relocate the wires connected to the ultrasonic behind it and it worked .