Hello there,
I have an idea in my mind to "read" PWM signal produced by receiver of r/c. One thing I know is the servo, for instance, takes red and black cables for +5V and GND function while the white colored wire is for PWM Signal.
In my mind, I want to have a simulation where moving servo to the most left will generate a blinking signal to an orange LED. It does the same function to the right (but the port for the other orange LED would be different).
I have also did experiments, in addition to that I have jumped into several facts that I need to write a program that would "catch" those signals and process them, in order to give further feedbacks to LEDs.
Several questions arrise, but FYI I have PICDEM2 Demo board w/ MPLAB ICD2, PIC18F4520 uC, and a very basic knowledge in C Programming. My questions are:
1. I have found several issues regarding this, and I am asking myself whether I have to master (or at least understand) the meaning of CCP or ECCP module in this uC? Because from what I heard, CCP or Capture-Compare-PWM might give solution to my idea here.
2. If my 1st statement was wrong, what do you think I can do next? Is there any tuts on this? Kindly guide me along, thank you so much.
I think it is enough for now, I would say thank you very much for helping me out, thanks!