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
1answer
37 views

LED does not blink - Arduino UNO+WiFi R3 ATmega328P+ESP8266 board

As I am learning the Arduino coding, I want to see if my program can turn on the LED light. I have tried all the things, but the code does not start the LED light I have installed on the board. The ...
1
vote
1answer
18 views

Nrf24l01 smd pcb placement tips

I am working on pcb design with nrf24l01 smd. I have read somewhere that nrf24l01 module has problem while communication when it is placed with its antenna within the pcb. I want my module to be ...
1
vote
1answer
27 views

AVRdude does not read the FUSE byte values correctly

I am exploring the ATmega328p MCU via a standard Arduino UNO, with the help of avr-gcc toolchain and AVRdude (All in the WINAVR package). I have successfully programmed the board a few times with it. ...
0
votes
1answer
40 views

Atmega 328p at 3.3v : Internal vs external oscillator

I am currently working on a pcb that uses smd atmega 328p (au). I will be powering it through a lipo battery and a ldo regulator for 3.3v input. I am using the multiwii flight controller code. I know ...
0
votes
0answers
32 views

Optiboot not writing Sketch

Disclaimer, I'm very new to all the embedded malarky. Hi, I have a custom made board with an ATMega328 U-TH on it. the board came loaded with a version of optiboot and a demo sketch which was loaded ...
1
vote
0answers
33 views

Arduino code crashing

I am writing an SIM900A + arduino(Arduino UNO with Atmega 328P) code to just send the current time stamp every 20 minutes. The code keeps crashing in the SendMessage() function as the setup prints ...
0
votes
1answer
37 views

Atmega 328P U crash on 5V/1A [closed]

Atmega 328PU crash on 5v/1A. Why? It works on 5V/400ma but when i switch it to 5V/1A power it crash. Any idea or solution for this?
1
vote
0answers
30 views

About controlling led using push button using ATmega328p

I am using an ATMega328P and I want to illuminate an LED connected to PORTB according to an input (with pull up resistor) from PORTD. In the same program, I generate phase-correct PWM and take output ...
0
votes
2answers
52 views

Can I use the microchip of Arduino Uno as a standalone microcontroller

I want use the ATmega328P chip of the Arduino Uno board as a standalone device. Is that possible? Which pins are which on the Arduino board and the ATmega328P? Do I need any external components?
0
votes
0answers
26 views

Cannot program ATMEGA328PU after burning bootloader with internal clock

I have build a couple of boards that have an ATMEGA328P-AU (the 32 pin MLF, as used on the Arduino Pro Mini). If I burn a bootloader via SPI to use an external 8MHz clock, I can then use the Arduino ...
1
vote
0answers
25 views

SD card initialize and fails when date changed

i am making a project using Arduino Uno that display data on 7 seg display which stored in SD card as day by day. when i make power ON to device then SD card initialization done & data shows ...
1
vote
1answer
62 views

Programming 328PB from Arduino IDE using Atmel-ICE to ICSP port

Updated question. The original question was based on using 'Upload' from the Arduino IDE, instead of 'Upload Using Programmer' under 'Sketch'. The problem in getting the Atmel-ICE to work with ...
2
votes
1answer
35 views

Can Arduino uno adjust input square wave duty, phase and frequency with just timer-counter?

Requirement: I have input 4KHz pulse input Divide it's frequency in half Arbitrarily adjust phase Arbitrarily adjust duty Out put the modified pulse My solution (CPU): uint8_t cnt = 0; uint16_t t1 = ...
0
votes
2answers
75 views

Atmega328 and ADXL335 - is the right choice for vibration analysis?

I'm planning to use the ATMEGA328 and the ADXL335 accelerometer to monitor the bearing and gears vibration of a industrial extractor that works at maximum speed of 3000rpm at 380VAC - 50Hz . The main ...
0
votes
1answer
45 views

Problem with sending IR with at ATMega328P-PU

I have a sketch that sends an IR code every second. It works fine (the correct code is received by my receiving Arduino next to it) on the Arduino but when I try to move the sketch to an ATMega328P-PU,...
0
votes
1answer
100 views

avrdude fuse error when programming ATMEGA328 without crystal

I built several boards with an ATMEGA328 and no crystal a couple of years ago. I programmed them successfully with a bootloader using usbasp, and with a sketch using the Arduino serial interface. I ...
1
vote
0answers
23 views

IRremote sending only works once with Arduino Nano

