Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
482 views

Why did this arduino burn out? SilentStepStick (TMC2130) stepper at 24V

I'm new to electronics. Attempting to bench-test a SilentStepStick stepper driver board, (based on a TMC2130) Using: Arduino Uno, a SilentStepStick driver board, a 0.6A stepper motor, and waterott ...
2
votes
1answer
242 views

“light_ws2812” library 10x slower than required (AVR C, ATMega328p int. 8Mhz)

So I'm trying to run some SK6812 (WS2812 clones) on a standalone ATMega328p. The output signal is too slow! I define F_CPU as 8000000 (8Mhz), both in the code and in the Atmel Studio Symbols, but my ...
2
votes
1answer
273 views

ATMega328P Programs at 2V but not at 1.8V

I'm perplexed by this one: I'm trying to run my ATMega328P at 1.8V. The voltage at the chip (pin 4 and 21) sits at 1.82V (BK Precision Multimeter). When using the AVRISP mkII, the programmer LED ...
2
votes
2answers
670 views

ATmega328p will not enter programming mode

simulate this circuit – Schematic created using CircuitLab I'm trying to connect a ATmega328p and Raspberry Pi together, communicating via SPI. The Pi is Master and is used to program the ...
1
vote
0answers
51 views

Serial.println using Registers in ATMEGA328P

I have worked with ATMEGA328P using Arduino libraries, but new to actual register level coding. To start with that, I have written code for basic Serial.print in ...
1
vote
0answers
99 views

ATMega328P control servo motor speed with potentiometer

I'm trying to develop an application in atmel studio 7.0 which will allow me to control the speed of my servo motor with my potentiometer. Now, the problem is that I don't really know how to do that? ...
1
vote
0answers
57 views

Will this LED clock circuit work?

I am making a LED wall clock with an ATmega328P Xplained Mini board, 64 LEDs (4 is for the "main ticks" 15,30,45,60) around the PCB to show the seconds, and a 7 segment 4 digits display to show the ...
1
vote
1answer
104 views

Selecting true crystal settings for 328P [7.3728 MHz]

I want to make a new board working with 115200 (gsm modem) UART. so I want minimum baud error rate. I look at https://cache.amobbs.com/bbs_upload782111/files_22/ourdev_508497.html table and decide ...
1
vote
0answers
264 views

Problem with ATmega328P when used with DRV8302 gate driver

I am developing a motor controller for a 48V BLDC motor. For this, I am using the ATmega328P microcontroller in combination with the DRV8302 gate driver from Texas Instruments. It uses a simple ...
1
vote
0answers
151 views

ATmega328P current drawn when in Brown out

I'm experimenting with an ATmega328p on a breadboard using the standard Arduino bootloader. I'm looking at the power consumption as I want to power the device from a solar panel and a large cap. I've ...
1
vote
0answers
349 views

Replacing an Arduino Uno with a 3.3V ATMega328p

For a school project my partner and I have been prototyping our system, a microcontroller + sensor + rf transceiver, with an Arduino Uno as the micro. The sensor and transceiver both run off of 3.3V, ...
1
vote
0answers
839 views

Programming the Atmel Mega 328P-AU 32 MLF (QFN) using the Arduino ISP

