Ok, I need some advise. I’m trying to get a head start about a scary Halloween build. I have a motion activated MP3 player and I want to have a timed light to come on and a timed motion servo (or 2).
I’m guessing I need to bite the bullet and learn to program something like an Arduino. What kind basic of programable board would be good for what I’m doing? An Uno 3?
Thanks
Well that would be a reason to use Arduino; it’s a language you are familiar with. If you need 5V then Arduino Uno is a great choice. A lot of the other boards out there run on 3.3V.
all three are available at ALIexpress to if you don’t mind the cost at Amazon.
If you install tasmota you can control the playback board based on triggering the human presence sensor. For a simple case you might get away with not programming. Otherwise tasmota has a scripting language called berry which is WAY easier to learn/use than compiling C++ in platformio/arduino. Your script might simply play a round robin of the mp3’s each time the sensor is tripped (with say a delay). Anyway I am going to be doing exactly this (and using a servo motor to open/close and skeleton mouth as well) so I could share anything I code up.
Sorry but I can’t post more than two links since I am new.
I would look at Adafruit.com and see what they have which might get you all the parts you need. Like MP3 player, servo and LED(RGB, pixel ring, etc). And when you find them look at the Learning links on the product pages. Those will include specific instructions on loading libraries and software examples along with wiring schematics.
Even if you don’t purchase the parts from the site, the online docs are fantastic.
The PIR seems to be running off the 3.3V but as long as you have your pull-ups correct you might be able to use the UNO to read the PIR output to then start your timers for controlling the light and servo. Otherwise I didn’t see that MP3 player providing and digital controls.