Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Driving 12VDC LED with Netduino 2


  • Please log in to reply
3 replies to this topic

#1 pettijohn

pettijohn

    New Member

  • Members
  • Pip
  • 1 posts

Posted 09 December 2013 - 05:24 AM

I'm looking at some LED strip lights / tape lights and controlling them with Netduino 2. Looking at a few product listing and auctions to buy them (see the attached pic) there appears to be a +12VDC pin and then individual grounds for each of the RGB colours. It looks like PWM is used to dim and/or create various colours, though you can just buy dimmers and controllers as well.

 

How might I drive something like this from Netduino? Is it safe to use the 3.3V Netduino to drive a transistor as a switch for 12V, or will I just likely fry my Netduino?

 

If it's not safe to drive with a transistor, do I need to use relays? Do relays exist that switch as fast as is required for PWM? Would I need optical SSRs? 

 

Thanks for the input. 

Attached Files

  • Attached File  LED.png   223.12KB   0 downloads


#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 09 December 2013 - 08:15 AM

Is it safe to use the 3.3V Netduino to drive a transistor as a switch for 12V

 

Yes, it is safe. You'd probably want to check out transistor datasheet to see what base current (BJT) or gate voltage (MOSFET) is needed to switch your load current. Sometimes, another 'small' transistor is needed to switch the 'big' transistor; it also depends on switch topology ("low-side" NPN/N-channel vs. "high-side" PNP/P-channel).

 

If it's not safe to drive with a transistor, do I need to use relays? Do relays exist that switch as fast as is required for PWM? Would I need optical SSRs?

 

[Mechanical] relays don't work well for PWM, they are slow and will wear off quickly (due to contact arcing). SSRs are much better.



#3 rharding64

rharding64

    New Member

  • Members
  • Pip
  • 8 posts

Posted 10 December 2013 - 04:21 AM

consider i2c based RGBA solution, this is for SMD tri-color LED.

 

http://www.nxp.com/p...es/PCA9633.html

 

Cheers.

 

Ron



#4 rharding64

rharding64

    New Member

  • Members
  • Pip
  • 8 posts

Posted 10 December 2013 - 04:32 AM

On your concern with respect to driving higher current loads, 

 

consider using an optocoupler to drive your VCIS BJT, if set up as open collector switch.Collector attaches to cathode of the LED. once BJT is driven ON, the collector node looks like ground and the LED turns ON.  

 

Ron






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.