Clone nano not working

i bought two clones with ATmega328p chips, neither will let me connect or flash to. they are seen in the IDE boards manager (once the boards chip is specified).

on the Arduino IDE (2.3.2) it brought up multiple errors that i think may be unrelated but might be helpful.
they will be listed below.

i started with an issue trying to flash the board from QMK software but it wouldn't flash and thought i would try from IDE but had different issues.

error codes.

C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:4:1: error: 'conts' does not name a type; did you mean 'cos'?
 conts byte nb_rows = 4;
 ^~~~~
 cos
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:5:1: error: 'conts' does not name a type; did you mean 'cos'?
 conts bytew nb_cols =4;
 ^~~~~
 cos
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:6:16: error: 'nb_rows' was not declared in this scope
 char key_chars[nb_rows][nb_cols] = {
                ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:6:25: error: 'nb_cols' was not declared in this scope
 char key_chars[nb_rows][nb_cols] = {
                         ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:12:14: error: 'nb_rows' was not declared in this scope
 byte rowPins[nb_rows] = {9,8,7,6};
              ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:13:14: error: 'nb_cols' was not declared in this scope
 byte colPins[nb_cols] = {5,4,3,2};
              ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:15:25: error: 'key_chars' was not declared in this scope
 SimpleKeypad pk1((char*)key_chars, rowPins, colPins, nb_rows, nb_cols);
                         ^~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:15:25: note: suggested alternative: 'getchar'
 SimpleKeypad pk1((char*)key_chars, rowPins, colPins, nb_rows, nb_cols);
                         ^~~~~~~~~
                         getchar
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:15:36: error: 'rowPins' was not declared in this scope
 SimpleKeypad pk1((char*)key_chars, rowPins, colPins, nb_rows, nb_cols);
                                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:15:36: note: suggested alternative: 'rewind'
 SimpleKeypad pk1((char*)key_chars, rowPins, colPins, nb_rows, nb_cols);
                                    ^~~~~~~
                                    rewind
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:15:45: error: 'colPins' was not declared in this scope
 SimpleKeypad pk1((char*)key_chars, rowPins, colPins, nb_rows, nb_cols);
                                             ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:15:54: error: 'nb_rows' was not declared in this scope
 SimpleKeypad pk1((char*)key_chars, rowPins, colPins, nb_rows, nb_cols);
                                                      ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:15:63: error: 'nb_cols' was not declared in this scope
 SimpleKeypad pk1((char*)key_chars, rowPins, colPins, nb_rows, nb_cols);
                                                               ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino: In function 'void loop()':
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:23:14: error: 'kp1' was not declared in this scope
   char key = kp1.getKey();
              ^~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:25:12: error: 'class HardwareSerial' has no member named 'Println'; did you mean 'println'?
     Serial.Println(key);
            ^~~~~~~
            println
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:28:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F13);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:28:20: error: 'KEY_F13' was not declared in this scope
     Keyboard.press(KEY_F13);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:32:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F14);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:32:20: error: 'KEY_F14' was not declared in this scope
     Keyboard.press(KEY_F14);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:36:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F15);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:36:20: error: 'KEY_F15' was not declared in this scope
     Keyboard.press(KEY_F15);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:40:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F16);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:40:20: error: 'KEY_F16' was not declared in this scope
     Keyboard.press(KEY_F16);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:44:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F17);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:44:20: error: 'KEY_F17' was not declared in this scope
     Keyboard.press(KEY_F17);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:48:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F18);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:48:20: error: 'KEY_F18' was not declared in this scope
     Keyboard.press(KEY_F18);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:52:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F19);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:52:20: error: 'KEY_F19' was not declared in this scope
     Keyboard.press(KEY_F19);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:56:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F20);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:56:20: error: 'KEY_F20' was not declared in this scope
     Keyboard.press(KEY_F20);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:60:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F21);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:60:20: error: 'KEY_F21' was not declared in this scope
     Keyboard.press(KEY_F21);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:64:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F22);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:64:20: error: 'KEY_F22' was not declared in this scope
     Keyboard.press(KEY_F22);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:68:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F23);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:68:20: error: 'KEY_F23' was not declared in this scope
     Keyboard.press(KEY_F23);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:72:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F24);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:72:20: error: 'KEY_F24' was not declared in this scope
     Keyboard.press(KEY_F24);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:76:5: error: 'Keyboeard' was not declared in this scope
     Keyboeard.press(KEY_LEFT_SHIFT);
     ^~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:76:21: error: 'KEY_LEFT_SHIFT' was not declared in this scope
     Keyboeard.press(KEY_LEFT_SHIFT);
                     ^~~~~~~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:78:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F13);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:78:20: error: 'KEY_F13' was not declared in this scope
     Keyboard.press(KEY_F13);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:85:5: error: 'Keyboeard' was not declared in this scope
     Keyboeard.press(KEY_LEFT_SHIFT);
     ^~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:85:21: error: 'KEY_LEFT_SHIFT' was not declared in this scope
     Keyboeard.press(KEY_LEFT_SHIFT);
                     ^~~~~~~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:87:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F14);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:87:20: error: 'KEY_F14' was not declared in this scope
     Keyboard.press(KEY_F14);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:94:5: error: 'Keyboeard' was not declared in this scope
     Keyboeard.press(KEY_LEFT_SHIFT);
     ^~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:94:21: error: 'KEY_LEFT_SHIFT' was not declared in this scope
     Keyboeard.press(KEY_LEFT_SHIFT);
                     ^~~~~~~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:96:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F15);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:96:20: error: 'KEY_F15' was not declared in this scope
     Keyboard.press(KEY_F15);
                    ^~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:103:5: error: 'Keyboeard' was not declared in this scope
     Keyboeard.press(KEY_LEFT_SHIFT);
     ^~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:103:21: error: 'KEY_LEFT_SHIFT' was not declared in this scope
     Keyboeard.press(KEY_LEFT_SHIFT);
                     ^~~~~~~~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:105:5: error: 'Keyboard' was not declared in this scope
     Keyboard.press(KEY_F16);
     ^~~~~~~~
