Hello
i'm working on a prototype using an Arduino and a light sensor. The two communicates using UART.
when i'm using a FTDI device to send a message to the sensor, it reacts accordingly, but when i'm using the Arduino it doesn't do anything, as if it just doesn't receive the message.
i used an oscilloscope to be able to understand what's happenning. I took the signal from the closest I could from the sensor.
I linked the oscillograms (on the arduino signal, the time cursors are in the wrong position, but the lenght of the signal is the same on both cases)
I also plugged the Arduino Serial output to the FTDI to see how the Arduino signal is received. it looks fine appart from some mild glitches sometimes.
I really don't understand why the signal gets lost somewhere. Could it be because of the shape that is slightly different, could it be the bitrate that is not exactly the same even if i set it to be the same (like if the clock is slightly off, a 115200 bit rate is in fact 115100)
Thanks a lot
i'm working on a prototype using an Arduino and a light sensor. The two communicates using UART.
when i'm using a FTDI device to send a message to the sensor, it reacts accordingly, but when i'm using the Arduino it doesn't do anything, as if it just doesn't receive the message.
i used an oscilloscope to be able to understand what's happenning. I took the signal from the closest I could from the sensor.
I linked the oscillograms (on the arduino signal, the time cursors are in the wrong position, but the lenght of the signal is the same on both cases)
I also plugged the Arduino Serial output to the FTDI to see how the Arduino signal is received. it looks fine appart from some mild glitches sometimes.
I really don't understand why the signal gets lost somewhere. Could it be because of the shape that is slightly different, could it be the bitrate that is not exactly the same even if i set it to be the same (like if the clock is slightly off, a 115200 bit rate is in fact 115100)
Thanks a lot
Attachments
-
134.2 KB Views: 14
-
134.2 KB Views: 13
-
130.7 KB Views: 13