Questions tagged [atmega328p]
This tag should only be used with questions about the ATmega328p microcontroller. Questions about other ATmega series MCUs should use the tag "atmega", and those about the use of the ATmega328p within the Arduino UNO should use the tag "arduino". It is acceptable to use this tag with specific variants, like the ATmega328, ATmega328P-PU, etc.
373 questions
0 votes
1 answer
118 views
How to properly read values from CCD linear sensor?
I have a PCB with UPD8872 CCD sensor that I took from an old scanner. I managed to solder the pins of the board to Arduino compatible wires and programmed the Arduino and, also, wrote desktop app that ...
3 votes
2 answers
179 views
IRFZ44N , PWM signal from Atmega328P always conducting
I'm currently using a MOSFET IRFZ44N to feed a motor using a PWM signal that comes from my Arduino Uno board. These are the connections that i have made: Being the 50 ohms resistance the equivalent of ...
0 votes
0 answers
146 views
ATmega328P PCB design review request
I am currently learning PCB design as a hobby and recently completed my first independent PCB project. I would greatly appreciate it if a professional could review my design to identify any potential ...
4 votes
3 answers
403 views
First Time Designing an ATmega328p Dev Board – Please Roast Before I Waste Money
This is my first attempt at designing a custom development board using the ATmega328p, and it’s for our final project, and will be used for our Microprocessors and Microcontroller Systems and Design ...
1 vote
1 answer
126 views
Power supply problems: battery drains too fast in idle
I built a system to lock/unlock door using a fingerprint module (FPM) and servo connected to ATmega328P MCUs. The system, which is battery powered, works by FPM sending lock/unlock commands using a 2....
0 votes
0 answers
62 views
Proteus simulation of BLDC ESC having time step error
I have been trying to implement this bldc circuit in Proteus It is based on another circuit here. However, I can't get it to work with microcontroller. When I tried this circuit: in the bid to ...
2 votes
1 answer
75 views
Can I use PORTC of ATmega328P while using ADC for battery check?
I have the following function to measure the supply voltage using ATmega328P's ADC, which enables ADC, measures known 1.1 V bandgap voltage against AVCC, and disables ADC: ...
2 votes
1 answer
127 views
3.3V to 5V logic level shifting not working with UART
I bought a whole bunch of level shifters from Sparkfun and another vendor on Amazon. None of them seem to actually work (tried with like 6 different ones). SO, I guess I'm doing something wrong. I'm ...
4 votes
1 answer
343 views
Why do servos pulsate?
I have a SG90 servo connected to an Arduino Uno. PB1 is connected to the orange (signal) wire of the servo. 5V and GND pins on the Arduino are connected to the red and brown wires of the servo. I'm ...
3 votes
1 answer
185 views
Can't get GT-NUCL1633K1 fingerprint reader to work
I'm trying to interface an ATmega328P with a GT-NUCL1633K1 sensor over UART. When I send commands to the sensor, it responds just by echoing the command, instead of actually doing anything. For ...
-1 votes
1 answer
87 views
Don't understand AVR Microcontroller makefile (Newbie) [closed]
I recently got interested in arduino again after an fun experience at work. I found an old arduino kit for a class from college and started to tinker with it. I decided to bypass the arduino and work ...
2 votes
2 answers
149 views
Resistor Sizing for Atmega328 RESET Circuitry
I'm designing a atmega328p based board. I want to be able to RST the MCU with a push button switch and have a indicator LED for the same. The below schematic was what I was able to think of. I want to ...
0 votes
1 answer
77 views
SSCOM Displaying Garbled Output when Transmitting data from an ATMega328P via USB-TTL
I have been tinkering with an ATMega328P trying to figure out how to use the different functionalities because i need to use it for a school project. i'm currently trying to figure out the usart part. ...
-1 votes
1 answer
82 views
ATmega328P interfacing with 433MHz RF module behaving strangely
I am trying to control an LED using RF 433MHz signals using two atmega328p attached to 16MHz crystals. The RF transmitters and receivers I got from Amazon. The serial communication baud rate is 4800 (...
0 votes
2 answers
101 views
atmega328p button press via interrupt not working
I'm trying to control a servo using two buttons connected to a atmega328p. The two buttons place the servo horn in two different positions. The servo is a SG90 micro servo. I'm trying to use ...