qwazzerman
Member
Hi all, I have a setup that uses a Teensy as a DAQ to control some relays and read a few sensors. It previously worked with Teensy 3.6 with little issue. Since Teensy 3.6 was discontinued I have switched to 4.1, but am having issues with connectivity and Teensys no longer responding (presumably fried, although no obvious signs of failure). In moving to 4.1 I did redesign the circuit board it attaches to, but with all the same circuits and components as before. It makes me wonder if I've set the circuit up wrong or something. The setup uses a 24V power supply, a 12V power supply, and USB power for the Teensy itself. None of the 12V or 24V supplies ever reach the Teensy directly (in theory), but the 12V circuit and the Teensy share a common ground.
Here's a brief overview of the setup: Teensy with audio board connects to a custom PCB. Two pins control optorelays: one relay powers a 24V, 1.15W solenoid, with that ground isolated from the rest of the circuit. The other relay triggers a 12V LED light, also isolated from the rest of the circuit. On the common-ground side, I have an amplifier circuit (LM386) that runs on 12V power and takes the output of the audio board and sends it to a 3.5mm TRS jack. There are also two low-draw LEDs that are powered directly from the Teensy pins, and two optoelectronic slot sensors (IR LED/phototransistor pairs). The IR LEDs are powered by the 12V supply, but the power to the phototransistors comes from the Teensy's own 3.3V pin.
I've attached a simplified schematic of the setup, as well as a full circuit diagram of the 4.1 setup (note there's an extra solenoid in the diagram but it's not used). Is there something obvious that I've done wrong here, voltage-wise? I realize it's a complicated setup so I appreciate any advice.
Here's a brief overview of the setup: Teensy with audio board connects to a custom PCB. Two pins control optorelays: one relay powers a 24V, 1.15W solenoid, with that ground isolated from the rest of the circuit. The other relay triggers a 12V LED light, also isolated from the rest of the circuit. On the common-ground side, I have an amplifier circuit (LM386) that runs on 12V power and takes the output of the audio board and sends it to a 3.5mm TRS jack. There are also two low-draw LEDs that are powered directly from the Teensy pins, and two optoelectronic slot sensors (IR LED/phototransistor pairs). The IR LEDs are powered by the 12V supply, but the power to the phototransistors comes from the Teensy's own 3.3V pin.
I've attached a simplified schematic of the setup, as well as a full circuit diagram of the 4.1 setup (note there's an extra solenoid in the diagram but it's not used). Is there something obvious that I've done wrong here, voltage-wise? I realize it's a complicated setup so I appreciate any advice.