I am converting the mechanical switch on my LED desk lamp and am using an ATTINY85 & a TTP223B touch sensor. For the lamp switching should I use a relay or a MOSFET?
The lamp has a 5v power supply.
A (logic level) MOSFET is more efficient and can be PWMed to adjust the brightness of the lamp.
I was just looking at the 2N7002. Suitable?
I have some IRF520N mosfets.
I'm fairly new to Arduino projects and trying to learn more about components I haven't used before and trying to understand the data sheets to work out which one is best for my projects.
Thanks for the fast reply, appreciated.
The 2N7002, with it's absolute max current rating of ~200mA, would be ok for the desk lamp of a doll house. The IRF520 is not a logic level fet, and will sort-off function with an ATtiny on a 5volt supply if... the desk lamp doesn't draw much more than 1Amp.
Better get a logic level mosfet, like the IRLZ44 (note the "L").
Use circuit#1 from this page. The diode is not required if you switch power for a LED.
Leo..
The lamp uses less than 700mA. I have some IRLZ44N ordered.
Thanks for the response.
That depends on the lamp - it might have a non-dimmable LED driver in it ...
Are you sure it's just a plain 5V DC supply ... ?
True. We did not get much detail.
Yes it is a 5v supply. From a wall wart.
I don't want it dimmed.
But that wouldn't necessarily be DC; might also have other "non-standard" features...
It is 100% DC.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.