I am making a battery level indicator for my electric four wheeler. It uses 36 volts (3x 12v batteries).
I made a circuit of an atmega328 with a 16mhz crystal, 2x 22pf capacitors also for the timing, a 100nf filter capacitor on the input power supply, and a 10k resistor from RST to +5v. Then I added 7 leds with 220 ohm resistors on them on seven different digital pins of the atmega328. Then I added a voltage divider of a 68k ohm and a 10k ohm resistor to read the battery voltage on pin A5. The whole circuit is powered by a 9v battery through a l7805 regulator.
The atmega328 already has the Arduino boot loader installed and programs just fine when inserted into an Arduino board.
I wired everything according to the official “Arduino on a Breadboard” tutorial. But nothings happening when I plug in the 9v battery.
I tested the 5v and GND pins on the atmega328 and it is reading 5v.
Here are some photos of my circuit:
This seems like a stupid issue.
Thanks in advance!