Questions tagged [atmega328]

The ATMega328 is the chip that is the heart of the Arduino Uno. It is popular also as a chip to use to create your own board. Since it is available in the through hole version, it can be placed on a breadboard easily for circuits.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 views

Ardutester Millenium I2c Lcd Not Showing Anything!

Hiii Friends...., I am Trying to Build Components tester Using Arduino Specifically Atmega328p Chip . I Downloaded The Ardutester Millenium Code From Here .. https://create.arduino.cc/projecthub/...
3
votes
2answers
65 views

Jumping to bootloader from application code in atmega328p

I'm trying to program an Arduino Uno (atmega328p) using only the serial Tx/Rx lines (no DTR, so no automatic reset). This is so I can upload code via WiFi/TCP using an ESP-01. To achieve this, I need ...
1
vote
1answer
32 views

WS2812B are only white on custom board

I recently designed a board for an LED project. I am using WS2812B as the LED, and an ATMEGA328P-AU as the microcontroller. I also am using an arduino nano as my ISP and using "flash with ...
0
votes
1answer
37 views

How can I burn the bootloader onto atmega328 (not atmega328p)?

Hi I bought some atmega328 chips (not to be confused with atmega328p). They are very similar but the atmega328p chips are just more power efficient, so I've read. Anyways, my goal is to burn the ...
0
votes
1answer
28 views

EMI resets atmega on switching ON relay with inductive load like a 230v fan

I am making an automation device. I am using an atmega8a to control 6 relays. The setup is standard, 220v load, 5v dc coil, flyback diode and an NPN transistor to trigger with atmega pin. The problem ...
0
votes
2answers
59 views

How to use Atmega328p-PU from an Uno, on a breadboard without a crystal

How do you use Atmega328p-PU from an Uno, on a breadboard without a crystal?
0
votes
1answer
50 views

Junk values in EEPROM. while writing large values

Facing an issue while writing a large value (like 2000-5000) to EEPROM using EEPROM.put(). For example, While writing 2000 values to address 5 of EEPROM. Some junk values are written automatically to ...
0
votes
1answer
28 views

Error while inputting EEPROM.read() and EEPROM.write()

I am trying to store data in ATmega328 (Arduino Uno) using the following code using tinkercad: #include <EEPROM.h> void setup() { int addr, data=1; Serial.begin(9600); for (addr=0; addr&...
0
votes
0answers
43 views

Warm Atmega328p and weird power behaviour

I recently built a circuit with an atmega328p (which I have never used before standalone) and attached all the neccessary components (crystal, capacitors etc). However, when I powered it up with a ...
0
votes
0answers
34 views

Why am I only seeing 1.3V on an analog pin that has been set to high using digitalWrite?

I have run into a bit of trouble with a sewable electronics project. I am trying to power a SparkFun 7-Segment Serial Display from one of the analog ports of a ATmega328 board. I realize this is ...
0
votes
0answers
26 views

Prevent reading flash from Arduino (Pro Mini for example) with fuses

The situation is the following: I'm uploading code to Arduino board using USB programmer which communicates with the board via Tx/Rx serial (so boot-loader remains on the board). I want to prevent ...
-1
votes
1answer
75 views

Atmega 328pu as stand alone

I am used atmega 328pu as stand alone.i used 7805 as regulator. I regulated from 12 VOLT 2 amp smps. When I connect my dc 12 VOLT pump in between 12 VOLT and ground dc motor working fine but Atmega ...
2
votes
1answer
51 views

Arduino UARTS Auto addressing slaves

i'm using this serial topology to connect my Act ATmega328p (Arduino) slaves together to a master ESP32. They are in total 10 ATmega328p slaves and one master: With this type of wiring i'm sure that ...
0
votes
1answer
27 views

How to run atmega328p at 8, 4 and 1 mhz?

Instead of using the regular Arduino board I have purchased the atmega328p-pu along with this components: 22pf ceramic capacitor 10K resistor 16mhz crystal 47uF capacitor 3.3 Volts Power supply The ...
0
votes
1answer
35 views

How do I use a SMD crystal with 4 pins?

I am running my arduino project with the atmega328 chip like this: I have purchased by mistake this crystal: The reason why I purchased by mistake that crystal was because it has this description: ...
0
votes
1answer
35 views

Placing decoupling capacitors when building an Arduino PCB with Atmega328-PU

I have previously asked this question: Custom build of arduino on a pcb And thanks to the answer by Majenco I have learned that my circuit works a lot better when adding a capacitor. For example I ...
1
vote
2answers
93 views

