Smart Shoe
I thought of making a smart shoe that can help many people:
1- it can help blind people to detect obstacles
2- it can help diabetic people to detect obstacles as diabetes cause nerve damage in their foot that reduce the ability to feel pain so they often hit things and get hurt without knowing that and their wounds are hard to heal.
3- it can prevent people from falling by alerting them.
First, I built my circuit on bread board
I used US sensor, jumper wires, breadboard, buzzer, LED, 220 ohms resistor, arduino uno, USB cable and tilt sensor.
I have 2 inputs : tilt sensor and US sensor
I have 2 outputs: LED and Buzzer
then, i used arduino ide software to write code and upload it on arduino and tested my circuit to make sure it's working
At last, I used tinkercad to make wiring diagram needed
connections on breadboard
At the beginning, I used my breadboard and electrical components to build my circuit
1- first, i connected pos. and gnd of breadboard to 5v and gnd in arduino uno.
2- second, i connected the tilt sensor (first input), one terminal to ground of breadboard, other to positive on breadboard and the third to digital pin 2 on arduino
3- third, i connected the US sensor (second input),it has 4 terminals, i connected VCC to positive on breadboard ,GND to ground in breadboard, and trig to pin 9 on arduino uno and echo to pin 8 on arduino
4- Then i connected the resistor to cathode of LED (1st output) and connected them to ground of bread board, and connected the anode of LED to digital pin 12 in arduino
5- At last, i connected positive of buzzer (long pin) (2nd output) to digital pin 13 in arduino and negative to ground in breadboard
Then i started coding my project on arduino IDE, i want if the tilt sensor is tilted or if the distance to US sensor is closer than 15 cm or the shoe is tilted then buzzer and led will work
else if distance to US sensor is more than 15 cm or the shoe is stable then buzzer and led won't work
- i searched for the code of US sensor on internet to know the equation needed to change the reading from US sensor to distance in cm
-i also searched for how to use and connect tilt sensor on the internet
- then i copied these code and completed my code on arduino ide and uploaded the code to my arduino.. i tested the circuit by tilting the tilt sensor and putting my hands near and far from US sensor
At last, I used tinkercad to make wiring diagram needed as the one i made using breadboard
(I used slide switch instead of tilt sensor in the diagram)
wiring on tinkercad
Code on arduino IDE
1- hardware connection
1- first, i connected pos. and gnd of breadboard to 5v and gnd in arduino uno.
2- second, i connected the tilt sensor (first input), one terminal to ground of breadboard, other to positive on breadboard and the third to digital pin 2 on arduino
3- third, i connected the US sensor (second input),it has 4 terminals, i connected VCC to positive on breadboard ,GND to ground in breadboard, and trig to pin 9 on arduino uno and echo to pin 8 on arduino
4- Then i connected the resistor to cathode of LED (1st output) and connected them to ground of bread board, and connected the anode of LED to digital pin 12 in arduino
5- At last, i connected positive of buzzer (long pin) (2nd output) to digital pin 13 in arduino and negative to ground in breadboard
Steps are provided in pictures
video is provided
2 -Steps of Coding
-i want if the tilt sensor is tilted or if the distance to US sensor is closer than 15 cm or the shoe is tilted then buzzer and led will work
else if distance to US sensor is more than 15 cm or the shoe is stable then buzzer and led won't work
- i searched for the code of US sensor on internet to know the equation needed to change the reading from US sensor to distance in cm
-i also searched for how to use and connect tilt sensor on the internet
- then i copied these code and completed my code on arduino ide by writing if else conditions and uploaded the code to my arduino uno board
-finally i tested the circuit by tilting the tilt sensor and putting my hands near and far from US sensor
3- Enclosure
I integrated my circuit within the device by cardboard enclosure.. I made a shoe using cardboard, opened holes for non electric components using scissors
then, I Enclosured all my circuit components inside the cardboard shoe and kept the non-electric parts (US sensor, buzzer, led, tilt sensor and USB jack) prototyped out from the cardboard.
-steps of designing cardboard shoe, putting the components are provided
- video for final project working is provided
video of project working
Steps of building circuit
writing code on arduino IDE
video of final project with enclosure working
Steps of enclosure
videos for my project first without tilt sensor
yes, first after i finished my project, i showed it to my instructors, they told me that the switch is not considered as an input, and they suggested to add another sensor .. so i thought of adding tilt sensor to alert people if their feet get tilted so that they wont fall.. and i added it to my project.
I got stuck when i connected US sound and i wanted to code it
i put the code and tried it but it wasn't working correctly.
so i searched the internet for US sensor code and found that there is equation to transfer us sensor reading into distance
https://forum.arduino.cc/t/distance-measurement-using-ultrasonic-sensor/11082
I also needed to learn about tilt sensor before using it, so this site helped me to know it's connection & code
https://arduinointro.com/articles/projects/tilt-sensor-with-arduino-easy-tutorial
distance measurement using US sensor
tilt sensor pinout
arduino inputs, outputs
i started to learn how to use arduino uno in controlling many inputs and many outputs
this will help me later in programming keypad, switch (inputs) and LCD ,stepper motor (outputs) in my candy dispenser final project
Debugging
Finding the "Bug" in my code and in the codes that my instructors gave us in the last session was really cool and i learnt a lot from it
debugging
I attended a new African dance class at the gym😀
it was different and really cool, bringing the energy and keeping the vibes sky-high!
Title of Media