C:\Users\jonat\OneDrive\My Documents\Arduino\Macropad\sketch_may15a\sketch_may15a.ino:105:20: error: 'KEY_F16' was not declared in this scope
     Keyboard.press(KEY_F16);
                    ^~~~~~~
Multiple libraries were found for "Keyboard.h"
  Used: C:\Users\jonat\OneDrive\My Documents\Arduino\libraries\Keyboard
  Not used: C:\Users\jonat\AppData\Local\Arduino15\libraries\Keyboard
exit status 1

Compilation error: 'conts' does not name a type; did you mean 'cos'?

The Keyboard library does not work on boards with 328P; you will need a board with native USB (Micro, Leonardo, most modern boards).

For the other errors, you will have to post your sketch; please do not forget to use code tags as described in How to get the best out of this forum.

Your topic has been moved to a more suitable location on the forum as this does not seem to be an issue with the IDE.

I think you are right about the keyboard directory, do you know of any keyboard directories that work with the 328p?

I will upload the sketch shortly

None will work with the Nano; you can try some stuff if you have an Uno/Mega with 8U2 or 16U2 but the keyboard library will not work with them.

The easiest is to switch to a Micro / Pro Micro or one of the more modern Nanos (except for the Nano Every).

It's const byte nb_rows = 4;

Post your complete code.

1 Like

that is a shame as i only have the nano, i am new to this haha but thank you for you response i appreciate the help

oh thank you

do you know what kind of applications are good for the nano?

Almost all that are good for arduino in general.

Hi, does your Nano have the FT232 IC? If so, you have to install the FT232 driver software.

How would that solve compile problems?

Also, as far as I know it's installed by default when you install the IDE.

Didja try something less ambitious for your first stroll in these woods, like "blink"?

https://docs.arduino.cc/built-in-examples/basics/Blink/

a7

1 Like

At one time , the writers of the original FT drivers pulled their software ( actually made it so it would not work with clone boards)
This was done automatically onlineand no one was any the wiser until naturally, one wanted to program a clone with FT original drivers.
It was reverted but as I remember, one had to do it yourself.

how do i find this out? and if it is old how would i go about updating it?

another question i have thought of since my original post is that, with QMK_toolbox, the chip ATmega328p is listed in the drop down it just wouldnt flash the drive... i know this is the wrong forum for that though

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.