Asked — Edited

How To Ambient Light Sensor For Ezb To Trigger Ir Lights

Ok so I need to make ir buy a light sensor that I can place ontop of my bot through a drilled hole on Omnibots head or neck area. I will have about 25-50 5mm forward facing ir LEDs and 25-50 inside omnibots eye sockets so it illuminates the most where omnibot is looking. They will all not even draw a amp because LEDs are so low power. Any ideas of how to switch on the LEDs? I would like for it to switch the IR on when it hits a certain level of darkness. I believe my IR LEDs run on 2.5v and draw .02A thanks


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

#17  

jstarne1 my friend i have over 100 reed relays i can sell you 2 for $1 plus postage of $1.69 have single pole single throw,and double pole single throw 5 volt coil at 50 ma will need npn transistor for 2 reasons one is 25 ma max on digital output pin and coil takes 50 ma,same as one from radio shack second reason is back emf they call it,when a relay coil turns off and on sends a magnet force that will ruin the output pin,and you dont want to ruin $130 board,plus across the ciol still need any diode cathode to v+ to protect the transistor ,since digital output uses one too if you have problems hook it up let me know ,also from outpin on EZB to base of the transitor you need a base resistor mostly near 4.7k hooking up transistor is easy emmiter to gnd collector to coil and anode of diode on other side of coil you connect 5 volt supply and cathode of diode

i just found this after i did this reply says the same thing i said how to drive a relay from digital pin