Skip to main content

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.

2 votes
1 answer
49 views

In AVR-GCC, I am trying to get an atmega328p to sleep and then wake on USART RX, but it locks up

My hardware is pretty straight forward. I have an ATMEGA328P hooked up with an LED on PB5, primarily to troubleshoot, and a wire that connects PD2 (INT0) to PD0 (RX), hoping to use INT0 to wake up the ...
Erik Vincent's user avatar
1 vote
2 answers
130 views

Will such a scheme work correctly with ATmega328PB?

I am developing a small on-board computer for my rocket model and now I have designed the ATmega328PB connection to the CH340G and I want to ask if there are any errors in the connection and if there ...
DYNAMIC AEROSPACE's user avatar
-1 votes
0 answers
50 views

Embedded device with Hardware issues consisting atmega 328p, RFM96 and ADXL345

I have a device that works on 3V battery (2 D size cells) now I want to debug it so that all the devices work correctly. My device consist of atmega 328p, running on 08 MHz Crystal which gets readings ...
Talha Ashfaq's user avatar
0 votes
1 answer
64 views

Is it OK to power the circuit while the programmer is connected?

I have an Atmega328 connected to an Olimex AVR programmer, and programming it works fine. Because the programmer does not supply a constant power, I also power the entire circuit from an Arduino (just ...
Bart Friederichs's user avatar
0 votes
0 answers
24 views

Regarding Torque of DC Motor with PWM, Atmega328 and MOSfet

I am trying to develop a system having a DC motor (geared 12v 200rpm). There's a rotary encoder to adjust the RPM of the motor. I am using Atmega328 as the main MCU. To drive the motor I am using ...
spdif's user avatar
  • 1
1 vote
3 answers
142 views

Damaged ATMEGA328P despite clamping diodes and current limiting resistor

I have a custom PCB designed to interface an Arduino Nano's ADC pin that had 12v from a bench power supply inadvertently connected to a header pin meant for 5v input. The ATMEGA328P now gets extremely ...
Robert Susmilch's user avatar
1 vote
2 answers
54 views

How can I prevent a 120VAC solenoid valve from resetting my ATMEGA328?

I'm using an ATMEGA328 running Arduino code to control a relay which uses a 5V signal to switch a 120 VAC solenoid. I added a flyback diode to the relay which fixed an earlier reset problem, but I'm ...
Jake Nixon's user avatar
0 votes
1 answer
36 views

Why did fuse bits successfully reset using ICSP and USBASP programmer?

I read a lot about fuse bits in AVR microcontrollers and everyone says that fuse bits can be reset by using high-voltage programmer only, they can't be reset via UART<->ICSP. So, I've received ...
Alexander Perechnev's user avatar
0 votes
1 answer
17 views

High time in External Clock drive

While looking for the rise time and fall time of external clock in ATMega328p, I came across the term "High time". Is it same as "ON time" i.e. time taken to reach 10% of amplitude?...
Technaut's user avatar
0 votes
1 answer
64 views

ATmega 328P system reseting [closed]

I am working on an electronic system for irrigation. The system works well when I am using separate power supplies for the circuit and the 5 V relay. When I use a common 12 V power supply for both, ...
nad66's user avatar
  • 1
0 votes
2 answers
143 views

AVR ATmega328P if statement wrongly executed after reset

I have simplified the listing to bare minimum where I can still observe this behaviour. When this program is running, it works as expected. Button press causes LED to show up. The problem exist on ...
smajli's user avatar
  • 940
0 votes
1 answer
58 views

ATmega328P Experiences Erratic Behavior with 12V to 5V Regulator Above 10V Input

I'm encountering an issue with an ATmega328P circuit when using a 12V to 5V voltage regulator Texas Instruments LM1117MPX-5.0-NOPB.The setup includes the ATmega328P, three LEDs, a crystal oscillator ...
sam prince's user avatar
4 votes
1 answer
2k views

I'm trying to create a clock. Rate my first schematic design

Hey guys, I'm a developer trying to learn PCB design and advanced hardware design and needed a place to start. I've designed a very basic clock with a Atmel Atmega328P-AU and from checking out some ...
Mustansir Godhrawala's user avatar
0 votes
0 answers
30 views

Detecting OLED display refresh frequency using phototransistor

I am trying to detect the refresh frequency of an OLED display driven by an SSD1309 display controller. During the refresh cycle, each row of a frame is charged and driven for 65 DCLKS in a sequential ...
Joshua Dotson's user avatar
2 votes
2 answers
119 views

MCU slave receiver I2C shifts incoming data by one bit when replying with ACK

I am communicating with I2C/TWI between a MCU (Atmega328p) as Slave receiver and the raspberry pi 5 as master transmitter. I2C is at 100kHz configuration (the slower the Rpi5 can go). I have an issue ...
Christianidis Vasilis's user avatar

15 30 50 per page
1
2 3 4 5
24