This topic has 36 replies, 6 voices, and was last updated 1 year, 7 months ago by beed cons.

  • Author
    Posts
  • #8637
     scoutingrobot
    Participant

    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.

    #8638
     SuperDroid
    Keymaster

    Hello,

    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.

    #8639
     scoutingrobot
    Participant

    Thank 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, 10 months ago by scoutingrobot.
    • This reply was modified 2 years, 10 months ago by scoutingrobot.
    #8642
     scoutingrobot
    Participant

    Hello,

    Also is the diodes and resistor setup necessary if I am using RS232 to 3.3V TTL adapter for conversion?

    #8643
     SuperDroid
    Keymaster

    I’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.

    #8644
     scoutingrobot
    Participant

    Oh 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)

    #8645
     SuperDroid
    Keymaster

    No, 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.

    #8646
     scoutingrobot
    Participant

    Oh 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, 10 months ago by scoutingrobot.
    #8655
     scoutingrobot
    Participant

    Hello,

    Should I set the motor controller to inverted or non-inverted RS232 mode for testing this configuration?

    #8656
     SuperDroid
    Keymaster

    It should be set to inverted.

    #8657
     scoutingrobot
    Participant

    And the voltage drop near the diode and rx pin of the microcontroller should measure 3.3V and less?

    #8658
     scoutingrobot
    Participant

    I can still measure 9V after the diode and resistor

    #8659
     scoutingrobot
    Participant

    Could you please help me resolve this issue?

    #8660
     SuperDroid
    Keymaster

    Are you using a 4.7K Ohm resistor?

    #8661
     scoutingrobot
    Participant

    Yes. It is 4.7k

Viewing 15 posts - 1 through 15 (of 37 total)

You must be logged in to reply to this topic.

Login Register

©2024 SDRobots.com | All rights reserved.

Log in with your credentials

or    

Forgot your details?

Create Account