So I did a couple quick searches for the information I'm looking for and it appears that many people here are not fans of the Oopic-R microcontrollers? I do not intend to defend/promote the disuse/use of these. However, we are using an Oopic-R for our senior project. Thus far it is controlling a handful of servos and other inputs but I need some assistance recognizing a signal at one of the I/O lines on the Oopic.
We are making a knock-off target acquisition system. We have five IR receiver modules scanning for the presence of a matching IR signal. Depending on what receiver module sees the IR source, our programming code will tell a servo to rotate in a specific direction to line up the cannon of our project.
We have 5, TSOP7000 IR receiver modules. When the correct IR signal is present in front of one of the modules, the receiver signal goes from a logic 1 (+5v) to a logic 0. However, instead of staying at logic 0, the signal goes back to high when the pulsed IR signal goes high. Therefore, the receiver signal is a square wave around 2kHz, 50% duty cycle.
I need assistance on how to get the Oopic-R to notice the signal change and then execute the next code (i.e. rotate to the right, and wait for next receiver module to become active).
Thank you for any help in advance, and I will check this often!