Hi
Im a beginner with electronics. I made a project using music and a dc motor. For music i used flash and a hacked keyboard, and for controlling the motor an Arduino Uno.
Now, i would like to improve the project using less stuff, and i would like hook up to an Arduino Uno my Mp3 Shield and at the same time control one dc motor with one of the free pwm pins.
The question is how can i feed the Arduino shield, and if its possible without burn it. If you can tell me wich components i will need or show me a simple sketch i will be very grateful.
Thanks!
How did you control the motor originally ? What Arduino pin and what other circuitry did you use ? You may not be able to use the same pin (due to the shield) but another pin (D5) might still be useful in the same way as you did before.
Hi
I used one of the pwm´s pin, i dont remember wich one, maybe D10. The circuit was composed by a transistor, a diode and a resistor. I only need to module the speed trough programming.
The thing is that if Mp3 shield use the Gnd and the 5v pin, and i connect the dc motor in paralel, will i need feed with another 9v battery or its just enough with one of it? will i need change the first circuitry?
Thanks for answer!
If your wiring followed (in general) what was done here …
http://oomlout.com/a/products/ardx/circ-03/
… then it might work, though I think the pin used should be D5.
I don’t know how much current the MP3 shield uses; it might be enough that the combination of Arduino plus shield plus motor might overtax the 5V regulator on the Arduino and it might overheat as a result. You can try it and see what happens. Should the Arduino regulator get too hot and not work, you’ll need to find another supply for the motor. Connect the + terminal of the motor (and the diode) to the + terminal of the 9V battery. Running most “true” 5V motors directly off the 9V is OK, though I’d expect some reduced lifetime. I would be concerned that a typical 9V battery would not run the Arduino plus shield plus motor for very long before going dead, but it should work until the battery dies.
Thank you very much for the answer
Looking this sketch (page 8 ): http://www.sparkfun.com/datasheets/Widg … output.pdf
Im wondering what voltage does capacitor work with? Because here: ( https://www.sparkfun.com/products/10628 ) mates are just talking about uF.
Thanks again
If you’re talking about C1 and C2 in Figure 8, those are DC “blocking” caps. The outputs of the IC on the shield are biased at Vcc/2. That is the AC music signal is a voltage that goes above and below the DC bias of Vcc/2. If you connected the output directly to a speaker, that speaker would get both the music and a DC voltage. That DC voltage wouldn’t do the speaker much good and if the speaker has a low enough impedance/resistance, might smoke the IC as well. Putting a cap in series will stop the DC from appearing at the speaker (or amp or whatever). The larger the value of capacitance, the less the low frequencies to the speaker will also be blocked (reduced). 10 uF is probably a good number, 1uF might do in a pinch if you don’t mind loosing some bass. The voltage rating of the cap should be Vcc/2 plus a bit. The IC on the shield runs off of 3.3V so a 5V rating would more than suffice. As said in the comments, if you get an electrolytic cap connect the + side of it towards the shield.
Read the top of pg 17 in the datasheet. Also note the expected speaker impedance/resistance is 30 ohms (or more).
http://www.sparkfun.com/datasheets/Comp … vs1053.pdf
Thank you very much for the help!
Mee_n_Mac:
If your wiring followed (in general) what was done here …
http://oomlout.com/a/products/ardx/circ-03/
… then it might work, though I think the pin used should be D5.
I don’t know how much current the MP3 shield uses; it might be enough that the combination of Arduino plus shield plus motor might overtax the 5V regulator on the Arduino and it might overheat as a result. You can try it and see what happens. Should the Arduino regulator get too hot and not work, you’ll need to find another supply for the motor. Connect the + terminal of the motor (and the diode) to the + terminal of the 9V battery. Running most “true” 5V motors directly off the 9V is OK, though I’d expect some reduced lifetime. I would be concerned that a typical 9V battery would not run the Arduino plus shield plus motor for very long before going dead, but it should work until the battery dies.
…if i use a 12v battery to supplies arduino plus DCmotor plus mp3 shield?
The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts.
http://bildr.org/2012/03/rfp30n06le-arduino/
Connecting the motors externally and using this scheme i already know to supply some devices hooked up to arduino.
But i dont know if using mp3 shield i could get some pwm´s pins free to using them for other devices. I know that 5pwm pin is free, but somebody knows if all the pwm´s pins connected to the shield are strictly necessary? Or maybe i could use one of them if i just want to play and stop only one song.
Thanks