Tagged: serial communication
This topic has 36 replies, 6 voices, and was last updated 1 year, 8 months ago by beed cons.
- AuthorPosts
- January 19, 2022 at 11:12 am #8637scoutingrobotParticipant
Hello,
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 #8638SuperDroidKeymasterHello,
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 #8639scoutingrobotParticipantThank 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 2 years, 11 months ago by scoutingrobot.
- This reply was modified 2 years, 11 months ago by scoutingrobot.
January 20, 2022 at 10:51 am #8642scoutingrobotParticipantHello,
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 #8643SuperDroidKeymasterI’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 #8644scoutingrobotParticipantOh 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 #8645SuperDroidKeymasterNo, 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 #8646scoutingrobotParticipantOh 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 2 years, 11 months ago by scoutingrobot.
January 24, 2022 at 3:29 pm #8655scoutingrobotParticipantHello,
Should I set the motor controller to inverted or non-inverted RS232 mode for testing this configuration?
January 24, 2022 at 3:34 pm #8656SuperDroidKeymasterIt should be set to inverted.
January 24, 2022 at 3:37 pm #8657scoutingrobotParticipantAnd 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 #8658scoutingrobotParticipantI can still measure 9V after the diode and resistor
January 24, 2022 at 3:49 pm #8659scoutingrobotParticipantCould you please help me resolve this issue?
January 24, 2022 at 4:11 pm #8660SuperDroidKeymasterAre you using a 4.7K Ohm resistor?
January 25, 2022 at 6:24 am #8661scoutingrobotParticipantYes. It is 4.7k
- AuthorPosts
You must be logged in to reply to this topic.