Nano port problems and not downloading code

I just recently bought 3 Nano V3.0, Nano Board ATmega328P 5V 16M Micro-Controller Board Compatible with Arduino IDE (Nano x 3 with USB Cable) by LAFVIN and I tried to create a humidity and temperature display on my breadboard with it. At first, I plugged it in, changed the board to Arduino Nano, but the usual Port 4 with the board was not there on the port list. I looked something up and installed the CH340 driver to try to fix things and it now shows up at port 5. Whenever I tried downloading code into the nano, it either seemed to download except it has no function with other components, it had a never ending cycle of trying to download, or it just had an error message and refused to load at all. I have already tried using it with the old bootloader setting with no avail. The error message:

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM5
     Using Programmer              : arduino
     Overriding Baud Rate          : 57600

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x82

avrdude done. Thank you.

Problem uploading to board.

#include <LiquidCrystal.h>
#include <DHT.h>

#define Type DHT11

int rs = 7;
int en = 8;
int d4 = 9;
int d5 = 10;
int d6 = 11;
int d7 = 12;

int dhtPn = 6;

LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
DHT dht(dhtPn, Type);

float humidity;
float temperature;

int dt = 500;

void setup() {
  // put your setup code here, to run once:
  lcd.begin(16, 2);
  dht.begin();

  delay(dt);
}

void loop() {
  // put your main code here, to run repeatedly:
  humidity = dht.readHumidity();
  temperature = dht.readTemperature(true);

  lcd.setCursor(0, 0);
  lcd.clear();
  lcd.print("Humid: ");
  lcd.print(humidity);
  lcd.print("%");
  lcd.setCursor(0, 1);
  lcd.print("Temp: ");
  lcd.print(temperature);
  lcd.print("F");

  delay(dt);
}

Which processor have you got selected in the Tools menu of the IDE ?

image

Right now I have the ATmega328P (Old Bootloader) but Ive tried the other two as well.

If you only recently bought the Nano then it is likely that you need to select the first option

Have you ever been able to upload a simple sketch such as Blink ?

Blink seems to be working fine, but whenever I download my new script and plug it into my breadboard, the lcd screen just spits out random symbols

Y'all, I'm so sorry... it was my wiring all along. I have these little wires that are nearly impossible to see if they are in wrong. Im so sorry but thanks for the help

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