Hello everyone! I’m Bagho from India.
I made a simple project with DHT-11 with an Arduino UNO and an LCD panel. The project worked flawlessly with the UNO.
So I got an ATMega328 chip (Not Atmega328P) chip, burned the bootloader with “Atmega328P on breadboard 8 MHz internal clock” (I had to change the MCU to ATmega328 in the boards.txt to match device signature).
I connected the LCD and DHT to the ATmega328 following the UNO pinouts.
Unfortunately, the DHT doesn’t return any value now (nan). I tried with another DHT and different pins; it’s all the same. The LCD displays fine whatsoever. Whenever I switch back to the UNO without the program unchanged, the DHT returns proper values.
Is the ATmega328 faulty, or isn’t compatible with the bootloader?
Please help. Thank you.