# Odrive doesn't run from ardiuno UART

**URL:** <https://discourse.odriverobotics.com/t/odrive-doesnt-run-from-ardiuno-uart/12811>\
**Category:** General\
**Created:** [March 24, 2025, 10:45am UTC](https://discourse.odriverobotics.com/t/odrive-doesnt-run-from-ardiuno-uart/12811 "2025-03-24T10:45:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushpanjali\_Jha](https://discourse.odriverobotics.com/user_avatar/discourse.odriverobotics.com/pushpanjali_jha/32/6585_2.png) [@Pushpanjali\_Jha](https://discourse.odriverobotics.com/u/Pushpanjali_Jha)\
**Post date:** [March 24, 2025, 10:45am UTC](https://discourse.odriverobotics.com/t/odrive-doesnt-run-from-ardiuno-uart/12811/1 "2025-03-24T10:45:09Z")

</div>

odrv = odrv0  
odrv.config.dc\_bus\_overvoltage\_trip\_level = 49  
odrv.config.dc\_bus\_undervoltage\_trip\_level = 10.5  
odrv.config.dc\_max\_positive\_current = 10  
odrv.config.dc\_max\_negative\_current = -0.01  
odrv.config.brake\_resistor0.enable = True  
odrv.config.brake\_resistor0.resistance = 2  
odrv.axis0.config.motor.motor\_type = MotorType.HIGH\_CURRENT  
odrv.axis0.config.motor.pole\_pairs = 7  
odrv.axis0.config.motor.torque\_constant = 0.04135  
odrv.axis0.config.motor.current\_soft\_max = 10  
odrv.axis0.config.motor.current\_hard\_max = 23  
odrv.axis0.config.motor.calibration\_current = 5  
odrv.axis0.config.motor.resistance\_calib\_max\_voltage = 2  
odrv.axis0.config.calibration\_lockin.current = 10  
odrv.axis0.motor.motor\_thermistor.config.enabled = False  
odrv.axis0.controller.config.control\_mode = ControlMode.VELOCITY\_CONTROL  
odrv.axis0.controller.config.input\_mode = InputMode.VEL\_RAMP  
odrv.axis0.controller.config.vel\_limit = 10  
odrv.axis0.controller.config.vel\_limit\_tolerance = 1.2  
odrv.axis0.config.torque\_soft\_min = -1.1  
odrv.axis0.config.torque\_soft\_max = 1.1  
odrv.axis0.trap\_traj.config.accel\_limit = 10  
odrv.axis0.controller.config.vel\_ramp\_rate = 10  
odrv.can.config.protocol = Protocol.NONE  
odrv.axis0.config.enable\_watchdog = False  
odrv.axis0.config.load\_encoder = EncoderId.RS485\_ENCODER0  
odrv.axis0.config.commutation\_encoder = EncoderId.RS485\_ENCODER0  
odrv.rs485\_encoder\_group0.config.mode = Rs485EncoderMode.AMT21\_EVENT\_DRIVEN  
odrv.config.enable\_uart\_a = True  
odrv.config.gpio7\_mode = GpioMode.UART\_A  
odrv.config.gpio6\_mode = GpioMode.UART\_A  
odrv.config.uart\_a\_baudrate = 115200

This is my configuration.  
I am using Arduino Mega 2560 and trying to run the motor using Uart communication but my controller shows undefined states always. I also tried to pull the TX Pin to transmit data, but still my odrive is not found by the controller.  
Give me some solution to overcome it

---

<div class="post-metadata">

**Author:** ![SurendhranV](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@SurendhranV](https://discourse.odriverobotics.com/u/SurendhranV)\
**Post date:** [March 24, 2025, 11:19am UTC](https://discourse.odriverobotics.com/t/odrive-doesnt-run-from-ardiuno-uart/12811/2 "2025-03-24T11:19:12Z")

</div>

If the Odrive is not shown in the controller but you configured by using PC , so there is may be any connecting issues in controller with odrive check the usb port and isolator.

---

<div class="post-metadata">

**Author:** ![solomondg](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/s/bcef8e/32.png) [@solomondg](https://discourse.odriverobotics.com/u/solomondg)\
**Post date:** [March 24, 2025, 11:58pm UTC](https://discourse.odriverobotics.com/t/odrive-doesnt-run-from-ardiuno-uart/12811/3 "2025-03-24T23:58:47Z")

</div>

Can you send some pictures of your wiring, and share your arduino code?

---

<div class="post-metadata">

**Author:** ![Pushpanjali\_Jha](https://discourse.odriverobotics.com/user_avatar/discourse.odriverobotics.com/pushpanjali_jha/32/6585_2.png) [@Pushpanjali\_Jha](https://discourse.odriverobotics.com/u/Pushpanjali_Jha)\
**Post date:** [March 25, 2025, 11:19am UTC](https://discourse.odriverobotics.com/t/odrive-doesnt-run-from-ardiuno-uart/12811/4 "2025-03-25T11:19:45Z")

</div>

now, it is working.  
Thank you for your Support.

---

<div class="post-metadata">

**Author:** ![solomondg](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/s/bcef8e/32.png) [@solomondg](https://discourse.odriverobotics.com/u/solomondg)\
**Post date:** [March 25, 2025, 2:48pm UTC](https://discourse.odriverobotics.com/t/odrive-doesnt-run-from-ardiuno-uart/12811/5 "2025-03-25T14:48:22Z")

</div>

Great!
