Hi,
I have an application that controls the maestro from a PC through USB Dual Port using the virtual serial ports. Works fine.
Now I have ported this to a Raspberry Pi by using /dev/ttyAMA0 for both serial ports.
I can successfully control servo positions by writing to the serial port of the Pi but reading the serial port to get e.g. an input always returns nothing. (Empty buffer, not a zero value.)
Inbetween the RasPi and the maestro I have logic level shifters (Pololu #2595). I verified the correct voltages on the RasPi and maestro rx and tx pins. I configured the maestro to UART fixed baudrate 115200. And I disabled the serial console on the RasPi.
It behaves as if the maestro just doesn’t talk on its tx line. For example if I send a command the maestro doesn’t understand the red LED on the maestro lights up. If I then send GetErrors to the maestro the LED goes off but no bytes are received.
The application is written in Squeak (the engine under the hood of Scratch) so porting the application is as easy as copying the Squeak image file to the Pi and there changing both the command port and the TTL port to /dev/ttyAMA0.
Grateful for any hint.
Cheers,
Herbert