Skip to main content

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
0 answers
11 views

I'm designing a PCB with 2 Atmega328-PU. I include a decoupling capacitors and capacitor for the crystal as well. Do you think that I'm missing something? the circuit is here: The idea is put that ...
user23577401's user avatar
0 votes
1 answer
67 views

I run into an issue with querying a uint32_t with an atmega328p master from an attiny85 master. I have put both codes below. I did run the equivalent code for just sending a uint8_t and all works ...
Noel's user avatar
  • 163
-2 votes
2 answers
136 views

a friend of mine gave me broken hw-308 (chinese meter). https://besomi.com/media/catalog/product/t/m/tmet0006-1.jpg Atmega chip was broken so i replaced it with the new one i bought recently. Now i ...
Dawid's user avatar
  • 1
1 vote
1 answer
96 views

Is it possible generate all frequencies between 5000 and 8000Hz, 1Hz in between with an ATmega328? When I create a c-program outside the Arduino IDE to calculate the frequencies with the formula ...
hennep's user avatar
  • 131
-1 votes
1 answer
117 views

I recently got two of these ATmega328P Nano SuperMini USB-C boards but none of them is being recognized by my PC or Mac. I'm using the old bootloader setting in the Arduino IDE 2.3.6, CH340 drivers ...
georgmierau's user avatar
1 vote
2 answers
109 views

The code below for the ATmega328P (Arduino Pro Mini 5V @ 16 MHz) produces a periodic sequence on timer1 pins OC1A and OC1B: #include "Arduino.h" // For Arduino Pro Mini 5V @ 16 MHz // ...
Jan Poppeliers's user avatar
1 vote
0 answers
87 views

I'm new to Arduino development. I use Arduino Nano v3 ATmega328P (Old Bootloader). I assembled 2 small boards, one of which is a transmitter with three buttons, and the second is a receiver with three ...
QuL1ux's user avatar
  • 21
1 vote
2 answers
116 views

I'm trying to get some C code that runs on a PIC18F, working on an Arduino '328P. It uses an 8-bit timer, PWM, and a LUT to generate sine waves. I hope to get it going using Timer2 on a Nano. The PIC ...
Jim Mack's user avatar
  • 269
-1 votes
1 answer
182 views

I am unable to upload any code to my Atmega328PB-MU microcontroller. However I could upload the bootloader just fine. Here is my custom board to upload the bootloader. As you can see I use a adapter ...
Joh's user avatar
  • 121
7 votes
2 answers
3k views

To gain better understanding of both Rust and Arduino (Uno), I'm trying to write direct hardware code for Arduino in Rust. Here's a very simple LED blink example, that I've tried to write. I've made ...
zombiesauce's user avatar
4 votes
1 answer
367 views

I am using an ATmega328PB to run an RF module. When testing sleep mode current consumption, I noticed it was much higher than I expected. I took off all unnecessary components. The only things in the ...
user98055's user avatar
2 votes
1 answer
306 views

I have a 328P (328P-AUR to be specific, [link]), and in the schematic below is how I've implemented it to a PCB: Uploading a program works fine, but I hink there is an issue with the clock source, ...
Boyfinn's user avatar
  • 245
3 votes
1 answer
108 views

When testing / developing a proto type using a barebones board with 328P, I usually add a Serial to TTL adapter, which then allows me to modify and upload code as well as being able to the use Serial ...
Manie Serrao's user avatar
2 votes
1 answer
780 views

So I wrote this code for Arduino Uno: // file qemu.ino void setup() { Serial.begin(9600); } void loop() { Serial.println(millis()); } And then compiled and uploaded it to the real ...
lch361's user avatar
  • 21
3 votes
1 answer
457 views

I have already spent a couple of days by trying to upload a sketch onto my Arduino Uno R3 board and now it's time to give up, so I'm trying to ask some more experienced developers. My hardware and ...
Alexander Perechnev's user avatar
-2 votes
2 answers
95 views

I would like to know about physically passing through a pin in order to get to another. For instance, if I have a sensor on one side of an ATMEGA328P or ESP8266 (Wemos D1 Mini) yet need to connect to ...
jhorv's user avatar
  • 41
