I am trying to use the 14M2 to read the serial output provided by an LV maxsonar board. The data sheet for this module states that
https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf
I've tried reading in the input using the serin command on pin C.4 without success. The output always returns a fixed value and does not change. The latest try is attached below. The output of all variables is always 4.
I think I don't correctly understand the way the serin command (and its options) work. Any help or tips would be very welcome.
The full datasheet can be found here:The output is an ASCII capital “R”, followed by three ASCII character digits representing the range in inches up to a maximum of 255, followed by a carriage return (ASCII 13). The baud rate is 9600, 8 bits, no parity, with one stop bit
https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf
I've tried reading in the input using the serin command on pin C.4 without success. The output always returns a fixed value and does not change. The latest try is attached below. The output of all variables is always 4.
I think I don't correctly understand the way the serin command (and its options) work. Any help or tips would be very welcome.