I don't know where you guys stand on people asking questions regarding clones but I thought it's probably worth a go seeing as I don't really know where else to ask.
I recently purchased a Nano clone and for some reason the serial monitor is not working correctly.
The ebay listing says that the board runs at 32Mhz and from looking at the official Arduino nano spec I can see that the genuine board runs at 16Mhz. So i thought it might be a BAUD rate issue but I've tried a whole range of BAUD rates including 4800, 9600, 19200, 38400 and 57600 but none seem to work. Obviously I've set the BAUD rate in Serial.begin() and then Selected the corresponding from the drop down menu in the Serial monitor each time.
The problem that I'm getting is just a display of reversed question marks which scroll horizontally across the screen... even though I used Serial.println in my sketch so it should really be scrolling vertically.
the setup is...
HARDWARE: -
just a potentiometer with the wiper attached to A0 and the left and right pins attached to ground and 5v
SOFTWARE: -
int pot;
void setup(){
Serial.begin(9600); //tried various different BAUD's
}
void loop(){
pot = analogRead(A0);
Serial.println(pot);
delay(25);
}
so as you can see, you couldn't really get any simpler than this. Therefore I'm beginning to think I might have picked up a dodgy clone. What does people think?
Also... I had an issue uploading sketches to the board to begin with but then I selected ATMEGA328P (old bootloader) from the processor menu and then it worked. I know this because I ran a square wave with tone(); and controlled it's frequency with a potentiometer and measured it with my scope and everything worked correctly.
What you experience does not really make sense. Reasoning:
If you can generate a signal using tone() and get the expected frequency on the scope, the board is a 16MHz board.
Unless the board has a bootloader modified for 32MHz, it would fail a normal upload.
What happens when you just use a simple code that prints something like "Hello world"; does that work as expected or do you also get reverse question marks?
Thanks a lot... i didn't realise that the actually chip was a clone I thought it was just the board. I downloaded the source from Github (here: GitHub - dbuezas/lgt8fx: Board Package for Logic Green LGT8F328P LGT8F328D and LGT8F88D) and dropped it into the Arduino/Hardware folder and once i'd set a few configurations in the IDE everything works nicely.
The chip is an original microcontroller from a Chinese company that imitates the ATmega328P.
(Apart from that, probably a 328P clone is exist in Chinese markets.)
There are several upgrades, such as the clock being specified up to 32MHz and the ADC resolution being higher.
But when it comes to reliability, I'll shut my mouth.
Non of them initially worked but after much brain wrenching, finally they now all work.
I have not downloaded any new drivers or changed to any previous Arduino IDE.
I am running an iMac with Catalina 10.15.7 and Arduino 1.8.16.
In tools, I have set Board to "Arduino Nano". Processor to "ATmega328P old boot loader".
Port to "dev/cu.usbserial-1440". Programmer to "Arduino as ISP".
I then discovered that it was necessary to "reset" the Nano after "Compiling" the sketch and before "Uploading". I think that the "reset" was the all important thing to do.
Now all 5 clones work.
Hope that this helps anyone else who maybe contemplating ****.