Miami
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« on: November 28, 2012, 05:55:53 pm » |
Purpose:Rotate a 4 wire bipolar stepper motor (32.6 ohm) & activate a solenoid (13.3 Ohm) at different times. Using H-bridge ( LN298 4A) for the stepper & N-Mostfet (tp120) for solenoid. INPUTI have burnt multiple 1A H-bridges when using the same power source for all (19V 4.74A). So, I use a 19V 4.74A for the motor & a 12V 2A for the solenoid. (This sucks) Arduino is running of USB (Already burnt out an arduino when then other H-bridge blew, so i scared) PartsMotor https://www.sparkfun.com/products/9238Solenoid https://www.sparkfun.com/products/10391 H-Bridge https://www.sparkfun.com/products/9479PROBLEMPOWER! How do i safely power this, or MORE, with one power supply? I keep burning things out when I try to use one power supply... I thought the 19V 4.74A voltage supply would work, but it burnt out my arduino and three 1 amp H bridges.. womp womp... PLEASE HELP ME OPTIMIZE MY LAYOUT. ESPECIALLY BECAUSE I WILL BE ADDING 2 MORE to THE SAME CIRCUIT. (3 motors 3 solenoids 1 ardiuno) (+LEDs & bla bla). POWER PROTECTION; HOW?? 
|
|
|
|
|
Logged
|
|
|
|
|
Poole, Dorset, UK
Offline
God Member
Karma: 8
Posts: 673
|
 |
« Reply #1 on: November 28, 2012, 06:15:50 pm » |
First Why have you got the 5v output of the uno going to your breadboard?
Second Why do you (think have two Earth's on the upper (in the pic) rails of the breadboard?
Third How are you powering the uno?
Mark
|
|
|
|
|
Logged
|
|
|
|
|
Canada
Offline
Sr. Member
Karma: 0
Posts: 319
Sometimes teaching, always learning,
|
 |
« Reply #2 on: November 28, 2012, 06:44:40 pm » |
Show us exactly how you have the H-Bridge connected. "Not Shown Correctly" doesn't help us.
|
|
|
|
|
Logged
|
|
|
|
|
Miami
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #3 on: November 28, 2012, 08:29:58 pm » |
I need the 5v for the LN298 H-bridge... (also, I use it for LEDs and another IR sensor)
I cannot find the LN298 in the frittzing software, but I have both outputs enabled and it works correctly. (no caps resistors diodes used). I am trying to draw up a custom part now. Bear with me, because I am learning Fritzing as I go...
|
|
|
|
« Last Edit: November 28, 2012, 08:33:30 pm by GuyJustHere »
|
Logged
|
|
|
|
|
Miami
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #4 on: November 28, 2012, 09:36:53 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1049
|
 |
« Reply #5 on: November 29, 2012, 04:54:25 am » |
the schottky across the solenoid, should be across the solenoid ONLY you have it across the solenoid AND the NPN? FET
|
|
|
|
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
Offline
Full Member
Karma: 2
Posts: 199
|
 |
« Reply #6 on: November 29, 2012, 06:03:02 am » |
5V and 3.3V on the Arduino board isn't supposed to be connected together.
|
|
|
|
|
Logged
|
|
|
|
|
Miami
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #7 on: November 29, 2012, 08:00:48 am » |
5v and 3v are not connected. It's a poor drawing.
I will fix the diode location today.
I still need to figure out how to wire ALL of this with one power supply SAFELY?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 207
|
 |
« Reply #8 on: November 29, 2012, 08:01:07 am » |
Oops? Data sheet shows pin 9 of this device as Logic supply voltage and pin 4 as Supply voltage. It appears you have these swapped. - Scotty
|
|
|
|
|
Logged
|
|
|
|
|
Miami
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #9 on: November 29, 2012, 09:29:08 am » |
I just have it drawn incorrectly, but that all works. I double checked and you are correct sir!
Now if only someone could teach me how to power this contraption with only one power supply
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 207
|
 |
« Reply #10 on: November 29, 2012, 09:47:04 am » |
Now if only someone could teach me how to power this contraption with only one power supply Bit of a waste of power but: 19v-------7812 regulator | | | | | --------------------------7805 regulator | | | | ---------- solenoid supply ---------- logic supply | ----------- stepper motor supply - Scotty
|
|
|
|
|
Logged
|
|
|
|
|
Miami
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #11 on: November 29, 2012, 01:59:55 pm » |
So I will have quite a bit of power loss?
I could just use a voltage divider for the solenoid, because I don't need a regulated voltage. I only need to make sure the current draw from the solenoid or motor does not impede or burn out the logic.
that's why i don't want to use 19 v on the solenoid. I don't need that much current being drawn from the solenoid. It is a killer. I would rather it draw ~12 V, So about 1 amp instead of 2 amps at 19v.
Will these type of regulators help to protect me from surges from the motor or solenoid? Noise?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 207
|
 |
« Reply #12 on: November 29, 2012, 04:38:10 pm » |
I wouldn't call it a power loss; that suggests not having enough power. It would be a power waste in that the differential between input an output of a regulator is burned off as heat. e.g. for the 7812 the input is 19, the output 12 so 7 volts is 'burned off'. How much power is wasted can be determined by multiplying the voltage differential by the current going through the device. If your not energizing the solenoid ALOT, I wouldn't worry about it unless your running off a battery or battery pack; and I doubt that since 19 v would be an uncommon battery voltage. Same with the 7805. With your circuit you are only powering two ICs and the logic voltage they use is only for signals. The other way to go about it is to use switching regulators but they are significantly costlier.
Using a voltage divider for power is pretty much a no-no. In order not to have significant current flowing through the divider when connected across a potential, you've got to use some pretty high resistances. When you go to power a device with the divider, one or the other of those resistances will be in series with that load. A good amount of the voltage you need for your device will be dropped across the resistor.
Keep in mind that the 78xx series of regulators are only good for about an amp. They both have big brothers available in a TO3 package good for about 3 amps.
- Scotty
|
|
|
|
|
Logged
|
|
|
|
|
Poole, Dorset, UK
Offline
God Member
Karma: 8
Posts: 673
|
 |
« Reply #13 on: November 29, 2012, 05:09:02 pm » |
If your worried about noise take a good long look at this http://www.fightingrobots.co.uk/documents/EMIGuidelines.pdf this papers well worth a read by any one dealing with robots/motors and other things with coils in them. Mark PS you don't need to use just one power supply you just need to make sure that they all have a common ground! M
|
|
|
|
|
Logged
|
|
|
|
|
Miami
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #14 on: November 29, 2012, 06:22:06 pm » |
Scotty! Thanks for the explanation! This really helps!
I am probably going to run everything off a 12V supply and just get a 5v regulator for the arduino. Also, can anybody recommend places to put diodes that would prevent any further damage to my arduino. I guess i can place i diode between the arduino and the ground & b/w the arduino and the Vdd on the H-bridge?
|
|
|
|
|
Logged
|
|
|
|
|
|