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.
509 questions
0
votes
1
answer
48
views
Send uint32_t over i2c from attiny85 slave to atmega328p master
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 ...
-2
votes
2
answers
117
views
Trying to program atmega328p-an via arduino leonardo isp
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 ...
1
vote
1
answer
81
views
Generate all frequencies between 5 and 8 kHz in steps of 1Hz
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 ...
-1
votes
1
answer
98
views
Reasons for an ATmega328P Nano SuperMini USB-C board not being recognized by a PC/Mac? [closed]
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 ...
1
vote
2
answers
97
views
Unwanted toggle on OC1A
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
// ...
1
vote
0
answers
78
views
FS1000A transmitter and MX-RM-5V receiver not working
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 ...
1
vote
2
answers
100
views
Translating PIC PWM settings to ATMega328P
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 ...
-1
votes
1
answer
153
views
Unable to upload code Atmega328PB-MU
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 ...
7
votes
2
answers
3k
views
Finite loop runs infinitely
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 ...
4
votes
1
answer
329
views
ATmega328PB Sleep Mode Current Consumption
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 ...
2
votes
1
answer
290
views
Hardware serial baudrate inconsistent between Arduino nano and standalone 328P
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, ...
3
votes
1
answer
89
views
Is it possible to use an already working Barebones (328P) via FTDI to load a bootloader onto another 328P?
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 ...
2
votes
1
answer
728
views
Emulating Arduino Uno with QEMU: interrupts do not work
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 ...
3
votes
1
answer
417
views
I can't upload my sketch to Arduino Uno using avrdude
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 ...
-2
votes
2
answers
87
views
Physically passing through a pin to access another [closed]
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 ...