Fading a 60W bulb (or equivalent)

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Sun Mar 25, 2012 4:08 pm

I think is is what I am looking for, the circuit is simple using only a TIP120 Darlington Transistor and a resistor and can handle the 12v DC lamp
Attachments
Screen Shot 2012-03-25 at 5.06.21 PM.png
Screen Shot 2012-03-25 at 5.06.21 PM.png (81.22 KiB) Viewed 1005 times
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm


Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Sun Mar 25, 2012 5:46 pm

Great, I will go with the MOSFET then. Thank you all for the quick responses. I will post photos/videos when this gets rolling.
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Sun Apr 15, 2012 7:57 pm

I have my mosfet wired like the diagram above and I am using arduinos example sketch blink to control the gate... But... nothing? The bulb works fine and I am baffled as to whats happening. Could it be code? or should I wire it differently than the above diagram?
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Sun Apr 15, 2012 8:09 pm

Also, I am using a 12vDC supply at 1.5A

My bulb is a 12vDC 15watt

Here is the link to the mosfet:
http://www.sparkfun.com/products/10256

and the arduino is running the blink example on pin 9
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Mon Apr 16, 2012 1:08 pm

Is it possible I need a different mosfet or transistor?
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby adafruit_support_bill » Mon Apr 16, 2012 1:27 pm

I have my mosfet wired like the diagram above

The diagram above is for a TIP120, not a MOSFET. The data sheet for your device most likely has diagram of a typical circuit.
The MOSFETS in the store here can be driven directly by a digital pin - no resistor required.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Mon Apr 16, 2012 1:46 pm

I will give those a try!
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Fri Apr 20, 2012 1:14 pm

MOSFETs came in today, wired them and tested the circuit with the blink sketch. It works but barely, the bulb remains at it's brightest and then when it's supposed to turn off it just becomes slightly dimmer. When trying a fading code there is almost no change and the bulb appears to remain at full power.

Very new to working with these, any reason why I can't get a full range of brightness from the bulb?
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby philba » Fri Apr 20, 2012 1:19 pm

Clearly, the mosfet isn't turning off. Post the circuit. What is the gate voltage when it's supposed to be off? (should be 0). How are you controlling the gate? (i.e. show us the sketch).
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 5:59 pm

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Fri Apr 20, 2012 1:22 pm

Code: Select all
void setup() {               
 
  pinMode(9, OUTPUT);     
}

void loop() {
  digitalWrite(9, HIGH);   
  delay(1000);           
  digitalWrite(9, LOW);   
  delay(1000);             
}


The code is just a simple blink sketch, same as the one that is in the examples on the software. The MOSFET is wired to pin 9 at the gate
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Sat Apr 21, 2012 2:15 pm

Still getting the same results with different code
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby philba » Sun Apr 22, 2012 2:05 pm

It's not the code, show us the circuit.
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 5:59 pm

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Sun Apr 22, 2012 4:08 pm

From the DC converter, the positive lead goes through the bulb and connects to the orange wire in the photo

The negative lead connects to the grey wire and then the green wire connects to arduinos ground

Finally the yellow wire connects to arduino's pin 9
Attachments
wiring.jpg
wiring.jpg (119.46 KiB) Viewed 898 times
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

Re: Fading a 60W bulb (or equivalent)

Postby matthew1 » Tue Apr 24, 2012 3:46 pm

I've taken the circuit to my school's arduino/robotics teacher. He confirmed everything is wired properly and we even the tried the TIP120 circuit. We found that the gate works fine without the DC converter plugged in but when we do plug it in, the gate stays high. He was at a loss for why this was happening but said it was a "latching" issue.

Has anyone else had this problem or know how to get around it?
matthew1
 
Posts: 33
Joined: Fri Apr 01, 2011 7:40 pm

PreviousNext

Return to Arduino

Who is online

Users browsing this forum: adafruit_support_mike, Fozzie and 9 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]