I have successfully managed to program both a (DIP)Mega168A-PU and a (DIP)Mega328PU using another (DIP)Mega328P-PU ISP. This is the configuration that works for both DIP formats (168A-PU & 328P-...
1
vote
0answers
576 views

ESP8266 and ATmega328 UART communication, gets() function

I'm trying to get an ATmega328 and an ESP8266 to talk to each other over UART. In the attached minimal example, I have an LED on pin 16 (B2) that should start on and do a slow blink to show data was ...
1
vote
0answers
484 views

atmega328p not responding to avrdude

I have this prototype pcb with an atmel avr atmega328p on it and it doesn't respond correctly to my AVRISP Mk2. From what i can tell the signature is wrong for that part. Here is the output from ...
0
votes
0answers
31 views

ATmega328p: Does SPI conflict with timers TC1, TC2 or interrupts PCINT2, PCINT0?

My code - based on my library MultiTrans - uses timers TC1 and TC2 as well as interrupts ...
0
votes
0answers
50 views

A sensor for jaw/mouth movements in a mask

The mask I'm trying to build will display different lighting patterns. The overall goal is to synchronize these patterns with a musical/dance performance, so there were two options: either hard-code ...
0
votes
0answers
57 views

ATMega328P - DS18B20 temperature sensor returns incorrect temperature values

I'm using a Dallas DS18B20 sensor to measure temperature in conjunction with an AVR ATMega328P microcontroller (using this AVR C library to implement the code). Unfortunately, the value always returns ...
0
votes
0answers
32 views

atmega328p is not detecting on USBasp programmer after verify 0 error?

I was trying to burn my atmega328p board which is designed for some wireless application. The ICs atmega328p, esp8266 12f, and ADM7171 are using the same Vcc. Here the Power supply is connected to ...
0
votes
0answers
63 views

Atmega328p datasheet mistake “OCRA”

I was reading the atmega328p datasheet, and suddenly, i saw that a register is mentioned called "OCRA", on page 108 and page 160, which normally, should be register "OCR0A", which is widely mentioned ...
0
votes
2answers
43 views

LM2902 unity gain op amp, miss-wired

I am using LM2902 as a unity gain voltage follower to isolate measurements of a sensors voltage. ( datasheet: http://www.ti.com/lit/ds/symlink/lm2902.pdf ) the sensors i wan to measure operate at ...
0
votes
1answer
52 views

Suggestions on wiring PCA9685 i2c + TB67H303 motor ic

I'm trying to design a circuit in order to use the TB67H303 motor driver with the ATMEGA328p and the i2c protocol by using the PCA9685 controller. I never used the TB67H303 and the PCA9685 chips ...
0
votes
0answers
23 views

AT328 + CP2102(firmware update) + control

we used the AT328 be a microcontroller to control relays. But we want to use CP2102 to update the firmware, before we used the NANO be a bootloader to update the firmware to AT328. Is it possible to ...
0
votes
1answer
122 views

How to lock an ATMega328P from cloning?

I was working with the Arduino IDE. I tried to find out from where a MCU can be locked so that nobody can make a clone from it. I found many answers describing something about lock bit. I realized ...
0
votes
0answers
46 views

TPIC6C595D Q0 pin is always high

Good day everybody! So I have a LED clock circuit, which I designed, powered by an atmega328p xmini, and whatever I do the first pin of the shift register which does the current sinking (TPIC6c595D) ...
0
votes
2answers
64 views

Which pins should i use to connect watch crystal for powering Low Frequency Crystal Oscillator in ATmega328p?

If i want use a watch crystal(32KHz) with Low Frequency Crystal Oscillator of ATmega328p,Which pin should i connect the crystal to? Should i connect the crystal to XTAL1,XTAL2 pins of ATmega328p or ...
0
votes
1answer
29 views

Is 128KHz oscillator in ATmega same as Watch Dog Oscillator?

Where is the 128KHz oscillator located in ATmega328p? I am unable to find it on the ATmel data sheet ,Is it same as watch dog timer Oscillator? I am attaching the clock section from the ATmel ...
0
votes
0answers
91 views

ATMega328-PU misread ADC values

I am working on an embedded systems project using an Arduino Uno, and I wanted to convert my project over to a breadboard using the ATMega328-PU IC with the bootloader. Initially, this worked ...
0
votes
0answers
43 views

IC enable pin control with Atmega 328p

I want to control the FP6293 ICs enable pin with the Atmega 328p pin PD5 (configured as digital out). The EN pin (active high) on the IC is rated at max 6V with a minimum HIGH voltage of 0.96V. As the ...
0
votes
0answers
177 views

Update Mega328 Transistor Tester with Arduino Uno micro controller

I'm trying to update Mega328 Transistor Tester with Arduino Uno micro controller. Here is my Uno and Mega328 connection and Avrdude setting, including particular error: avrdude.exe: verification ...
0
votes
2answers
159 views

HC-SR04 Distance Sensor Trigger Signal on 2.5V Voltage level gives no reading

I am using an Arduino on a breadboard setup with an ATMEGA328p MCU. The whole circuit is designed to work in a low-power state and is powered using a 3V (Nominal) voltage Coin Cell. The HC-SR04 is ...
0
votes
1answer
384 views

Can not flash atmega328p with usbasp

My usbasp was working fine.I could burn programme to atmega328p.But last night i wanted to cahnge the clockspeed by clock_prescale_set ( clock_div_t x ). after that it burned successfully and ...
0
votes
0answers
204 views

Problems with ICP Atmega328p

I am trying to use ICP (Input Capture Pin) functionality of ATMEGA328p (Arduino Uno board) and somehow it does not seem to work. I have connected a switch to ICP pin PB0 in this case, and want to ...
0
votes
3answers
204 views

Voltage regulation for Atmega328p

I am designing a circuit containing two Atmega328p. First chip will drive TFT screen with 3.3 V linear voltage reg. Second one will drive BT module, couple of relays, two sensors, SD card module, and ...
0
votes
0answers
84 views

How to run micro servo with ATmega 328 PU

When I use arduino board it works fine but when I try to put it on prototype breadboard it just freez and start humming. For circuit I am using 5v regulator, duracel 9v battery, ZTT 16.0 mx resonator(...
0
votes
1answer
145 views

Generating a short pulse after a delay on ATmega 328/P

I am trying to use one of the hardware timers on the ATmega 328/p (arduino uno) to generate a short pulse some number of microseconds after receiving a pulse on an input. Currently my code looks like ...