I am trying to control a receiver, wich is not working. I believe i have to send the code at least three times... but after the first time the IR Led stays off. I am using the Arduino Nano with the ...
1
vote
0answers
52 views

Trying to use a gyro sensor and having issues

My setup is Arduino Mega. I have a gyro sensor that I'm trying to use to measure the acceleration or G force in X axis (forward movement). So far I'm trying to figure a way to use the value of Acc or ...
-1
votes
2answers
57 views

What processor can I replace on behalf of ATMEGA328P, to get more processing power for machine learning in UNO

I wanted to do a machine learning project in Arduino UNO R3. But I came to know that the processor(ATMEGA328P) isn't capable of supporting the processing power needed for machine learning. So is there ...
1
vote
1answer
135 views

Replacing the IC (atmega328) if lifespan has been arrive

Consider if the lifespan of atmega328 has been wear out. It said on datasheet of atmega how many times we can upload sketch about 10.000times (cmiiw), should i change the arduino or only the ...
6
votes
5answers
327 views

How do I convert Arduino to an ATmega328P-based project?

Actually am new to this world and want to make embedded systems as my hobby kindly excuse me if it's a silly clarification, Let me brief you about the question i asked, I have an Arduino board where I ...
0
votes
1answer
41 views

Difference between FreeRTOS libary (AVR_ATmega328PB_Xplained_mini_GCC) Versus FreeRTOS compatible for Arduino boards from Richard barrey

I am researching about different IoT development boards and found that espressif uses IDF framework. When looked at the source code it uses FreeRTOS libraries. I have Arduino Uno and i wanted to use ...
2
votes
0answers
88 views

Still getting “stk500_recv(): programmer is not responding” while uploading to bare ATmega328P

