My son and I have built a little project with an Arduino, Snap Circuits, and the Christmas tree. I'm good on the programming side but my basic electronics is elementary and rusty.
The Arduino side was easy: we set it up so the unit loops a process which blinks an LED. In order to isolate the delicate circuitry of the Arduino, we hit on using the photosensitive switch in the snap circuits kit. In order to isolate the delicate 6 volt circuitry of the Snap Circuits from the 24 volt DC christmas tree light circuit, we chose to use the photosensitive switch to fire a relay.
This is the circuit:
By placing the signal source LED from the Ardunino into the photosensitive switch, we get a perfect firing of the circuit when the red test LED is in place. However, if I short over the LED (circuit doesn't have enough juice to fire the LED AND switch the relay) I get a very intermitten performance from the relay. It fires, then ignores an on/off cycle, then fires.... (I should say that unlike in the picture, the xmas lights are connected to the Normally Off position on the relay.)
So as a transmitter of morse code, it has a speech impediment. The test LED has a perfect fist, and copies the pattern precisely.
Am I getting interference in the circuit from the stray voltages associated with the relay firing, and feeding back into the transistor? If so, how might I filter the circuit to get a perfect replication of the source LED.
The Arduino side was easy: we set it up so the unit loops a process which blinks an LED. In order to isolate the delicate circuitry of the Arduino, we hit on using the photosensitive switch in the snap circuits kit. In order to isolate the delicate 6 volt circuitry of the Snap Circuits from the 24 volt DC christmas tree light circuit, we chose to use the photosensitive switch to fire a relay.
This is the circuit:
By placing the signal source LED from the Ardunino into the photosensitive switch, we get a perfect firing of the circuit when the red test LED is in place. However, if I short over the LED (circuit doesn't have enough juice to fire the LED AND switch the relay) I get a very intermitten performance from the relay. It fires, then ignores an on/off cycle, then fires.... (I should say that unlike in the picture, the xmas lights are connected to the Normally Off position on the relay.)
So as a transmitter of morse code, it has a speech impediment. The test LED has a perfect fist, and copies the pattern precisely.
Am I getting interference in the circuit from the stray voltages associated with the relay firing, and feeding back into the transistor? If so, how might I filter the circuit to get a perfect replication of the source LED.