Hi, first of all thanks a lot for your work.
I'm trying to use PPMin and PPMout to record the data emitted by a remote control while transmitting.
Step by step I managed to record the data by transmitting it to a computer. However, when I wanted to compare the input and output signal with an oscilloscope I realized that the output signal did not match the input signal at all.
So I decided to just try this code to compare the 2 signal :
I checked the values g_valuesIn and g_valuesOut are the same before and after g_PPMOut.update().
You can find attached a picture of the signal on the oscilloscope the input signal is in yellow and the output in blue. You can see that neither the amplitude nor the pulse duration corresponds.
that's odd. The ppm generator code is pretty robust, or at least it's supposed to be.
You are using a Atmega328 based Arduino? (i.e. an Uno or Nano)
There's not much I can do about the amplitude, it's a digital output pin so it's either VCC or GND. The input voltage depends on whatever your receiver outputs, that may be 3.3V. If you need a lower output voltage then you could use a voltage divider made out of a few resistors.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-08-25
Yes I am using a Atmega328 on a arduino Uno.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, first of all thanks a lot for your work.
I'm trying to use PPMin and PPMout to record the data emitted by a remote control while transmitting.
Step by step I managed to record the data by transmitting it to a computer. However, when I wanted to compare the input and output signal with an oscilloscope I realized that the output signal did not match the input signal at all.
So I decided to just try this code to compare the 2 signal :
I checked the values g_valuesIn and g_valuesOut are the same before and after g_PPMOut.update().
You can find attached a picture of the signal on the oscilloscope the input signal is in yellow and the output in blue. You can see that neither the amplitude nor the pulse duration corresponds.
Could you please help me with this problem?
that's odd. The ppm generator code is pretty robust, or at least it's supposed to be.
You are using a Atmega328 based Arduino? (i.e. an Uno or Nano)
There's not much I can do about the amplitude, it's a digital output pin so it's either VCC or GND. The input voltage depends on whatever your receiver outputs, that may be 3.3V. If you need a lower output voltage then you could use a voltage divider made out of a few resistors.
Yes I am using a Atmega328 on a arduino Uno.