Newbie here with ambition to make a present for beloved wife. Project: Box with a button. Button push starts mp3 track from a memory card (1:00 min long). LED rgb strip flashes with the help of Msgeq7 chip.
At some exact time points of that mp3 track I need 8 solenoid linear actuator to push sides of the box out. To be exact: 0:15sec 1st solenoid kicks 1st side out; 0:22,5sec 2nd solenoid just kicks; 0:23sec 3rd solenoid kicks 2nd side out Etc., up to the top 5th side of the box that is being kicked out by 3 short and consecutive kicks of 6th,7th and 8th solenoid.
Now comes the question. Cosidering the mp3 and LED should play continuously with no interruptions what is the best way to set time based triggers for solenoid linear actuators?
I was thinking first to do a frequency markers in mp3 track itself, so, i could use them as triggering points for Msgeq7 chip. But Msgeq7 only has 7 bands to detect frequency and with 8 solenoid and atleast 3 band for LED strip that seems not a good idea. Not mentioning that i have no clue (yet) how to change frequency in parts of mp3.
Next i thought of using millis() for timing solenoid after mp3 starts, but not sure if it will work the way i intend it to.
What do you think?