Tagged: serial communication
This topic has 36 replies, 6 voices, and was last updated 1 year, 10 months ago by beed cons.
- AuthorPosts
- January 19, 2022 at 11:12 am #8637
scoutingrobot
ParticipantHello,
I am having trouble establishing serial communication from NVIDIA microcontroller(Jetson nano) and the Roboteq motor controller(FBL2360T)
The idea is to communicate motor commands from the Jetson.
RS232 logic level from motor controller: +/- 10V
Using an RS232 to TTL convertor, I am able to convert it to 3.3V logic level. (https://www.serialcomm.com/serial_rs232_converters/rs232_rs485_to_ttl_converters/rs232_to_3v_ttl_converter/rs232_to_3v_ttl.product_general_info.aspx)I have checked the wiring multiple times, set the baud rate to 115200, but there seems to be only junk values transmitting.
Individually troubleshooting components: Roboteq with PC works and NVIDIA with PC works as well.
There seems to be an issue when connecting NVIDIA to Roboteq controller.Any thoughts and support are highly appreciated.
January 20, 2022 at 8:40 am #8638SuperDroid
KeymasterHello,
When converting RS232 to TTL you have to set the RoboteQ to use inverted serial logic. Please refer to pages 178 and 179 of the RoboteQ user manual.
January 20, 2022 at 10:36 am #8639scoutingrobot
ParticipantThank you for the prompt response. I did set it to inverted serial logic and I’m able to measure logic high around 3V(with a multimeter) at the end of the convertor but still getting some junk values at the end of the NVIDIA. What is the best way to check communication from the motor controller with the NVIDIA? Can I request a query like controller voltage so I get a response?
- This reply was modified 3 years, 1 month ago by
scoutingrobot.
- This reply was modified 3 years, 1 month ago by
scoutingrobot.
January 20, 2022 at 10:51 am #8642scoutingrobot
ParticipantHello,
Also is the diodes and resistor setup necessary if I am using RS232 to 3.3V TTL adapter for conversion?
January 20, 2022 at 11:11 am #8643SuperDroid
KeymasterI’m not familiar with the adapter you’re using. However, we use the circuit on page 179 on a regular basis. You can purchase the PCB here. This circuit would replace your adapter, and as the documentation states, the diodes are optional.
To validate the communication you can open a python terminal on the Jetson and send ASCII queries while printing the response.
January 20, 2022 at 12:42 pm #8644scoutingrobot
ParticipantOh okay. Thank you.
Without the diodes, how would the circuit look like? Would I still need to tie the Tx pin to 5V at the controller side?
Is there a sample program which I can use? I am currently using a program which only accepts serial commands(https://github.com/JetsonHacksNano/UARTDemo)
January 20, 2022 at 1:45 pm #8645SuperDroid
KeymasterNo, removing the diodes would just leave the resistor between the Jetson Rx and the RoboteQ Tx.
We don’t have a sample program available for this but that demo script looks like a good starting point. You can just modify the write payload and read the response to print out.
January 20, 2022 at 2:29 pm #8646scoutingrobot
ParticipantOh okay. will follow the same connections and try executing the script once. Will get back to you if I have any doubts.
Thank you so much for your tinme.- This reply was modified 3 years, 1 month ago by
scoutingrobot.
January 24, 2022 at 3:29 pm #8655scoutingrobot
ParticipantHello,
Should I set the motor controller to inverted or non-inverted RS232 mode for testing this configuration?
January 24, 2022 at 3:34 pm #8656SuperDroid
KeymasterIt should be set to inverted.
January 24, 2022 at 3:37 pm #8657scoutingrobot
ParticipantAnd the voltage drop near the diode and rx pin of the microcontroller should measure 3.3V and less?
January 24, 2022 at 3:42 pm #8658scoutingrobot
ParticipantI can still measure 9V after the diode and resistor
January 24, 2022 at 3:49 pm #8659scoutingrobot
ParticipantCould you please help me resolve this issue?
January 24, 2022 at 4:11 pm #8660SuperDroid
KeymasterAre you using a 4.7K Ohm resistor?
January 25, 2022 at 6:24 am #8661scoutingrobot
ParticipantYes. It is 4.7k
- This reply was modified 3 years, 1 month ago by
- AuthorPosts
You must be logged in to reply to this topic.