Gateway 2022, St Louis Convention RrrDuino Hands-on Clinic
Let's make a sound or play a song with an Arduino using a mp3 file and a DFPlayer when someone or something walks by as we detect it with an ultrasonic sensor! This clinic might use some advanced concepts like OOP, Time of Flight sensing and mp3 decoding, but since you won't need to know how any of that works, any beginner should be able to follow along!
The first 15 people to register for the clinic (please use the Eventsquid site to register) and pay $22.00 (don't pay Eventsquid), will receive:
As time goes on, this page will provide more information about the clinic, and when it is all done, the clinic's pdf and the code will be hosted on github with a link to it from here:
Step 1: Get the Arduino IDE running on the computer you are bringing to the clinic:
Windows instructions: docs.arduino.cc/software/ide-v1/tutorials/Windows
macOS instructions: docs.arduino.cc/software/ide-v1/tutorials/macOS
Linux instructions: docs.arduino.cc/software/ide-v1/tutorials/Linux
Step 2: If you have any Arduino board handy, make sure you can upload code to it. Any new Arduino board (Uno, Nano, and others) have the "Blink" program already running on it. So by opening an empty Sketch and uploading it (Ctrl+u), the built-in LED on the board would stop blinking. And opening and uploading Blink from File->Examples->01.Basics->Blink, will make it flash again. If you do NOT have an Arduino handy, let me know, we will need to make sure that the device driver to either the FTDI or CHG340 device can be installed before the clinic starts.
This is also a handy low cost "shield", with screw terminals, to plug your Nano into: https://www.aliexpress.com/item/2251832726307244.html
(Not required, but life has ways to make life easier! Just remember to bring a small flat head screw driver too.)
Update 2022/07/25: Please install the DFRobotDFPlayerMini library
With an active internet connection,
Launch the Arduino IDE
Update 2022/07/26: Bring your own sounds
Update 2022/07/31: Set the Preferences so we can help you quicker
Please open the File -> Preferences (Ctrl+comma) and set and unset the following settings:
Show verbose output during: [x] compilation and [x] upload
[x] Display line numbers
[ ] Check for updates on startup
After the clinic, you can check the last one again, but the lack of internet is going to slow us down in the clinic room!
Then click OK at the bottom to make it real.
Update 2022/08/17: Scratchy sounds?
If your mp3 file sounds a little like a scratchy record player, try adding a 1 kOhm resistor in the RX and TX lines between the DFPlayer and the Arduino Nano. So, move the yellow and orange wires at the DFPlayer to the right of the red power wire, and insert a resistor between where the yellow was and now is, same with the orange wire. Larry gave us this tip, thank you!