Bought a split type ultrasonic sensor, try to overtake each other in the sending and receiving module is separate, can use a serial port output data receiving module, this module have data, is written in C, what I use is pyboard, have to write the program with micropython, here is a serial port output way and form a complete set of C language program, the first data is the tag, the second and third data include the distance information,
This program to establish a contains three elements of an array, the element type is 8-bit integer, namely each element read serial output of two hexadecimal number, let the first element is the tag, the second element and the third element operation want distance,
But I don't have any basis, is only the serial data read out, but can't write the corresponding micropython program for data processing,
Have bosses and see how the distance with micropython parsing out?