http://forum.boundanna.net/board/viewto ... =12&t=8478
But it is a bit too difficult for me to understand. It also has a lot of features that I'm not looking for. Instead, I want to learn by starting with an easier project. I have three california exotics egg vibrators that I'd like to hook up to an arduino. Each egg vibrator takes 2 AA batteries ( 3V total, 1.5V each for standard AA battery). With a tech sheet, I'm guessing each egg requires 3V.
I do have a few questions if someone doesn't mind answering:
(1) Can I run them all at once on the arduino by hooking the wires directly to the pins? The thread I linked talked about MOSFETs, but I don't think I need them? The arduino wiki says:
So that means I can power each bullet so long as I put a resistor between the eggs and the 5V pins?If the pin has been configured as an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.
(2) The vibrators are similar to this:
http://www.vitacost.com/Images/Products ... 004024.jpg
You can't see it very well, but there are two wires running in parallel back to the controller. Is one wire GROUND and the other power (I would hook this up to the arduino pin)?
(3) digitalWrite() seems to output a fixed number of volts. Is there a way I can vary the voltage to get speeds between HIGH - LOW vibrator speeds? I'm assuming that varying voltage is what causes the rotors to vary in speed. I'm fine with hardcoding the patterns into the program. Something like:
start - speed at 3V
10s - speed at 1V
20s - speed at 2.5V
repeat
- To power everything, can I choose a battery that has a really high mAh to get hours of running? I found this which has 6Ah, but only at 3.7V:
https://www.sparkfun.com/products/8484
I was thinking of using the Arduino Mini Pro to keep things small (aside from the battery) and maybe the Uno as a test board. How long will that battery last with this configuration? Will I need two?
Thanks all!