Arduino with esp32

Hello guys... I want to connect Esp32 to the arduino(Esp32 as a master and arduino uno as a slave) and send commands from the esp32 to the arduino which will drive a motor driver but i don’t know how to do it
anyone can help?

@oriyad22

Your topic was Moved to it's current location / section as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

Did you try Googling "ESP32 connect to Arduino uno"?

What do you not know how to do write code, write code to send data from an ESP32, write code on a Uno to receive data, write code on the Uno to do the motor thing?

You will find that the ESP32, can do this project but the experience of comms with 2 MCU is worth the thing do.

Here is some code for sending data from an ESP32:

void fSendSerialToBrain( void *pvParameters )
{
  struct stu_LIDAR_INFO pxLIDAR_INFO;
  xSemaphoreGive ( sema_SendSerialToBrain );
  for (;;)
  {
    xEventGroupWaitBits (eg, evtSendSerialToBrain, pdTRUE, pdTRUE, portMAX_DELAY);
    // Serial.println ( " fSendSerialToBrain " );
    if ( xSemaphoreTake( sema_SendSerialToBrain, xZeroTicksToWait ) == pdTRUE ) // grab semaphore, no wait
    {
      String sSerial = ""; //declare a string
      sSerial.reserve ( 300 ); // turn the string into a string buffer
      int CellCount = 1;
      xSemaphoreTake( sema_LIDAR_INFO, xSemaphoreTicksToWait );
      xQueueReceive ( xQ_LIDAR_INFO, &pxLIDAR_INFO, QueueReceiveDelayTime );
      xSemaphoreGive( sema_LIDAR_INFO );
      sSerial.concat( "<!," ); //sentence begin
      sSerial.concat( String(ScanPoints) + "," );
      for ( CellCount; CellCount <= ScanPoints; CellCount++ )
      {
        sSerial.concat( String(pxLIDAR_INFO.Range[CellCount]) + "," );
      }
      sSerial.concat( ">" ); //sentence end
      // Serial.println ( sSerial );
      SerialBrain.println ( sSerial );
      //      ////
      xEventGroupSetBits( eg, evtSendLIDAR_Info_For_ALARM );
      xSemaphoreGive ( sema_SendSerialToBrain );
    }
  }
  vTaskDelete( NULL );
} // void fSendSerialToBrain( void *pvParameters )

@Idahowalker
I have sent you a private message