About the project
Have you ever wanted to be cleaned after a cough. Well let me intrduce the Disinfectant Bot.
Estimated time: 2 hours
Items used in this project
|Butt load of wires||x 1|
|Disinfectant spray can||x 1|
|9v battery(optional)||x 1|
|Hardware 9V Battery Clip||x 1|
First off I made a video about this project if you want to see me demonstrate it and talk about the hardware a bit more:
Oh yea sorry in advance if this is hard to follow this is like the first time I'm using this website(which is kind of cool) so hope you have fun:)
For this project I first installed standardfirmata on my Arduino so I could use python on it. Basically just got to the examples in the Arduino IDE and look for firmata then standardfirmata and download it. I then started putting together the spraying part of the whole build. You can check the vid for where I put everything on disinfectant can(this sounds weird typing). For the pin on the Arduino I plugged the servo signal pin in pin 13 and if you want a Led plug it into pin 12. If you are using a led that requires more than 5v make sure to use a relay and connect it to pin 12 like before. Make sure to have all ground and 5v pins plugged into the Arduino. You can really organize the electronics how every you want whether you want it on or off the can just make sure the servo can press on the spray can properly. Now for the fun part...
THE CODE WOOOO he said sarcastically.
For this part make sure to have the speech recognition, pyaudio, and pyfirmata modules installed on your computer. There are videos that will show you how to install them sadly I don't remember the one I watched so uhm have fun. I should have the code on this whole thing linked so if you want you can look over that. The code looks for the word cough and will activate the spray. uhm I'm not the best at explaining things specifically so uhm if you want just copy the code or look it over.
That is it now you can make this amazing device(or trashy). But I hoped you enjoyed this horrible explanation of my invention and as always stay trashy:)