Arduino Forum

Using Arduino => Microcontrollers => Topic started by: 5ub1 on Jun 06, 2020, 03:22 pm

Title: Microcontroller Mega 2560 CH340G/ATmega2560-16AU
Post by: 5ub1 on Jun 06, 2020, 03:22 pm
Hello,

i'm recently just started with Arduino and I don't have almost any experience in it.I have Mega 2560 CH340G/ATmega2560-16AU as controller for my project and I don't find it in the board menu. I tried different boards among them Arduino Mega, Mega ADK and a few others and it has no effect. I also searched for it in Board manager but no luck.

Is there any solution for my problem? I would be very glad to hear your advices.

regards,

5ub1
Title: Re: Microcontroller Mega 2560 CH340G/ATmega2560-16AU
Post by: DrAzzy on Jun 06, 2020, 04:49 pm
It's a mega2560 (Arduino Mega, ATmega2560 from processor submenu- though this should be the default). Is it showing up in ports menu? (unplug board, open tools -> port menu (if not greyed out), note what ports are there, plug it in, and repeat, correct port is the one that appeared. If tools -> port menu still greyed out, google "ch340g drivers" and the name of your OS, download and install, a port will now appear, that is the correct port).

Do not waste time with the Tools -> programmer menu, it does not have any effect for normal uploads.

Failing that, post the full text of any and all error messages shown in the console when you attempt to upload Blink example.
Title: Re: Microcontroller Mega 2560 CH340G/ATmega2560-16AU
Post by: 5ub1 on Jun 06, 2020, 05:24 pm
It works fine. Thanks DrAzzy. But I was thinking of connecting servo motors to it therefore I used servo shield Adafruit. So I used sweep example instead of blink and it didn't work. So that means that something is wrong with servo shield. But it does work when you connect it to the plate- the lights are on. Does that mean that I made a mistake while soldering? I checked it but it looks fine. Thanks again for the answer.
Title: Re: Microcontroller Mega 2560 CH340G/ATmega2560-16AU
Post by: DrAzzy on Jun 07, 2020, 08:36 am
Beats me, I have no experience with that shield. Are you sure the sweep example you used was written for the shield though? Sometimes "servo shields" or boards have special driver chips for controlling tons of servos and whathave you. They may also require external power. Consult the documentation.
Title: Re: Microcontroller Mega 2560 CH340G/ATmega2560-16AU
Post by: 5ub1 on Jun 09, 2020, 11:29 am
Yeah you were right. I needed to download Adafruit library. It works fine now. Thanks again.