SOLVED:Trouble connecting to Wemos Mega +WiFi R3 ATmega2560+ESP8266 32Mb Memory

Hi,
I'm new to this and ordered a Wemos® Mega +WiFi R3 Module ATmega2560+ESP8266 32Mb Memory USB-TTL CH340G off ebay. I'm running Windows 10. After plugging in the USB, the computer couldn't recognize what type of board it was for installation. I manually installed drivers for Arduino Mega 2560. The device is now recognized on COM4 by device manager but when I try to upload a sketch I get the following error:

Sketch uses 1268 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM4"
avrdude: ser_drain(): read error: The handle is invalid.

avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

When I get board info I get this:

BN: Unknown board
VID: 1A86
PID: 7523
SN: Upload any sketch to obtain it

I've done a few hours of searching but can't find anything similar to my problem. Any ideas?
Thanks,
Brad

1 Like

I also ran through the loopback test and it passed. Using serial monitor everything I typed was returned.

set the dip switches to connect USB to Atmega. reference

Thanks. I tried that and no luck.

Is it a data USB cable and not just charger?

.

o

bradman76:
Thanks. I tried that and no luck.

only switches 3 and 4 ON?

Solved. After more searching I found this thread: http://forum.arduino.cc/index.php?topic=385288.0 . Turns out for the ebay knockoffs you need to install an additional driver for it to work properly. Thanks for the suggestions.

bradman76:
Solved. After more searching I found this thread: http://forum.arduino.cc/index.php?topic=385288.0 . Turns out for the ebay knockoffs you need to install an additional driver for it to work properly. Thanks for the suggestions.

You knew the board used the CH340 chip and you didn't install the driver for it? ? ?

That's what is known as operator error!

.

Like i said. Im NEW to this and installed the mega driver. Have no idea what a ch340 is and its not like this thing comes with a great user manual. Went through all the troubleshooting stickies on this site. Maybe should be part of a sticky that there are additional drivers that need to be installed before this thing will work.

Cheers

Link in comment #2 send you to Uno version of the board, but in the DOCUMENTS tab on the page, there is the download link to driver and instructions pdf.