Go Down

Topic: Microcontroller Mega 2560 CH340G/ATmega2560-16AU (Read 511 times) previous topic - next topic

5ub1

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

DrAzzy

#1
Jun 06, 2020, 04:49 pm Last Edit: Jun 06, 2020, 04:50 pm by DrAzzy
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.
ATTinyCore and megaTinyCore for all ATtiny, DxCore for DA/DB-series! github.com/SpenceKonde
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

5ub1

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.

DrAzzy

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.
ATTinyCore and megaTinyCore for all ATtiny, DxCore for DA/DB-series! github.com/SpenceKonde
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

5ub1

Yeah you were right. I needed to download Adafruit library. It works fine now. Thanks again.

Go Up