12 v
pancha
Posts: 8
HOW TO CONNECT A BS2 TO 12 VOLTS INPUTS AND·OUTPUTS·(cars)
I want to connect my parallax·to my car,·but i dont know how is the·easer way to conect it, how to do the pull up and pulldown inputs,·and how to activate·12 relays ·I NEED HELP!!!
Post Edited (pancha) : 9/16/2009 3:23:12 AM GMT
I want to connect my parallax·to my car,·but i dont know how is the·easer way to conect it, how to do the pull up and pulldown inputs,·and how to activate·12 relays ·I NEED HELP!!!
Post Edited (pancha) : 9/16/2009 3:23:12 AM GMT
Comments
You might want to start here
You will learn a lot when you do the lessons
http://www.parallax.com/Portals/0/Downloads/docs/books/edu/Wamv2_2.pdf
I hope this helps
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
50 72 6F 6A 65 63 74 20 53 69 74 65
·
For medium currents, 0.5 - 3 amps, you can use Darlington transistors, like TIP125.
For large currents you can use MOSFET's, relays or opto-isolators.
MOSFET's and Darlingtons are logically the same as transistors. MOSFET's come in two types, P-channel and N-channel. This is locically equivalent to PNP and NPN transistors. To sink current (Drain to load and Source to ground), you use N-channel. To source current (Source to postiive supply and Drain to load), use P-channel. MOSFET's generally have longer switching times than transistors, and might pose problems if you want to generate PWM signals.
Opto-couplers are logically equivalent to relays.
Attached is a basic circuit for controlling a relay. ("HIGH P0" turns the relay on, "LOW P0" turns it off).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
While on the subjet:
Can I use a Board of Education Development Board (USB), for the 12v in a car, and buy the BS2PX24 for that board?
Since I don't see anything about it (if it is not written, better ask before you buy) !
Cheers!
Resistance is futile! yeah! right... !
No the opto-couplers cant be connected both ways, if I understand your question correctly. You connect the Stamp to the Input pin of the opto, and the Output to ground (Vss). On the other end, you connect the collector to the load, and the emitter to ground. Leave the base unconnected (if there is one). Be aware that optoisoloators are usually low current drivers in the mA range (even if they have darlingtons inside). But they provide the best protection for your Stamp, and are preferable instead of the 2N3904 in my schematic.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
I thought the 1N4001 is for protection for EMF stuff...
How would you connect it in series.... (Don't forget .. you are taking to a NOOB here!)
I know what in "series" is, but a max of 50v emf wouldn't that damage the BS2 anyway?
A little diag would help me see things your way
Cheers
Resistan.... Ah! enough already! Just use it!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
-dan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Arguing with myself--sometimes me, myself, and I don't always agree.
Of the things I've lost, I miss my mind the most.
Post Edited (icepuck) : 9/17/2009 4:10:53 PM GMT
So in all , especially for me, It would be the best option to have a DC to DC adapter... so I don't fry my BS2
But if I had a SUPER CARRIER Board and trying to keep my cost to a minimum, would I just add a 1N4001 in series (just like Dev/Null) shows in his diagram then directly in the POWER input of the board (plug).
Cheers
Res...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
For arguments: If I want to tell BS2 that the Backup lights are on, If I run a wire from the power from the light bulb(+) to the BS2 on a pin,
Would a proper resistance, would be ok to use to trigger high on that BS2's pin??
Cheers
Resistance is futile.... yeah sure say that to the BS2 !
Yosh
See attachment
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Post Edited (Franklin) : 9/20/2009 4:03:16 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Larry~ IF they were switched by ground they would stay at 12v but they were not designed for a system that switches the ground and would be different if they had been. Could you give me the model of a car that uses the ground to control the lights?
Most of the Older Cars I have had have a brake light switch mounted on the break peddal and this switches to ground, not sure on the newer cars with PCM !
Also backup lights are switched through a switch on the tranny to ground
Post Edited (Larry~) : 9/20/2009 5:15:04 PM GMT
The current going to the Stamp from the voltage divider is 4.3V / 3K = 1mA.
The opto isolator isolates the Stamp from the car battery (hence the name). The Stamp pin will see 0V or Vdd. The 10K going into the opto drops the current to about 1.2 mA, enough to trigger the opto.
If the lamp is switched via ground you will introduce more resistance to the voltage divider, and the voltage will drop below 4.3V.
But the resistance in a bulb is usually very low (a few ohms) compared to the values in the circuit, and won't have any impact.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
Heu... I'm lost !
Let have it 2 ways then.
One is the switching via ground, and the other the source is positive switch.
help !
Cheers
Yosh
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy