1

Topic: USB with Micro

With this configuration: USB OTG + arduino Micro + integrated USB + arduino IDE, the cell phone android does not connect to arduino, do you have an idea why?

2

Re: USB with Micro

Can you tell me more. At what point do you detect the error?
1. In the application, you cannot select a connection via USB.
2. The application does not see the USB device.
3. The application sees it but does not connect.

3 (edited by pal 2025-08-18 02:09:34)

Re: USB with Micro

everything with configuration is OK and I can program the Micro but i got this message when I connect the Micro with my cell with a USB cable. it does not work with Micro but if i use Nano 33 iot it's work

App version 4.16.01, API 35
Pending device ...

Device started

USB connection started
Connecting to USB device: VID 2341, PID 8037
Connecting to Arduino Micro

USB device connected

Receiving GUI configuration...
Device does not respond

Receiving GUI configuration, try 2 ...
Device does not respond

Receiving GUI configuration, try 3 ...
Read timeout error

Receiving GUI configuration, try 4 .…
Device does not respond
Disconnect

4

Re: USB with Micro

Thank you. I see that the application has successfully connected to the USB of controller. But there is no data exchange. Perhaps there is an error in the RemoteXY settings, for example, you selected a hardware serial instead of usb serial. I can help you if you share the source code.

5

Re: USB with Micro

Hi this is my code

/*
   -- New project --
   
   To compile this code using RemoteXY library 3.1.13 or later version 
   download by link [url]http://remotexy.com/en/library/[/url]
   To connect using RemoteXY mobile app by link [url]http://remotexy.com/en/download/[/url]                   
     - for ANDROID 4.15.01 or later version;
     - for iOS 1.12.1 or later version;
    
   To interact with the GUI, please refer to the manual: 
   [url]https://remotexy.com/ru/help/code/interaction/[/url]

   This source code was automatically generated by the RemoteXY editor and 
   is an example for the RemoteXY library. 
   Licensed under the MIT License. See the LICENSE file in the RemoteXY library
   root ([url]https://github.com/RemoteXY/RemoteXY-Arduino-library[/url]) for full license 
   details.    
*/

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// you can enable debug logging to Serial at 115200
//#define REMOTEXY__DEBUGLOG    

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__USBSERIAL


// RemoteXY connection settings 
#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 9600


#include <RemoteXY.h>

// RemoteXY GUI configuration  
#pragma pack(push, 1)  
uint8_t RemoteXY_CONF[] =   // 46 bytes
  { 255,1,0,1,0,39,0,19,0,0,0,0,31,1,106,200,1,1,2,0,
  10,43,26,24,24,48,4,26,31,79,78,0,31,79,70,70,0,70,45,105,
  18,18,16,26,37,0 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t pushSwitch_01; // =1 if state is ON, else =0

    // output variables
  uint8_t led_01; // from 0 to 1

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;   
#pragma pack(pop)
 
/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////



void setup() 
{
  RemoteXY_Init (); 
  
  
  // TODO you setup code
  
}

void loop() 
{ 
  RemoteXY_Handler ();
  
  
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay(), use instead RemoteXY_delay() 


}

6

Re: USB with Micro

We'll check it out.