Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
33 views

Force TCNT to stay below OCRxA on ATmega328P

I'm using a timer and the TIMERx_COMPA ISR to generate a signal in "the background". This ISR is triggered when the timer reaches a certain value (OCRxA), which in turn can be changed by the user. ...
0
votes
2answers
37 views

Arduino and Solenoid Water Valve

I use Arduino UNO and two SPST Relay (Wemos Mini D1 Relay) to make the reverse polarity circuit. I use this circuit to open and close the Solenoid Water Valve (SWV), which work with 9 to 12 volt. The ...
2
votes
0answers
29 views

What does “Update of OCR1x at” mean in the WGM table of ATMEGA328?

I just finished a reading a couple of online guides on how to use timer registers with pulse width modulation, so I'm still new to its concept. When I looked in the ATMEGA328 specification sheet, I ...
1
vote
1answer
40 views

Arduino New Optiboot Bootloader on custom ATMega328p board, ATMEL Studio and AVRdude [closed]

I am about to ask a kind of complex question due to the number of system parts involved and the system architecture I am planning to use. First of all I have a tiny bit of experience with the Arduino ...
0
votes
0answers
9 views

BLUNO Beetle V1.1 BLE seems defective, Bluno Beetle V1.0 works fine

I have previously had the Bluno beetle V1.0 before which works fine. I have just bought 3 Bluno Beetle V1.1 mc's, but the BLE is not discoverable. I have gone through the same process to update the ...
0
votes
0answers
14 views

Installed configuration won't show up on Board menu

So I was following these instructions on the official site. Download this hardware configuration archive: breadboard-1-6-x.zip, Breadboard1-5-x.zip or Breadboard1-0-x.zip depending on which IDE you ...
0
votes
1answer
47 views

Uploading bootloader to ATMEGA328 P

I have a duemilanove which originally had a 168. I have some ATMEGA328 P chips and I've put one into the duemilanove. I am using a Uno as a programmer for the duemilanove. I am running Arduino 1.8....
1
vote
0answers
38 views

Measuring battery voltage [closed]

I am trying to use this way to measure my battery voltage at least approximately, but I am getting weird results. I am running breadboard atmega328p with internal 8 MHz and powering it from a LiPo ...
0
votes
0answers
40 views

ATMega328 AU bootloader burning issue using Nano

We are trying to burn bootloader into ATMega328P-AU SMD. We have taken the reference of the link and did the same. We checked wire connections and all looks fine and we tried with two chip with two ...
6
votes
2answers
1k views

Run code once after programming

I'm using EEPROM to store project settings non-volatile. After reuploading the sketch to my board (over SPI via ArduinoISP), the EEPROM is reset to full 0xFFs and I have to manually do a "software ...
0
votes
0answers
35 views

Multiple Atmega328p wired communication

I am using multiple ATMEGA328Ps (4 ATMEGA328P) (OR Arduino Unos). The distance between two farthest ATMEGAs is 14 meters (One is Master Device and Other is Node), and other 3 are connected to each ...
0
votes
1answer
39 views

please help with my arduino

