2

I have been given a board(Atmel ATmega328P-AU 1640) to program. I googled and found category of board Arduino Uno/ CH34x-based clone.

But when I program an empty program:

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

I get this error:

Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

These are all the ports that are available to me. I have connected my Arduino with one of the USB ports on my Macbook running MacOS Sierra

enter image description here

enter image description here

enter image description here

Avamander
  • 624
  • 2
  • 11
  • 35
abhimanyuaryan
  • 121
  • 1
  • 5

5 Answers5

3

You have an Arduino nano clone using a CH340G chip for serial communication. You to down load and install a driver for your computer to recognize it. I don't use OSX, so there's not one I can recommend.

uhours
  • 141
  • 2
3

The board is an Arduino Nano clone, not an Uno.

  1. Plug the Nano's USB cable into your computer.
  2. Download and install the CH340 driver from here: http://www.wch.cn/download/CH341SER_MAC_ZIP.html
  3. In the Arduino IDE, select the port of your Nano from the Tools > Port menu.
  4. Tools > Board > Arduino Nano
  5. Sketch > Upload

If the port of your Nano doesn't appear in the Tools > Port menu (and no, dev/cu.Bluetooth-Incoming-Port is not the correct port) then you may have a damaged or charge-only USB cable. Try using a known-good cable or verify that your cable works for data on another device. If you have it plugged into a USB 3.0 port on your computer then try a USB 2.0 port instead.

per1234
  • 4,278
  • 2
  • 24
  • 43
2

That looks like a clone of an Arduino Nano to me, with a CH340G chip as the USB interface chip. You need to:

  1. Install the CH340G drivers
  2. Ensure that the ATMega328PU chip has a bootloader installed on it

The last Nano I bought from China didn't have a bootloader installed. There are many tutorials online for teaching you how to install the bootloader using another Arduino as the programmer.

Majenko
  • 105,851
  • 5
  • 82
  • 139
1

Try this instructions from install driver. https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver

Installation with Homebrew-Cask.

Then try this, and all work fine ;) http://www.instructables.com/id/How-to-fix-bad-Chinese-Arduino-clones/

Morgan Old
  • 21
  • 1
1

Remove the old driver by issuing one of the following commands (depending on your installation):

  • sudo rm -rf /System/Library/Extensions/usb.kext
  • sudo rm -rf /Library/Extensions/usbserial.kext

Restart your Mac.

Install with Homebrew-Cask Install the driver by the following commands

Restart your Mac.

Try upload some code in your Arduino. In some cases the board might still not work.

This is because there is no bootloader installed on the Atmel microcontroller ship. To solve this problem we need a working Arduino and the clone Arduino we want to fix.

![Make an ISP Programmer From Your Working Arduino ]1

First we connect the working Arduino to our computer and open the Arduino IDE.

We go to File -> Examples and click ArduinoISP and upload this to the Arduino. Ones uploaded disconnect the Arduino.

**

Connecting the Wires

**

Connecting the Wires

Next we connect the wires from the working Arduino to the clone as follows.

Without 10 uF capacitor.

Go to Tools -> Board and select the chinese board that is not working. in my case it's an Arduino Genius/Uno

Next we go to Tools again -> Programmer and select Arduino as ISP.

Go to Tools again and select "Burn Bootloader".

Go back to Tools -> Programmer and set back to ArduinoISP.

Your clone should work just fine now. ;)

Morgan Old
  • 21
  • 1