I am currently trying to integrate a pair of NHL light pens into my project. I have taken apart the top portion that I want to use that contains the goal light/beacon and sound. Attached is a picture. I am not exactly sure how to hook it up to the Arduino and I think I need an experts opinion as I don’t want to fry my board. Here is how the thing works originally:
Batteries (LR44) are loaded between the positive(red wire with silver end) and negative (L shaped piece with black tape and silver end) leads.
When the button is pressed (connected to the 2 yellow wires) this completes the circuit which lights up the light and plays a sound byte.
Here is how I think I need to wire it up to the Arduino:
1.) Remove the button and Solder the two yellow wires together
2.) Wire red wire (+) into a PWR pin and tag pin as an output
3.) Clip the long L shaped piece with the black tape and replace with a wire. Wire this into ground on the arduino
4.) Code to power the thing on will be digitalWrite(pin, HIGH) or analogWrite(pin, HIGH).
I think I may be missing a resistor somewhere? I think I need to put a resistor attached to the red wire and then attach it to the PWR pin? Basically I am removing the button and using the Arduino to power the Light when I command it to via the code.