Home Creators Posts Import Register Favorites Logout

Content

This post contains the link to access additional resources related to the Knife Throwing Circus Trick project.

You can access the resources at the following Google Drive link:

https://drive.google.com/drive/folders/14E6aRDLcYXD9Bz5II5Cf_udhApj_5Rp3?usp=sharing

This will take you to a folder containing the wiring diagram and associated Fritzing project, together with a subfolder containing the (Arduino IDE) ESP32 code.

One quick point to note - I recommend you download the entire folder and then unzip it to your local hard drive, then simply double-click on the .ino script in the "KnifeThrower" subfolder to open it in the Arduino IDE. This should be all you need to do! You can then compile and upload to your board (after having made any changes to reflect any differences in hardware setup you may be using). You do not have to install any additional libraries through the Arduino IDE library manager (and generally, you never do with my projects), and doing so might even generate errors!

To explain further: even though I make use of an external library (https://github.com/SnijderC/dyplayer), there's a local copy of that library contained in the /src subfolder and already included in the download. That's why I reference it using "src/" in the source code, rather than <libraries/>, which would instead look for a library installed in your global Arduino libraries folder. One reason for doing this is because 3rd party libraries can introduce breaking changes over time, and if people are running my code against different versions of the library it makes it hard for me to help debug any errors, so I include a particular version that I know works with the code. Hope that helps explain!

The hardware I used is as follows:

3x IR beam break sensors https://www.aliexpress.com/item/4000339991917.html

5V Relay module https://www.amazon.co.uk/DollaTek-KY-019-Channel-Module-arduino/dp/B07DJ4ZD99/

12V electromagnetic lock https://www.amazon.co.uk/GXY-Electromagnetic-Electronic-Magnetic-Electric/dp/B08Y5TWFT5

ESP32 (for convenience, I like using the ones that come with an expansion board that make wiring components to the pins easier) https://www.aliexpress.com/item/1005005943930432.html

DY-SV5W audio player https://www.aliexpress.com/i/4000072741968.html

Enjoy practicing the impalement arts, and please ask if any questions!

Comments

Vagos Barlas

Hi... The specific ir sensor link is not even showing a page in our region (Greece) could you please provide us with a link to the product that would do so, in order to have the sensor info and description

Vagos Barlas

Thanks... This link is working like a charm