Hi to all, I just want to trigger a sound out of a toy pistol using an optocoupler controlled by an arduino pin.
The toy pistol has two 1.5 volt battery, the cables used on pin 4 and 5 of the optocoupler trig the sound of the toy pistol if i connect them directly , the optocoupler works (triyng with a simple LED powered by the batteries of the toy pistol in can light it up),i've tried reverting the two cables(not sure that ground was the cable that goes on the 4 pin of the the optocoupler so tried both way).
i've stuck directly + of the toy on pin 5 and ground on pin 4 but nothing happen.
i've tested the arduino code and it works well but as you can imagine i'm a total noob about electronics, so probably there's something really simple that i'm missing here.
Someone can point me in the right direction?