Hmm... I would expect that to work, provided it really is 6v DC, not AC (if it was AC, you'd be able to tell pretty fast as the poor microcontroller you were powering with it failing with smoke.
I would suggest a round of sanity checks - ie, wire it up, but without the microcontroller, manually connect gate to ground, light should now be off, connect to +6v, light goes on. Okay, is my code actually even turning on the pin, or is something silly wrong there? that kind of thing.
Alright, i believe you can't drive this lamp with just 6v you need some type of waveform.
So maybe the lamp is expecting AC but im giving it DC, that could be why it doesn't work i guess
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hmm... I would expect that to work, provided it really is 6v DC, not AC (if it was AC, you'd be able to tell pretty fast as the poor microcontroller you were powering with it failing with smoke.
I would suggest a round of sanity checks - ie, wire it up, but without the microcontroller, manually connect gate to ground, light should now be off, connect to +6v, light goes on. Okay, is my code actually even turning on the pin, or is something silly wrong there? that kind of thing.