Serial printing from Flash Memory (F() macro, PROGMEM, sprintf_P, SPTR)

I have been testing on an Arduino UNO various techniques for serial printing from Flash Memory instead of RAM. At the same time, I have been using the freeMemory() function from Adafruit. I created a ...
0
votes
1answer
31 views

Atmega Millis with Quartz crystal

I followed https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard this tutorial to program my Atmega 328p to run on a breadboard with a 16 MHZ Quarz crystal and two 22pF capacitor. I want to program a ...
0
votes
0answers
9 views

generating signal of 3 phase UPS PWM by SVM

Is there a realization code for 3-phase UPS inverter by Arduino? I need implementation for SVM by voltage and current feedback.
0
votes
1answer
121 views

Bootloader onto an ATmega328p (3.3V/8MHz), the dude won't finish his business

Hi and thank you reading my question ! I need for my projects to design as small as i can. Both the skills, and the hardware counts. So i can't use a DIP package for them, and i have gone for a TQFP ...
0
votes
1answer
55 views

Can i exchange my arduino nano for an atmega328p-pu in my project?

Im currently trying to make a smart light switcher that is attached in front of my rooms light switches. It basically mostly consists of two servos (to turn on or off either switch), two button (to ...
0
votes
1answer
24 views

How to load scal factor external to the code?

We know that, we need calibration factors (scale factors) to read current sensor data (ACS758) to arduino. I am also using voltage reader using voltage divider circuit for my project. I need to build ...
2
votes
0answers
32 views

Start VL53l0X measurement failed

The initialization of the ToF fails with this code. I'm trying to frankenstein it with Radiohead RFM69, so far no luck. // rf69_reliable_datagram_client.pde // -*- mode: C++ -*- // Example sketch ...
0
votes
2answers
48 views

Possibly fried a new atmega328p?

I have a new atmega328p IC that I wanted to program. To do so I placed it into the socket of an arduino uno. I accidentally placed it the wrong way around (180° rotated), and powered it via USB and ...
0
votes
0answers
96 views

Analog Comparator works on Nano, but not working on Pro Mini 3.3v

I've coded an analog comparator to work on Nano, but the same code does not work on a brand new Pro Mini 3.3v 8MHz. The serial monitor just outputs the triggered interrupt continuously. Lines orange ...
0
votes
1answer
29 views

Using PortB as a sink, not working

Out of ideas here, i try using PB0-3 as sinks for a LED matrix and the pins just won't sink. My test code: void setup() { //bitClear(SPCR, 6); pinMode(PD5, OUTPUT); pinMode(PB0, OUTPUT); ...
0
votes
2answers
100 views

Replacing large lookup table with switch statement

My arduino needs to take a 14-bit number and convert it to a 10-bit number. Can't use a formula for it since the data is quite random. So I created a lookup table with 2^14 elements, each containing a ...
0
votes
3answers
100 views

Is it possible to connect a 36 pin 4 digit 7 segment display on an Arduino Uno R3?

First of all,here's the datasheet of the 4 digit 7 segment display that I'm using: http://www.kingbrightusa.com/images/catalog/SPEC/ca56-11ewa.pdf How can I make a counter or a clock out of this ...
0
votes
1answer
56 views

Keep 5V on while sleep with LowPower library

Is it possible to keep the 5V on, while putting the Arduino (ATMEGA328P) in sleep more, using LowPower library? I'm trying to use this HAT: https://spellfoundry.com/product/sleepy-pi-2-usb-c/ to ...
-1
votes
1answer
98 views

Atmega328 standalone not working unless Pin1 connected to Arduino RESET

I'm new into this domain field. My principal occupation is as a .NET developer. I'm trying to do a personal project in which a AtMega328 takes some output from a scale using HX711 and sends a SMS via ...
5
votes
3answers
9k views

What to do with Arduino floating pins?

I have some unused pins, should I connect them together and to the ground or leave them floating?
0
votes
0answers
25 views

Use SIM800 module with bare ATmega328

I want to migrate from an Arduino Uno to a bare ATmega328 to save energy. I already tested it with a script that blinks and puts out a few chars on the serial connection. The LED blinked and with a ...
5
votes
2answers
2k views

Can we burn Arduino bootloader into any microcontroller chip?

I am new to this Arduino community I noticed on youtube that while the prototype is complete people purchase new ATmega328p chips and flash bootloaders into them using in-system-programmers so that ...
0
votes
1answer
68 views

ATmega328P-PU blink example not working

I moved from an Arduino to a bare ATmega328P-PU (to save energy). First I wanted to start a blink-script to verify that it's all working. For this I flashed the bootloader and uploaded the blink-...
1
vote
0answers
67 views

Problem with counting inside INT0 ISR while in PowerDown

The issue that I have is in INT0 service in which it doesn't perform properly when MCU is set in PowerDown mode. I declared a global variable as "counter" and put it inside INT0 ISR but its value ...
2
votes
3answers
132 views

What is the correct way to interpret the built-in Analog-to-Digital Converter output?

When using the built-in analog to digital converter of the Arduino Uno Rev 3's Atmega328P with a reference voltage of 5V, what is the appropriate function to interpret the output? There is conflicting ...
0
votes
2answers
73 views

Bootloader difference between Atmel328p(through hole) and Atmel328p au(smd)

It’s been bugging me lot that Can’t we burn the same bootloader for both 328p and 328p au? I got confused when I see this linksmd 328p au bootloader burn. Will there be any impact on performance or ...
0
votes
0answers
109 views

Implementing pluseIn using interrupt

I am trying to implement pluseIn using an interrupt. I tried attaching an interrupt in CHANGE mode. The time when the signal goes HIGH is recorded as raising time and the time when it goes signal LOW ...
0
votes
0answers
107 views

NRF24L01 based project freezes for no good reason

I have built and coded a low power NRF24L01 transmitter and receiver, for purposes of transmitting the temperature of the transmitter's environment. I have used an Atmega328P chip for the project. The ...
0
votes
1answer
77 views

Atmega328p Uploads via ISP but not bootloader

I'm trying to upload a bootloader to my atmega328p on a custom pcb containing external oscillator at 16MHz. It is possible to upload program via ICSP pins using Arduino as ISP (Official Arduino Uno) ...
1
vote
1answer
539 views

Using usb port to communicate with standalone atmega328p circuit

noob here So I managed to get my circuit to be a standalone circuit (as pictured below). I want to use this circuit as an input to a game on my computer. What I want to know is could this micro-usb ...
0
votes
0answers
60 views

How to burn a bootloader to non-bootloaded(clean crystal) ATMEGA328P-PU with USBASP programmer via Avrdudess?

I'm trying to burn bootloader to my clean crystals, atmega328p-pu.For this I use the 16MHZ crystal with two ceramic capacitors and USBASP programmer, on Windows 10 Pro. As program for burning I tried: ...
0
votes
0answers
273 views

Arduino nano with 128x64px OLED freezing

I have an arduino nano, MCP3424 i2C ADC and a 128x64px i2C OLED display. The function is quite basic; the arduino receives information from the ADC and prints it to the screen as described in the code ...
-1
votes
1answer
40 views

What Arduino and shield components are worth recycling?

I'm building up a nice collection of smoked or otherwise bricked Arduino boards. I would like to save bits that might be useful later. I've desoldered a barrel plug to use when I want to separate the ...
0
votes
2answers
2k views

What is difference between ATMEGA32 and ATMEGA328?

I'm new in electronics. Just playing with Arduino boards.I just wanted to program ATMEGA328 micro-controller and use it without Arduino for compact design for my personal hobby project. I found there ...
0
votes
1answer
41 views

Atmega 328P in Arduino

Does anyone know what it means by the Atmega 328p has 131 instructions? And could you give an example of how any one of these 131 instructions look like? Thanks in advance!!
2
votes
2answers
339 views

How to deep sleep ATtiny/ATmega (to run for years with batteries) but still detect a button press?

Question (TL;DR): what is the optimal method to deep sleep (to run an ATtiny45 or ATmega on batteries for 1+ year) but still be able to detect a button press? Is it possible to deep sleep until a ...
0
votes
3answers
71 views

ATmega328P - Problem using timer 2 for tone generation

I'm simply trying to use timer 2 for tone generation and what I get is a very faint and strange tone (almost like its modulated somehow as there is a "pulsing" to it). Here's my simple code: #include ...
0
votes
2answers
860 views

Is the LGT8F328P legal?

Since some months, everyone can buy a board with this IC. It is compatible with the ATMega328 and has some features like 12bit ADC (instead of 10 bit), DAC, unique ID and also 32MHz. But I can't ...
0
votes
1answer
66 views

Is it possible to load both the arduino bootloader and a sketch onto an atmega328p via icsp?

i am familiar with uploading an arduino bootloader onto an atmega328p using another arduino via the arduino IDE. i have also installed software 'sketches' using that process which i believe leaves out ...

1
2 3 4 5
9