Hi everyone,
I’m new to Arduino, but would like to apply this to my school project. I’m currently creating a interactive recycling bins, and would like to add sound in it. But the tutorial I would only applies using 1 motion sensor.
I would like to use 4 motion sensors and trigger 4 different sound using 1 pair of powered speaker.
These are some parts I plan to buy:
– 1 x Arduino UNO R3
– 1 x SparkFun MP3 Player Shield
– 4 x PIR Motion Sensor
– 1 x Powered Speaker
Is buying the ‘SparkFun MP3 Player Shield’ correct?
Please help me out, I have no programming knowledge…
Thank you!
sounds like a good route to go, at least you simplify the sound synthesis.
The PIR sensors have to be the easiest to use add-on besides maybe a switch or an LED… (one LED)
you should make it like a game…senses whether the trash thrown in makes the target or not…farting sound when trash is tossed at it but fails to enter …stadium cheers when stuff lands in rapid succession
CircuitBurner:
sounds like a good route to go, at least you simplify the sound synthesis.
The PIR sensors have to be the easiest to use add-on besides maybe a switch or an LED… (one LED)
you should make it like a game…senses whether the trash thrown in makes the target or not…farting sound when trash is tossed at it but fails to enter …stadium cheers when stuff lands in rapid succession
Hahas, thanks for the ideas.
Anyways, do you know how to program the Sparkfun MP3 Player? How do I link them together? Thanks!
Hmmm, given your questions above you might want to look at this instead.
https://www.sparkfun.com/products/11029
http://dlnmh9ip6v2uc.cloudfront.net/dat … -02-01.pdf
There’s no programming involved and it’s less $$s than an Arduino + shield. Some people have had issues getting the board to work with certain SDHC cards, read the comments on the product page linked to above.
One question to answer is whether the particular PIR sensors you want have an active low or open collector type output. If not you’ll need some other simple circuitry to interface the sensors to the board.
Mee_n_Mac:
Hmmm, given your questions above you might want to look at this instead.
https://www.sparkfun.com/products/11029
http://dlnmh9ip6v2uc.cloudfront.net/dat … -02-01.pdf
There’s no programming involved and it’s less $$s than an Arduino + shield. Some people have had issues getting the board to work with certain SDHC cards, read the comments on the product page linked to above.
One question to answer is whether the particular PIR sensors you want have an active low or open collector type output. If not you’ll need some other simple circuitry to interface the sensors to the board.
But SparkFun MP3 Trigger is not through pressing the button? You mean, I can link Motion Sensor to trigger it as well?
And no programming involved? How do I link Motion Sensor?
You mind helping me drawing the circuit mapping?
Very sorry… I’m a newbie…
EDIT:
This is the Motion Sensor I buying… http://www.sgbotic.com/index.php?dispat … ct_id=1049
EDIT2:
I found this, but this is with Arduino + 1 sensor. How can I make it to 3 sensors? http://medialappi.net/lab/equipment/ard … rigger-v2/
FuYiLong:
Mee_n_Mac:
You mean, I can link Motion Sensor to trigger it as well?
And no programming involved? How do I link Motion Sensor?
From the wiki page on the PIR:
http://www.dfrobot.com/wiki/index.php?t … SEN0018%29
This is a simple to use motion sensor. Power it up and wait 1-2 seconds for the sensor to get a snapshot of the still room. If anything moves after that period, the ‘alarm’ pin will go low.
Given the above you only need to connect the OUT pin of each sensor to a separate trigger input pin; 4 PIRs, 4 trigger input pins. When a PIR detects something, an MP3 will play … a different MP3 for each PIR.
You also need a source of power for the PIRs and MP3 Trigger board, ideally 5V or near to it.
Lastly you mention powered speakers. The audio jack on the MP3 Trigger board should work with most powered speakers but there is some chance of a problem there. What powered speakers are you using ?
Mee_n_Mac:
FuYiLong:
Mee_n_Mac:
You mean, I can link Motion Sensor to trigger it as well?
And no programming involved? How do I link Motion Sensor?
From the wiki page on the PIR:
http://www.dfrobot.com/wiki/index.php?t … SEN0018%29
This is a simple to use motion sensor. Power it up and wait 1-2 seconds for the sensor to get a snapshot of the still room. If anything moves after that period, the ‘alarm’ pin will go low.
Given the above you only need to connect the OUT pin of each sensor to a separate trigger input pin; 4 PIRs, 4 trigger input pins. When a PIR detects something, an MP3 will play … a different MP3 for each PIR.
You also need a source of power for the PIRs and MP3 Trigger board, ideally 5V or near to it.
Lastly you mention powered speakers. The audio jack on the MP3 Trigger board should work with most powered speakers but there is some chance of a problem there. What powered speakers are you using ?
Thanks a lot! It will be those normal desktop speaker, or xmini speakers. But anyways, I will buy the parts and test it out first, you mind PM me your email? Incase anything doesn’t works…
By the way, the Trigger pins, are they pre-code with the mp3 tracks file name? So ‘1’ triggered, the triggered pin will play that sound ‘1’?
Thank you so much!
EDIT:
Oh, can I use 1 http://www.sgbotic.com/index.php?dispat … ct_id=1030 to power everything? Or I have to buy multiple to power each PIRs?
FuYiLong:
[/b]Oh, can I use 1 http://www.sgbotic.com/index.php?dispat … ct_id=1030 to power everything? Or I have to buy multiple to power each PIRs?
You can use just the 1 battery pack but you may have to split the output up to connect to the MP3 Trigger and each PIR. The MP3 Trigger circuitry runs off 3.3v and 1.8v and there's voltage regulators on the board to convert the input voltage to those voltages. So long as the input voltage is > 4.5v, the MP3 trigger should be OK. The PIRs need anything from 3v to 5v. I couldn't find an easy way to pick off 3.3v from the MP3 Trigger to run to the PIRs. If you can, that would be ideal ... run 3.3v and ground from the MP3 Trigger to the 1'st PIR and then run a pair of wires w/3.3v and ground from that PIR to the next and then to the next and then to the last.
The next best thing is to tap into the wires as they come out of the battery pack. Because the battery voltage might be more than 5v, I’d add a diode in series to drop the voltage by 0.65v. You’ll have to be careful not to mix up the + and - wires to go to the PIRs.