mercury0x0d
Member
Hello, all!
I'm thinking up a project which will be a kind of half-remote-control and half-communication-device. It would function as an IR remote control and have an LCD allowing the user to send and receive messages (or even share remote control profiles) between units via infrared. Now, if all I wanted to do was use this to control a TV or something, I understand there are several IR libraries which could facilitate that, but noooo... I had to go and be fancy lol
To accomplish this, my project would have a pair of infrared LEDs - a transmitter and receiver - and these should theoretically allow it to send and receive IR remote codes (to control a device or "learn" from an existing remote control, respectively) and have bidirectional inter-device communication. I made the decision to use bare LEDs as opposed to a receiving module such as the TSOP382 so that my project can make itself compatible with IR signals of any modulation frequency. While 38 kHz is the most common modulation frequency, it is by far not the only one in use, and I want my device to be able to control any infrared based component... TVs, VCRs, fans, stereo receivers... even those Bang and Olufsen units which use 450-ish kHz. Moreover, I'd love for the inter-device communication to work as speedily as possible... 6M baud sounds awesome - as long as the LEDs themselves can keep up.
In the research I've done so far I was able to find examples of folks using serial-over-infrared on the Arduino (example A, example B) but I'm unsure if that will work in the big picture of my project overall as I will be using a Teensy 4.1. Additionally, it looks like the majority of IR libraries use PWM pins to generate a modulated IR signal and, as I need basic serial to be used too, this limits me to using Serial1, Serial2, Serial3, Serial6, or Serial7 on the Teensy, since they are all normal serial Tx/Rx pins which also happen to support PWM.
I'm okay with designing circuitry as far as logic and gates go, but when it comes to the intricacies of Volts and Amps... yeah, I'm no EE! So, I have a few questions:
1. Is it even feasible to use infrared in this manner on the Teensy, or am I crazy? lol
2. Example A and Example B show differing methods of implementing serial-over-infrared; is this just a matter of taste/preference? Or would one method potentially allow for higher speeds or better reliability versus the other?
3. Since the Teensy works on 3.3V as opposed to the Arduino shown in Example A and Example B - and I'm uncertain that all IR LEDs have the same working voltage (the Amazon page for the ones I chose doesn't specify) - what resistor values would I need to make sure the Teensy doesn't over-drive them but still allows for the "brightest"/strongest signal?
4. Does anyone happen to know roughly how fast IR LEDs can be driven? Is a 6M baud serial over IR feasible?
Thanks in advance for any advice you fine folks can give!
I'm thinking up a project which will be a kind of half-remote-control and half-communication-device. It would function as an IR remote control and have an LCD allowing the user to send and receive messages (or even share remote control profiles) between units via infrared. Now, if all I wanted to do was use this to control a TV or something, I understand there are several IR libraries which could facilitate that, but noooo... I had to go and be fancy lol
To accomplish this, my project would have a pair of infrared LEDs - a transmitter and receiver - and these should theoretically allow it to send and receive IR remote codes (to control a device or "learn" from an existing remote control, respectively) and have bidirectional inter-device communication. I made the decision to use bare LEDs as opposed to a receiving module such as the TSOP382 so that my project can make itself compatible with IR signals of any modulation frequency. While 38 kHz is the most common modulation frequency, it is by far not the only one in use, and I want my device to be able to control any infrared based component... TVs, VCRs, fans, stereo receivers... even those Bang and Olufsen units which use 450-ish kHz. Moreover, I'd love for the inter-device communication to work as speedily as possible... 6M baud sounds awesome - as long as the LEDs themselves can keep up.
In the research I've done so far I was able to find examples of folks using serial-over-infrared on the Arduino (example A, example B) but I'm unsure if that will work in the big picture of my project overall as I will be using a Teensy 4.1. Additionally, it looks like the majority of IR libraries use PWM pins to generate a modulated IR signal and, as I need basic serial to be used too, this limits me to using Serial1, Serial2, Serial3, Serial6, or Serial7 on the Teensy, since they are all normal serial Tx/Rx pins which also happen to support PWM.
I'm okay with designing circuitry as far as logic and gates go, but when it comes to the intricacies of Volts and Amps... yeah, I'm no EE! So, I have a few questions:
1. Is it even feasible to use infrared in this manner on the Teensy, or am I crazy? lol
2. Example A and Example B show differing methods of implementing serial-over-infrared; is this just a matter of taste/preference? Or would one method potentially allow for higher speeds or better reliability versus the other?
3. Since the Teensy works on 3.3V as opposed to the Arduino shown in Example A and Example B - and I'm uncertain that all IR LEDs have the same working voltage (the Amazon page for the ones I chose doesn't specify) - what resistor values would I need to make sure the Teensy doesn't over-drive them but still allows for the "brightest"/strongest signal?
4. Does anyone happen to know roughly how fast IR LEDs can be driven? Is a 6M baud serial over IR feasible?
Thanks in advance for any advice you fine folks can give!