1 vote
1 answer
246 views

I am using an ATmega328PB and was looking at Arduino's and others' schematics that use it. All schematics I've found use a serial chip to communicate between USB and TX & RX. However, I do not ...
Acmek's user avatar
  • 13
0 votes
1 answer
290 views

Is there a ATmega328 drop-in replacement with more flash memory? Needs to be 28 pin DIL to fit the socket. Alternatively, is there a board that has the exact dimensions and pins as an Arduino UNO, but ...
Björn Morén's user avatar
0 votes
4 answers
323 views

I'm developing an industrial project and my programming knowledge is limited to arduino. I'm planning to use either Atmega328 or STM32F103C8T6 chip in my pcb and to program it using arduino IDE. My ...
vignesh vignesh's user avatar
4 votes
1 answer
391 views

I am trying to fix the problem of communicating between two nRF24L01+ together, one connected to an Arduino Uno and another connected to an ATmega328PU with an 8 MHz external crystal. The bootloader ...
Jon depoy's user avatar
2 votes
2 answers
562 views

I want to build my first barebones AVR circuit. I plan on NOT having a RESET button. For this reason, is it valid if I connect the ATMEGA's RESET pin to Vcc directly? What I mean by this, is that in ...
user1584421's user avatar
  • 1,435
1 vote
0 answers
49 views

I am interested in hooking up a nano to an RC receiver. I want the nano to mirror the PWM input and output on another pin when a specific command is given via serial. I also want to send the received ...
FourierFlux's user avatar
1 vote
2 answers
403 views

I wanted to try to interface the pcf7991at with arduino, I assembled the pcb containing the pcf7991at following the diagram shown in the datasheet. I saw that a frequency of 125khz must go on the CLK ...
Gastone Krankenwagen's user avatar
-1 votes
2 answers
164 views

When I program atmega328 PU on breadboard,vwhat programmer do I have to use and what arduino board type I have to choose? I am trying this with ftdi converter I have already done the connections and ...
Alexis Tsetsonis's user avatar
1 vote
1 answer
1k views

I have a program that communicate between a esp8266 and a atmega328 using Serial, the esp8266 will connect to a MQTT server running on local network, and publish/subscribe to some topics. In the ...
J. C. Stark's user avatar
0 votes
1 answer
781 views

I was successfully compiling sketches and uploading to various MCUs, including the ATTiny88. Suddenly the IDE quit compiling and complained of various missing compilers. I found and corrected an ...
Leslie Rhorer's user avatar
3 votes
1 answer
369 views

I am using ENC28J60 and EthernetENC library to connect an Arduino UNO with ATmega328 to the network. Everything works fine within the local network, but outside of it, I cannot ping the device. What ...
ArgusLibovski's user avatar
1 vote
0 answers
69 views

I wanted to make a simple led on/off program using USART interface. When the code doesn't have any functions other than main it runs fine, however Arduino keeps resetting when one is included. At this ...
L1RG0's user avatar
  • 19
0 votes
1 answer
165 views

I have been given to understand the ATTiny88 is very similar to the Arduino Uno / ATMega328 MCU. There does not seem to be a tag for the ATTiny88, so that is why I chose the tags I did. I do not ...
Leslie Rhorer's user avatar
1 vote
2 answers
645 views

I'm using the hardware timers on the 328 for phase angle control of a triac with zero-crossing detection. I am encountering some strange behavior with the "Set on Compare Match" feature not ...
saustinp's user avatar
0 votes
1 answer
989 views

How precisely can an Arduino nano be timed? The project I am working on needs two Arduino nano to work synchronously. Arduino one have to activate a relay after 2700 sec and Arduino two have to ...
Lawliet's user avatar
  • 183
0 votes
2 answers
1k views

I have an Arduino UNO and an ESP32 that need to communicate to each other using SoftwareSerial. The problem I am coming across is that when I call readString and print it out using Serial, it will not ...
Primitive's user avatar
0 votes
2 answers
753 views

Currently I am using avrdude and I'm programming my atmega328p chip via the spi pins by pulling the RESET pin low (spidev programmer). In my project I'm using predominantly i2c and this the only place ...
php_nub_qq's user avatar
2 votes
1 answer
208 views