SOLVED! See bottom. I know this question has been asked a lot (believe me, I've been Googling for solutions for 3 days, and have come across many posts on SE), but none of the posts I've found have ...
0
votes
3answers
63 views

Why does my 23,032 byte Arduino sketch take 36.32 sec to upload via ISP to an Atmega328p on a breadboard w/code verification disabled?

"Sketch uses 23032 bytes (71%) of program storage space. Maximum is 32256 bytes. Global variables use 1342 bytes (65%) of dynamic memory, leaving 706 bytes for local variables. Maximum is 2048 ...
2
votes
1answer
45 views

What are a few good ways to connect multiple I2C busses?

I have an issue with a project. I have a backplane with an Atmega328P based microcontroller controlling an I2C bus with multiple peripheral devices. One such peripheral is a removable card with ...
1
vote
1answer
98 views

Standalone ATmega328P stops responding when RX is connected

I have followed this demo and have set up a standalone ATmega328P being programmed from a Raspberry Pi via the SPI lines. I have also added a 16 MHz crystal with 22 pF capacitors, as well as I have ...
0
votes
0answers
34 views

Uploading to standalone atmega using UNO as ISP

I am following this procedure to upload a sketch to a standalone atmega328p, without using a bootloader, with an Arduino UNO as ISP. It is my understanding that I first have to "burn the ...
1
vote
1answer
76 views

Standalone ATmega clock continuous lifetime

Here I have made a standalone ATmega328p clock without any RTC module using the breadboard ATmega328p , LCD I2C , and some buttons which I would like to turn on for atleast an year (supposed to be ...
0
votes
0answers
46 views

Possible short circuit

Hello i have made a PCB with atmega328p (arduino bootloader) and arduino sketch this circuit is designed to control 12v leds using transistors here is the full schematic The problem is when powering ...
0
votes
0answers
55 views

device signature 0x000000 when burning bootloader

I receive this message: "device signature 0x000000" when a try to burn the bootloader on a atmega328p-au (SMD) inserted on PCB i am using arduino uno as isp i already uploaded the ArduinoISP ...
1
vote
0answers
45 views

Automatic water pump Trigger System - I need my code FIXED

int out = LED_BUILTIN; int strt = 3; int stp = 9; void setup() { pinMode(out,OUTPUT); pinMode(strt,INPUT); pinMode(stp,INPUT); } void loop() { while(true) { if(digitalRead(strt) == LOW) ...
1
vote
0answers
33 views

How can I use Arduino Analog Uno pins as Digital pins? [duplicate]

How can I use Arduino Uno Analog Pins as Digital pins, So that I can Attach more components like sensors to the Arduino? My 13 pins are preoccupied and I want more.
1
vote
2answers
107 views

Using Arduino UNO as FTDI

so , just bought some pre-bootloaded ATmega328(p/pu) to which I need to upload sketches on a breadboard using uno TX and RX pin as FTDI Here is what I am to do. I connected Uno GND and Reset . ...
1
vote
1answer
152 views

Is it possible to upload and run code from EEPROM during boot time?

I am having problems while writing custom bootloader, so that it uploads code from EEPROM (for now internal, as I have no external memory in my hands) and writes into flash. After ~2 weeks of ...
2
votes
2answers
70 views

Can the atmega328 return remainder during integer division?

When I write code like this: int a = 7 int b = 2 int c = a/b int r = a%b Does the chip use the remainder while calculating c or does it redo the entire calculation?
8
votes
3answers
242 views

Measuring li-ion that arduino is running from

I am using a 5v Arduino pro mini (with regulator and power led removed). I have been reading how to accurately measure Li-ion batteries when powering from the same battery you are trying to measure ...
1
vote
1answer
35 views

DIY Arduino with USB port

I am planing on making Arduino from scratch. I found many examples on internet, but they all need another Arduino for programming. How can I make Arduino with USB interface for programming and serial ...
0
votes
0answers
35 views

How can I program my self made Arduino board using USB to TTL converter?

Recently I got a coupon for JLCPCB which was 100% discount so, I designed my 10 Arduino board specially for my needs and ordered it from JLC PCB. The schematic of the board is given. At the time ...
3
votes
1answer
209 views

How to burn the bootloader and upload sketches on ATmega328P U (specifically this model)?

Recently I started to learn embedded electronics and C/C++ and for a couple of days I tried and I am still trying to burn a new ATMega328P U bought from Aliexpress. From what I know new ATMega328P's ...
0
votes
3answers
64 views

ATMega328 functions, but will not output to any pins

Problem: ATMega328 Refuses to digitalWrite() to any pins, I can upload and run sketches using the board UNO from the ide on the 328 and can confirm it is working using the serial monitor (see code). I ...
1
vote
1answer
219 views

How to upload a sketch to an atmega328 via FTDI FT232RL UART and Arduino IDE?

I have a sparkfun AVR Pocket Programmer and have burned the bootloader and uploaded programs using "upload using programmer" via USBtinyISP. It works fantastic. I have a sparkfun FTDI Basic (...
0
votes
0answers
97 views

Arduino Wont Run Program at 4 Mhz

I want my Arduino Nano to consume as little power as possible, so I have been lowering the clock frequency with CLKPR from the default 16 MhZ speed. I successfully ran the program at 8 Mhz by setting ...
3
votes
1answer
129 views

Atmega328 and 4Digit 7 Segment ghost blinking!

I hooked up 4 7Seg leds (CC) with NPN transistors on the cathode of each digit. I am using 74HC595 shift register connected in the circuit in a pretty common fashion. The code I am running is the ...
1
vote
0answers
54 views

avrdude not in sync

So this uno was working before, now i can't upload anything, can't even burn the bootloader. Using another arduino as isp does not work. It always says avrdude: stk500_recv(): programmer is not ...
2
votes
1answer
45 views

Is it possible to detach an interrupt for a certain ammount of time

Hardware: Arduino Uno Software Version: 1.8.13 My sketch has an interrupt service routine that triggers with the rising edge of digital pin 2. What I want to do now is detaching the interrupt as soon ...
1
vote
2answers
96 views

How to convert my Arduino setup to a PIC setup?

I have an arduino setup with LCD, RTC, EEPROM, Reed Switch, AC/DC Buck Converter, 4X4 Keypad. What PIC IC will let me connect with all these(40 Pins), and yet accept Arduino Code. I don't want to ...
0
votes
2answers
123 views

Using different processors when it comes to arduino

I decided to learn Arduino in this quarantine so I am still a newbie when it comes to micro controllers. Basically I been doing all my projects based on the ATMEGA328P-PU: I even converted my ...
0
votes
0answers
87 views

http request with the A6 gsm module

I have been trying to implement a simple HTTP get request with an A6 GSM module, and am finding it very difficult, i couldn't get any useful docs or tutorial online to guide me through, all i could ...
0
votes
1answer
37 views

Weird effect of AVR C on USB-serial communication

I recently decided to learn direct port manipulation instead of builtin arduino routines. First I tried this piece of code void setup() { pinMode(13, OUTPUT); Serial.begin(9600); } void loop() { ...
0
votes
1answer
301 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/...

1
2 3 4 5
9