I don't know why i can't come up with an answer for this, I feel like an idiot.
I have a 12 servo biped that has two power sources.
A 9v battery for logic on both an SSC-32 Servo Controller, and an Arduino ADK.
There is also a rechargeable 6v 16mah battery pack connected to the SSC-32 for servo power.
Currently this is what I have to do to get it to start:
If programming:
Connect USB cable to Arduino, power is spliced to SSC-32 as well.
Flip physical on/off switch to on for servo pack
If Autonomous:
Hook up 9V manually, power goes to SSC-32 as well
Flip physical on/off switch to on for servo pack
Major(Minor) issues
If the servos are turned on before the logic (I've asked this question before but never found an answer) the servos behave violently and randomly.
If USB is plugged in while 9v connected, COM abilities lost, a computer reboot and Arduino shut down required to regain communication
I'm hoping that someone can give me an idea on how to replace the physical mechanical switch, with something the Arduino can control when it receives power. I don't want to buy anything as I am hoping that I can just DIY it really quickly.
I only have one IRF510 MOSFET left, plenty of 2N3904 Transistors, and any resistor I could need. This has to be enough for a circuit.
Goal: to switch 6v 1.6Amp power source on/off via Arduino
Sorry if I've made this way too complicated, but like I said I just can't think today for some reason.
SilentDemon555:
I only have one MOSFET left, plenty of 2N3904 Transistors, and any resistor I could need. This has to be enough for a circuit.
Goal: to switch 6v 1.6Amp power source on/off via Arduino
The transistors won't be a big help because the datasheet (Intelligent Power and Sensing Technologies | onsemi) says that they are only rated for 200 mA continuous collector current.
The IRF510 MOSFET won't be of much help either. The data sheet ( http://www.vishay.com/docs/91015/sihf510.pdf ) shows that if you drive the Gate with only 5V you will only get about 1 Amp through it. That MOSFET, like most, is designed for 10V on the Gate. For the Arduino you want what is called a "logic level" MOSFET, designed for a 4.5 to 5V Gate voltage.
Alright, so i have to buy something. Now that i'm buying something, is there something premade, or cheap. The DIY option was if i had the parts, which it looks like I don't, some kind of simple three prong IC? Or will one of these logic level FETs work all by themselves?
A logic-level N-Channel MOSFET between the common ground of the servos and the negative side of the 6V battery should do the trick. Just look for one that can handle at least 10V and at least 3A. Use a pull-down resistor on the Gate so that the MOSFET stays OFF when the Arduino is disconnected, turned off, or reset.
Any recommendations on FETS?
How many ohms should the pull down be, 10k? In the future how do I calculate a pull down?
and is this attached picture what you meant?
I bought 2 FQP30N06L FETS. Will these do?
You can not use N-Channel MOSFET to control the supply, you need logic level P-Channel MOSFET to control supply.

BillHo:
You can not use N-Channel MOSFET to control the supply
The N-channel MOSFET is being used as a low-side switch (between load and Ground).
SilentDemon555:
I bought 2 FQP30N06L FETS. Will these do?
Yes. Those will work much better with a 5V signal to the Gate.
Okay I have no idea what I did wrong...
I tried to build a low-side FET switch but...
I took the aforementioned MOSFETS I bought and soldered one to a circuit board. I put a resistor from Gate to Source(10K) and I soldered the ends of the mosfet to a wire screw terminal.
I then took both negative leads(Power from battery is soldered to VCC on Servo controller) the ground from the Servos and the negative from the battery and attached them to the terminals. I took a bread board wire from my Arduino and clamped it in the third GATE terminal.
As soon as the wire touched the gate, the Bipeds leg came and hit me in the face.
I then attached a ground wire from the SSC to the Arduino, same thing.
I don't know why this isn't working... I turned the Arduino on and set the swithpin to HIGH... then LOW... Still not working, power just stays on the the servos... why isn't it working?
Oops... I had Source and Drain confused in my head. Reverse them:
http://www.physics.udel.edu/~watson/scen103/mos4.html
Your load (the GND side of your servo controller board) connects to Drain and Source connects to Ground.
Doing that, switching both of the black cables, still makes the servos power up, but this time it's either really weak with a LOW signal from the Arduino, and when HIGH is set, the servos receive seemingly full strength
Oh and the FET gets really hot
I've checked my circuit from crosses... I just don't know anymore... is breadboard wire enough to transfer 6v 1.6A...? i would believe so...
LED, same thing.
I attach the LED low side to the the mosfet with a pull down resistor of 10k. The LED is always on, but gets a little brighter with an Arduino HIGH signal...
I don't know why this always happens to me. I gave up TTL logic because this always happened, the circuits stay on and won't go all the way off.
I rewired a new circuit, the FET now works to turn on and off the LED, but the same problem happens with the Servos...
Here is my drawing to describe what this looks like...
I'm desperately looking for an answer
Take the wire connecting Arduino Ground to MOSFET Drain and move it from Drain to Source.
Take the wire connecting Arduino Ground to MOSFET Drain and move it from Drain to Source.
Done, and same result
I don't understand why the servos power up when either ground or a digital pin are connected to GATE... the gate isn't receiving a HIGH, so it shouldn't transfer power
And once again, a shameless bump.
I can't move forward without fixing this problem, this is crucial right now... Any other hints? What am i doing wrong? May it have something to do with the two connected grounds of different battery sources all kind of smashed together?
Been trying to get around it for three days... A MOSFET should work and i'd rather not have to use a relay. Would a relay work though?
I'm just asking questions, annoying the hell out of the forum to try and get a frickin answer to this stupid problem.
Again here's and image of the (i don't even know if there's enough parts on it to even call it a circuit) module.
No solder bridges, the resistor in the back isn't touching anything... Again this module works perfectly with an LED and still does. Just not this god damn power source.
The resistor's leads are attached to the first and third pin
I fixed the problem I guess. I have no idea what happened, I tried it every which way and even ways I knew wouldn't work. I had grounded the MCU to the wrong pin of the MOSFET, the MCU has to be wired to the non-load side of the FET, not the middle pin but the far right.
I swear I tried this already, but I guess life just hates me haha