User Tools

Site Tools


starblue_led_power

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
starblue_led_power [2015/08/26 10:21]
buzz created
starblue_led_power [2015/08/26 12:51] (current)
starblue Port pin for switching, power consumption of resistors
Line 1: Line 1:
-Starblue posted ​modification on twitter ​for actually powering ​the leds properly (both on AND off)+The original circuit tries to use an n-channel MOSFET as high-side switch (i.e. switching the positive supply) ​for the LEDs.  This doesn'​t work, because to turn the MOSFET ​on, the gate of the MOSFET would need a voltage about 2V higher than the source of the MOSFET, which is the supply voltage of the LEDs (~4V).  But the gate is connected to Vcc, which is 3.3V.  Duh.
  
-* https://twitter.com/​anystring/​status/​631944490803048448+An alternative is to use a p-channel MOSFET, which switches on if the gate has a voltage about 2V lower than the source (see the schematics below). ​ Vcc is low when the rad1o is off and higher when it is on, which is the opposite of what we need. So an additional n-channel MOSFET is used to drive the gate of the p-channel MOSFET. The resistors ensure that the MOSFETs are switched off when they are not driven. Instead of connecting P1 to Vcc you can also connect it to a port pin, so that the LEDs only draw power when they are used. 
 + 
 +{{:schematic.png|}} 
 + 
 +I built it very small using 1mm pitch contact strip, MOSFETs with SOT-23 footprint and 0805 resistors vertically on the gate contacts (see picture). ​ You should be able to use logic-level MOSFETs in bigger packages, as long as the p-channel MOSFET is able to carry the maximal current of about 500mA (almost all can, but for example not the somewhat popular BS250). The resistor values are not critical, anything between 10k and 100k should do.  Values lower than 10k will work, but draw more current when the LED power is turned on.
  
 {{:​circuitcloseup.jpg?​400|}} {{:​circuitcloseup.jpg?​400|}}
  
-{{:​schematic.png|}} 
starblue_led_power.1440577285.txt.gz · Last modified: 2015/08/26 10:21 by buzz