MichaelMeissner
Senior Member+
I'm a programmer who is approaching embedded microprocessors without a strong electronics background, so I may be missing something obvious.
I have this little project (firing my steampunk camera from a telegraph key) working on an Arduino, and I thought I would try to move it to the Teensy. In the middle of the project are two opto-isolators to go between the Arduino and the camera. On the Arduino, I used 4N26JP opto-isolators. I moved the opto-isolators to the breadboard I have the Teensy 3.0 in and hooked it up with a simple program that did both blink LED 13 and turned the opto-isolator and and then turning both off. I hooked a LED powered externally and first tested the setup with the Arduino and it worked fine. Then I loaded the same program on the Teensy and it didn't work. Now, I got the opto-isolator from a generic pack at my local electronics store, and I recall looking for an opto-isolator that was triggered by 5 volts.
So, I went back to the store and bought a NTE3041 opto-isolator, but that doesn't seem to work. I thought I was being safe by getting one where the VF voltage was 1.5V max and the VR was 6V max, thinking anything between 1.5 volts and 6 volts was safe. So I likely misread the package, and want something triggered by 3.3 volts. What parameters should I be looking for in an opto-isolator that would work with the Teensy? Ideally, I would would like a single one that will work with both the Arduino and the Teensy, but that may be harder to find. Are there known opto-isolators that work with the Teensy?
I should mention, that is is possible that I wired the NTE3041 incorrectly, and I just need to better wire it up. I will try to do it again later. I need to solder up the test rig so I don't have to worry about wires coming up, etc.
Another solution that I've thought about is getting a voltage converter, such as this bi-directional converter offered by ladyada: https://www.adafruit.com/products/757
I have this little project (firing my steampunk camera from a telegraph key) working on an Arduino, and I thought I would try to move it to the Teensy. In the middle of the project are two opto-isolators to go between the Arduino and the camera. On the Arduino, I used 4N26JP opto-isolators. I moved the opto-isolators to the breadboard I have the Teensy 3.0 in and hooked it up with a simple program that did both blink LED 13 and turned the opto-isolator and and then turning both off. I hooked a LED powered externally and first tested the setup with the Arduino and it worked fine. Then I loaded the same program on the Teensy and it didn't work. Now, I got the opto-isolator from a generic pack at my local electronics store, and I recall looking for an opto-isolator that was triggered by 5 volts.
So, I went back to the store and bought a NTE3041 opto-isolator, but that doesn't seem to work. I thought I was being safe by getting one where the VF voltage was 1.5V max and the VR was 6V max, thinking anything between 1.5 volts and 6 volts was safe. So I likely misread the package, and want something triggered by 3.3 volts. What parameters should I be looking for in an opto-isolator that would work with the Teensy? Ideally, I would would like a single one that will work with both the Arduino and the Teensy, but that may be harder to find. Are there known opto-isolators that work with the Teensy?
I should mention, that is is possible that I wired the NTE3041 incorrectly, and I just need to better wire it up. I will try to do it again later. I need to solder up the test rig so I don't have to worry about wires coming up, etc.
Another solution that I've thought about is getting a voltage converter, such as this bi-directional converter offered by ladyada: https://www.adafruit.com/products/757
Last edited: