I have an arduino that I want to use to control 1 ROB-11015 5V soleniod. How can I best set this up. I am very new to all this so any help will be appreciated.
I know i need to hook up the solenoid dto and external soruce, which is a 9V battery (from what I understand this isnt the best solution but its only going to be used for a short time during a presentation). I am using a voltage regulator with capacitors to reduce the voltage. I have tested this and am getting 5v output.
When I connect to the arduino, do I need a transistor, or can I connect it straight into a digital pin? Also, the solenoid only has 2 wires (from what I can see, Its still coming in the mail)..does the ground go to the arduino digital pin?
i really need some advice please. I have my solenoid and purchased a n type mosfet as the switch.
I have the solenoid connected in parallel to a diode. These are both connected to a 5v source. The other wire is connected to the D on the mosfet. The S is connected to ground and the G is connected to pin6 on the leostick.
9V PP3-size battery simply won't be powerful enough, give up on that idea. 4xAA cells perhaps? Best to power the solenoid separately from the Arduino anyhow.
Can't work out what current that solenoid takes, but it will be in 0.2 to 1A range I suspect from the datasheet for the series - you need a power source that can provide this.
circuit and code look basically OK on a quick inspection, MOSFET definitely up for driving that and larger solenoids nicely. Add a 150 ohm resistor between gate and pin6, you don't want to over-current the pin repeatedly, could burn it out.