# How to control motors with two b\_g431\_esc and esp32 or nucleo-f446re

**URL:** https://community.simplefoc.com/t/how-to-control-motors-with-two-b-g431-esc-and-esp32-or-nucleo-f446re/5849
**Category:** hardware support
**Created:** [November 13, 2024, 6:29pm UTC](https://community.simplefoc.com/t/how-to-control-motors-with-two-b-g431-esc-and-esp32-or-nucleo-f446re/5849 "2024-11-13T18:29:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Brian\_H](https://community.simplefoc.com/user_avatar/community.simplefoc.com/brian_h/32/7711_2.png) [@Brian\_H](https://community.simplefoc.com/u/Brian_H)
#### Post date: [November 13, 2024, 6:29pm UTC](https://community.simplefoc.com/t/how-to-control-motors-with-two-b-g431-esc-and-esp32-or-nucleo-f446re/5849/1 "2024-11-13T18:29:42Z")

</div>

just wondering where to begin when running two b\_g431\_esc1’s with esp32 or a nucleo, I understand you have to specify motor1 and motor2 and all that but im wondering what connections to make, do you use the i2c or serial and if so, could you explain the connections. I have a working config i can run on each b\_g431\_esc separately but I’m just having problems sorting the connections in my head for two. I guess more to the point really, I’m wondering if i upload my code to the esp32 or the nucleo then send the data to the two b\_g431\_esc controllers via serial or i2c and if so, which connections do I make, yes I’m very new sorry, please let me know if you can help.
