Need gadget to switch light on when room door is opened, and then play one of ten welcome messages followed by one of ten musical selections, then switch light off when door closed. Do I need a raspberry pi in order to select the random messages/music? OK, this is for a toilet leading off the kitchen - you can hear everything so figured this would be a fun way to disguise and stop embarrassment.
Find it confusing, so if the Arduino route - the UNO rev3 is the best? And a starter kit too, to not only learn but accomplish the links to the mains light fitting and some speaker? Thanks for any help.
Arduino + MP3-player module will do it (the Arduino itself cannot play the music).
You could also have the arduino simulate keypresses on a cheapo mp3 player to choose the song.
Or and Arduino and a wave shield:-
I understood that Arduino responded to sensors whereas the Pi was programmable.
I need it to get a random number and execute a couple of loops to choose random files,my hen do a second action. Can the Arduino indeed be programmed like this?
Thats my confusion!
I understood that Arduino responded to sensors whereas the Pi was programmable.
What does that mean, both the Raspberry Pi and the Arduino are programmable and both "respond" to sensors, or to put it correctly both can read sensors.
I need it to get a random number and execute a couple of loops to choose random files,my hen do a second action. Can the Arduino indeed be programmed like this?
Yes the Arduino can do that, but I am not sure about the chicken bit.
For the Arduino to have files to choose you will need an SD card.
Thanks for this people! Trying to make the right choice from the million kits. Probably small cheap and cheerful to start with since I havent a clue what diodes, pots and that's why I'll enjoy staring. Thanks all for your time.
Trying to make the right choice from the million kits.
Tough but the information is out there.
If you feel the need for Pi information then I write in this for the last four issues all free on line:-
Also here:-
http://www.thebox.myzen.co.uk/Raspberry/Dummies_Projects.html
And other pages in that section of my site.
Most of it is applicable to both platforms. The big difference is that the Arduino is real time, that is you can do precise things with signals, like measure the period or control a stable output. Where as the Pi has a vast array of more complex functions like video but the Linux steals time from your code in unpredictable chunks of up to half a second.