The code below runs on an Arduino Pro Mini (8MHz 328p) sending temperature readings using an inexpensive ASK transmitter. I use OneWire to read the DS18B20s, and RadioHead to manage the radio. The ...
Eric Nelson's user avatar
-1 votes
2 answers
3k views

I need to upload code on atmega328 wihout bootloader https://github.com/EasyOne2030/test but see Sketch uses 33218 bytes (102%) of program storage space. Maximum is 32256 bytes ?
one next's user avatar
0 votes
0 answers
62 views

Given: arduino nano (atmega328P) with nrf24l01. What am I trying to do: Measure battery drain. What am I doing for that. So I made a small research of how could I measure the battery voltage without ...
user10160994's user avatar
0 votes
1 answer
140 views

good afternoon, I am making a 7x10 led matrix in which I use a CD4017 to handle the 7 rows and 2 cascaded shift registers to handle the 10 columns. I first tried a programming to turn on my entire led ...
Lucio Mazzini's user avatar
1 vote
2 answers
2k views

I am new to C++ & I need to call functions of one class from another class. And so that the classes do not know anything about each other. How to do it in Arduino environment? class Encoder { ...
Andre's user avatar
  • 27
-2 votes
1 answer
334 views

I have a 32.768 kHz signal at the ATmega328P input. I need to get 2 signals from this signal: 1Hz and 32Hz. How well will it work? How to do this with a ATmega328P Timer/Counter? What gain will the ...
Andre's user avatar
  • 27
0 votes
0 answers
65 views

What is the purpose of C2 on this schematic below? How does it work when the microcontroller is being programmed?
RGB Engineer's user avatar
1 vote
0 answers
361 views

I've old Nanos that to program (upload) with Arduino IDE I have to select "ATMEGA328P Old Bootloader". The programming is via the standard Nano USB cable, and I need the CH340 driver under ...
pathfinder's user avatar
0 votes
2 answers
2k views

I want to get an ATMega328 off of the Digi-Key, and use it like an Arduino (without requiring the whole Arduino board). When it comes to programming, do I need to do anything special like burn the ...
RGB Engineer's user avatar
0 votes
0 answers
197 views

I previously succeed in uploading the code to DFRDuino Nano (Arduino Nano Compatible) (with wrong digital pins) but after changing pin I cannot upload it again. From the document, I changed back the ...
CoffeePlease's user avatar
3 votes
1 answer
221 views

I am using a custom Arduino Nano compatible board with an Atmel 328P. I am externally changing the values applied to several pins on PORTB. I expect to be able to read the values of these pins (low ...
Joe's user avatar
  • 33
0 votes
2 answers
2k views

The datasheet for the ATmega328P contains this table, which describes bits 4 and 5 of EECR: EEPM1 EEPM0 Programming Time Operation 0 0 3.4ms Erase and write in one operation (atomic operation) 0 1 1....
glibg10b's user avatar
  • 317
1 vote
2 answers
121 views

I tried to do a simple program using the ATmega16 microcontroller, the program is to toggle two LEDs the first one by using timer0 interrupt and the other using timer2 interrupt.
Ebraheem Ali Abd Al-Maksod's user avatar
0 votes
0 answers
86 views

I want to connect two HC-05 modules, one master and one slave. So to that I need to access 'AT Commands'. Theoretically, I just needed to upload an empty code, and then connect the module to the ...
Bikke21's user avatar
1 vote
1 answer
263 views

I want to use Arduino's sleep and wakeup functionality but have hit a roadblock and can't seem to get past it. As I am just prototyping for a final system, I cannot use the LowPower library to ...
phizaics's user avatar
1 vote
0 answers
168 views

I have been working on a project that I program using the ATMEGA 328p inserted into an Arduino Uno, and then remove it to put it on my breadboard. I now have realized how inadvisable this is, since I ...
Jenna Hebert's user avatar
2 votes
1 answer
661 views

I'm working on a battery powered Arduino Nano project. I really need it to save power for hours on end, so I turned to Arduino LowPower Library and avr/sleep.h to do the job. However, whatever I do, ...
Santanor's user avatar
  • 123

1
2 3 4 5
11