i tried to upload a sketch to my new clone nano (atmega 168 ch340g) via a usbasp programmer. when i first got this nano, i tried to upload an example blink sketch (with the same programmer) and worked. can anyone tell me how to fix this?
this is the full error message
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: Expected signature for ATmega168 is 1E 94 06
Double check chip, or use -F to override this check.
Wrong microcontroller found. Did you select the right board from the Tools > Board menu?
It looks like the silly Chinese sent you a Nano with an ATmega168P instead of the usual ATmega168 (actually an upgrade). The ATmega168P is supported by MiniCore:
Tools > Burn Bootloader (to set the fuses to not reserve a boot section)
Sketch > Upload Using Programmer
As a bonus, this will allow you to use the full 16 kB of program memory on the Nano for your sketch, rather than wasting 2 kB for a boot section you're not even using (since you're uploading with the USBasp).