My problem is when I run code like this: char directioN; void setup() { Serial.begin(9600) } void loop() { if (Serial.available()) { directioN = Serial.read(); switch (...
0
votes
0answers
15 views

My ArI was using a potentiometer and the system shorted maybe. Do I have to replace the USB interface chip? It doesn't reset also

See I was using a micro analog rotary potentiometer to control a servo. The pot was in a pcb. The 5v output and gnd were connected to arduino from the pot. The third pin and 5v got touched and it got ...
0
votes
0answers
18 views

How can I merge my two scripts: Basketball Timer & Basketball Scorer?

I have a project in arduino, an arcade basketball machine using 4" Single-7-Segment Displays driven by IC 74HC595N. The purpose of my program is to record the score by merging 2 SSDs at the same time ...
0
votes
1answer
48 views

Arduino hangs after some time

I am using Atmega328p with 5V power supply, My Arduino getting hangs [or auto restarts] after some times. I am using libraries: Wire.h CRC32.h EEPROM.h Arduino.h TimerOne.h RtcDS3231.h ...
0
votes
0answers
25 views

Making a ATMega328P-PU and computer communicate but not by standard serial communication

So i have been trying to make a ATMega328P-PU using the Arduino bootloader and a computer communicate the same way brands like Logitech and Razer makes their mouse's and keyboard's communicate with ...
1
vote
0answers
57 views

Arduino Program Memory Ran Out

I have a Arduino sketch I made and I have run out of dynamic memory on my Arduino Nano. How could I possibly reduce the amount of memory the program takes? (I'm not that good at this stuff) P.S: The ...
0
votes
1answer
75 views

error 404 in HTTP GET request with Arduino Uno and ESP8266 using AT commands

when I try to send http get request I get error 404 AT+CIPMTX=1 OK AT+CIPSTART=4,"TCP","alirezaabrhshami.ir",80 4,CONNECT OK AT⸮⸮R5U9⸮⸮b⸮⸮j OK > Recv 47 qytes SEND OK +IPD,4,223;HTTP/1.1 404 Not ...
0
votes
0answers
28 views

Programming an EL Sequencer

I have a EL Sequencer and FTDI 5V breakout board. I have been have been unable to program it. All my attempts get some variation of "programmer is not responding". I was using these instructions as ...
0
votes
1answer
32 views

ATMEGA 328P Standalone on 3.3v controlling a servo

I'd like to use an ATMEGA 328P on standalone mode powered by a 3.3V supply source to control a servo (which is powered by 4 AA batteries, resulting in 6V). My question is: do I have to convert the PWM ...
0
votes
1answer
56 views

NRF51822 ± Arduino Uno / ATmegaXXX?

Hello I want to make a simple home automation project and I'd like to use an arduino uno for prototyping and later a atmega for deployment. I need some sort of a mesh communication method. I was ...
1
vote
2answers
86 views

Arduino write to memory and self shut down (over MOSFET) - An idea help

i would like to ask you for help with design of an circuit. I have and atmega328p, with detection for voltage on its Vin (Vcc). I have made and voltage divider and its output i connected to Analog ...
1
vote
1answer
54 views

Dimmer.h issues with ATmega 128

I am using a ZCD circuit controlling a TRIAC. Now I am using Dimmer library for this purpose. It works fine with ATMega 328 but whenever I try to upload the code in ATMega 128 using Arduino IDE this ...
0
votes
1answer
102 views

Standalone 328P Arduino

I am creating a standalone Arduino using Atmega328P. The circuit is below. However, I'm seeing avrdude: Device signature = 0x000000 error whenever I try to burn the Arduino Uno bootloader. I'm ...
1
vote
1answer
194 views

ESP8266 Software serial to ATmega 328 is not properly working

Thanks in advance.. We are having esp8266-12E chip and Atmega328 connected as follows, ESP 12 pin as Tx,13 pin as Rx && Atmega328 13pin as Rx, 12pin as Tx. Everything works fine, but while ...
0
votes
1answer
77 views

USART, SPI or Bit-Bang for the continuous transfer of bytes without inserted extra bits

I have heard that The SPI hardware introduces a 9th, HIGH bit between bytes USART still uses start and stop bits when in synchronous mode Are both these statements true? Can I modify the built-in ...
0
votes
1answer
69 views

Burning bootloader

I'm using arduino atmega 328p and currently using on custom PCB I programmed using the arduino board and take the IC and migrated to my custom PCB currently the program run well on the arduino board ...
2
votes
3answers
367 views

Atmega328p - Going low power 1.8V using 4Mhz oscillator - Bootloader flash

I would like to use an Atmega328p micro-controller with a 4 Mhz oscillator in order get some low power consumptions. I am using an Arduino board to flash the bootloader into the Atmega. EDIT In ...
0
votes
1answer
71 views

How to upload program to custom arduino board without USB FTDI and making it read only? [duplicate]

If I was to mass produce a microcontroller board I have designed based around the atmega328 (very similar to an arduino uno) but for one embedded task where I want one program only to be stored on it. ...
1
vote
1answer
361 views

How to interface USB to custom Arduino Uno Schematic and programming atmega?

I'm fairly new to designing schematics and working with the atmega on its own and I'm designing an arduino schematic on eagle. Ive gotten to the stage where I need to incorporate a TTL USB interface ...
0
votes
2answers
101 views

freeMemory() function from memoryfree library not returning decreased value in arduino UNO

I burned the code written below, I expect that as we declare the local variable in the loop, freeMemory() function should return decreased value. But it remains constant..! please explain why..? The ...
0
votes
1answer
27 views

MemoryFree library showing Irregular Behaviour..!

I simply burned the code written below but it is showing me irregular behaviour.. as in output's last paragraph, free memory increases after a runtime allocation, how it is possible? The output is ...
3
votes
4answers
146 views

Where in datasheet is the warning about unreliability of reading PINxn?

I use atmega32u4 (but believe it applies to all models). Here is the datasheet. Consider the following C program (I use AVR-GCC 5.4.0): #include <avr/io.h> int main(void) { PORTB |= 1 <&...
0
votes
1answer
115 views

stk500 getsync() attempt 10 of 10 atmega328pu [duplicate]

I've been getting this very common error on my atmega328pu circuit. avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x83 Some things ...
1
vote
1answer
164 views

DHT11 Sensor : Stand-by or Shut down?

I have an ATmega328P monitoring room temperature and humidity. It is enough for me to monitor every 8 seconds. In these 8 seconds, I am putting my Atmega to sleep. Now , I want to know : Does ...
0
votes
1answer
126 views

Accidentally shorted 5V to GND on Arduino Nano, can I reuse the ATmega328p?

I've shorted 5V to GND and the Arduino Nano (CH340 clone) stopped working (power LED light is dimming). The board had a burning smell, and I also checked if other Arduini on the same USB port worked ...
0
votes
3answers
618 views

Can't burn Bootloader on Atmega328P Using Arduino Uno

I'm trying to create an Arduino Uno following the circuit described in the diagram below which I'd based from here. I'd tried this circuit on an Atmega328 PDIP version (with the correct connections ...
0
votes
1answer
72 views

Arduino and AVR Serial Communication over USB

I have a Arduino Uno Rev3 and I would like to use a AVR development toolchain to write a program that performs serial communication over USB. Doing this using the Arduino IDE is fairly simple: void ...
0
votes
1answer
249 views

SIM800C, CPIN: NOT READY (ERROR CODE : +CME ERROR: 10)

I'm using a SIM800C module, and usually it works fine, but lately it has started giving the error "+CPIN: NOT READY" with ERROR CODE : +CME ERROR: 10(SIM NOT INSERTED). As soon as I get this message, ...
-1
votes
3answers
66 views

cant find what is error on my code [closed]

im working on project which include using of motors and a float switch im getting an error message which expected '}' at end of input . i cant find where should i correct it, btw im putting a float ...
1
vote
1answer
67 views

Arduino based IR remote control - Transmission issue

I created a circuit of a 25 key IR remote controller for my RuneAudio device. The device is a standalone ATmega328P-PU running at 3V (2 AAA batteries) with 8 MHz internal clock. The circuit has 5 rows ...
1
vote
1answer
76 views

Which platform is better to debug Arduino memory problems? Linux or Windows?

I am developing a product. I developed every module in the firmware individually. Now I am integrating them but getting memory issues. I am not able to see how the memory is allocated inside the MCU ...
1
vote
2answers
71 views

Powering Atmega328P-Pu externally [closed]

Please I'm new to Arduino and I need assistance. I'm working on a project which makes use of the ultrasonic sensor to make a certain pin high if a certain distance is attained. When I used the USB ...
2
votes
1answer
352 views

Generating 200 kHz pulse on Arduino Uno in normal mode

I need to obtain 200 kHz from Arduino Uno. I am using Timer0. I have configured it to run in normal mode and the Prescaler is set to clk/8 (the clock frequency of Arduino is 16 MHz). TCNT0 ...
0
votes
0answers
230 views

ATmega328p PD0 and PD1 usage

I would like to use pins RXD and TXD (PD0 and PD1 in ATmega328p) as inputs. I am using Arduino Uno to upload a code to my ATmega328p, after that I plug in ATmega to my circuit board. Arduino Uno is ...
1
vote
0answers
80 views

Why does I2C On Nano Fail with LiquidCrystal_I2C library unless Nano runs at 8Mhz?

I have an Arduino Nano (running by default at 16Mhz). I am connecting a 20x4 LCD screen via I2C (using A4 for SDA and A5 for SCL). Here's the very simple code (which was previously only showing black ...
0
votes
0answers
49 views

Is the ATMega328P powerful enough to deal with a lot of SPI data while reading a rotary encoder?

I need to: Output data to a 128x64 screen with ug8lib (via SPI) Keep track of the position of a high-precision rotary encoder (1024p/r) Send about 2 bytes of data up to 120 times per second via an ...
0
votes
0answers
29 views

Problems using Arduino pcb as ISP with Atmel Studio 7

This issue has been bugging me for the past few days! I have learned a lot with my Arduino and the Arduino IDE over the past few years and decided to learn how to make faster, leaner code. I want to ...
0
votes
1answer
60 views

Float magnet switch interrupts atmega328p and RN2483 sends data

It was so easy to my mind but it is really not. I have a float switch which goes high when water is floating. So I connect the switch to INT0 pin of MCU. So when water is not floating everything is OK....
0
votes
1answer
124 views

FTDI and atmega328p-au [closed]

I want to connect an Arduino Pro Mini with ATmega328P so as to drive a SI4463. But I don't know BLK, CTS, DTR should be connected to what pins of ATmega328P. How do I connect this?