thegauntlet
Newbie level 4
- Joined
- Apr 28, 2012
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Singapore
- Activity points
- 1,350
Half of me prefers the MOSFET because it's a bit more efficient. The other half of me would go for whichever is cheapest.
The software I use is the free version of SIMetrix-SIMPLIS. It's simulation software. That means that after drawing the circuit, you can run a simulation to see what it does. You can check voltages and currents anywhere in the circuit, look at waveforms etc.
I cheated with this a bit, though, and used MSPaint to draw in the horn and relay.
Good questions!
The MOSFET is controlled by the voltage between the gate and the source. The gate has a very high resistance so almost no current flows into it.
When the switch is closed, it puts 12V on the gate to switch the MOSFET on (and a little current will flow through R2). When the switch is open, R2 pulls the gate down to 0V, to switch the MOSFET off.
R1 is more interesting. MOSFETs are fast and like to oscillate at high frequencies. Connecting R1 to the gate stops it from oscillating and turning into a radio transmitter. The resistor should be connected as close as possible to the gate, with nothing else connected to the gate. Don't even leave a long strip of copper on the perfboard connected to the gate.
The diode is there to stop the voltage on the drain from shooting up to a high value (which could damage the MOSFET), when the MOSFET switches off. The horn is an inductive load, so when the MOSFET switches off, the current through the horn does not stop instantly, but tries to pull the voltage up.
edit: R2 only dissipates about 0.15W, so a 1/4 Watt resistor would be OK, but a half Watt resistor would be safer. R1 doesn't dissipate any power, so it doesn't matter. I'd make them both the same because some places only sell resistors in packets of 10 anyway.
A car horn will usually be designed to operate best at around 14V or a bit more - that's what the alternator gives the electrical system when the engine is running.
LiIon cells, although rated at 3.7V, actually give up to about 4.2V when freshly charged. That's why some LED flashlights will be instantly killed if they are only designed to run on non-rechargeable lithium cells (CR123) and someone puts in a rechargeable (RCR123) LiIon version of the cell. The voltage drops as the cell is depleted.
So, ideally you want about 14V. Four LiIon cells will give 14.8V to 16.8V, three will give from 11.1V to 12.6V.
I would try the three cells; you might find it quite loud enough. If not you could try four but that might damage the horn, especially if sounded for long periods. If the horn is a simple, mechanical buzzer type it will probably be OK with four, but if it is electronic then it might not. My guess is that you would get away with four because it's only a little over the top, but it's only a guess.
You do know that 18650 cells are quite hazardous? Search google for exploding LiIon packs (search for 'vents with flame', lol). That said, if your cells are normal retail ones, with a protection circuit on the end, and you keep them dry and don't abuse them or let them get too discharged, there should not be a problem. Don't use recycled laptop battery pack cells though, like I do, unless you fully understand the real dangers. Google will help in all this. If you already use them for your lighting, you probably know all of this though.
You can take safely take twice the capacity rating from a LiIon cell as current. So, 2500mAh will easily give you 5A. Some, especially IMR cells, can give much higher current (IMR are 10 times C I think). Check your cells.
Your switch will quickly die at high currents. The easiest way for you to switch it is probably to use a small relay. Relays are easily available with a 12V coil, that can switch 5A-10A or more. They are not that large; around a 2cm cube. You might even find a small one wherever you acquire the horn. The switch would connect the 12V to the relay coil, and the relay contact would connect the 12V to the horn.
Alternatively, you could use a power transistor instead of the relay, with a base resistor and a freewheeling diode to protect the transistor from the horn's back-EMF. Google will find you a circuit for 'transistor to switch a relay' - you will put the horn in place of the relay, but the search will get you circuits that have the diode. A 2n3055 transistor can handle 15A.
In this case yes, because you're just using it as an on/off switch. In other applications e.g. audio power amplifiers, MOSFETs are used in a more linear way, where the current from drain to source is controlled by the voltage between gate and source.I see, so when the circuit is closed, the voltage will "trigger" the Gate to "close the circuit" between the Drain and the Source.
As explained in post two there but also:The how do I know what Voltage is required to switch a certain MOSFET on? I read "https://www.edaboard.com/threads/54696/" but another opinion would always help!
Almost. Base = Gate, Collector = Drain, and Emitter = Source.The 2n3055 works similarly too? Is the Base like the Gate and the Collector the Source and Emitter the Drain? But it's different because one's by Current and other Voltage?
***Most important: The metal tab on the MOSFET is connected to the drain, so don't let it touch any other metal connected to the circuit or the battery. The MOSFET probably won't need a heatsink, but if you do want to bolt it to a heatsink or other metal, then use a mica insulating washer and some thermal paste. As a rule of thumb - if you can hold your finger on it, it's not too hot.I bought the Perfboard. How do I go about deciding how I'd place the components and soldering them? Your circuit diagrams are great but it's hard to visualize on the board itself.
I don't know. If you have a look at an online store like digikey, mouser or rs-online, you should be able to get an idea of what's available and what they're called.I want a switch that's easy to press and mounted. I've seen these http://img.dxcdn.com/productimages/sku_12895_2.jpg on dealextreme and was thinking of getting them. Do stores sell these sort of switches or do I have to get them with the whole tailcap? Any idea what these are called?
There's a thread on this forum somewhere about that. I followed some of the links a couple of days ago, and this one looks fairly good (if incomplete): http://www.allaboutcircuits.com/.What books/online resources are good to start learning electronics? There's so much to learn!
The diode is there principally to protect the transistor, be it bipolar or MOSFET. When power is removed from the relay (or any) coil, the magnetic field around the coil collapses back into the coil, and the energy ends up causing a reverse voltage (called back EMF) across the coil connections. Because the relay is switched off, the voltage grows until it is large enough to break through whatever barrier is there - the transistor! The reverse-connected diode conducts this reverse voltage while it is small enough not to cause damage (to the diode, in this case).
That said, I would recommend the diode even if just a switch is used. Otherwise, the switch contacts will eventually suffer damage from arcing as the back EMF jumps the switch gap.
I've never used a relay with an internal diode, but apparently they do exist.
As to the question: do you need another diode to protect the relay's switch contacts from the horn's back EMF? - Good question!
If you were switching another strongly inductive load (big coil, transformer, etc.) from the relay, then quite possibly a protection diode for that would be needed. See here: **broken link removed**
However, your relay should have much more robust contacts than a push-button switch and should handle the arcing. Plus, assuming that the horn is the mechanical type (which is actually a bit like a relay but with its coil power wired through the normally-on relay contact) then I would guess that any arcing would likely go through its own contacts. These are designed for it, so that's fine.
I don't think it is usual to include a second diode in this case, but it certainly won't harm anything. Probably no need for one though.
Here's an introduction to automotive relays, in case it is of help:
http://www.autoshop101.com/forms/hweb2.pdf
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?