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
1 answer
1k 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 ...
Dharmendra Savaliya's user avatar
1 vote
1 answer
132 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 ...
JustAnotherBitcoin's user avatar
0 votes
1 answer
2k 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 ...
alireza's user avatar
  • 45
1 vote
0 answers
65 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 ...
Xyphon's user avatar
  • 11
0 votes
1 answer
215 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 ...
D. Tiglea's user avatar
0 votes
1 answer
257 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 ...
user avatar
1 vote
2 answers
549 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 ...
Vasekdvor's user avatar
1 vote
1 answer
196 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 ...
TechCreogen's user avatar
0 votes
2 answers
387 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 ...
noobiejp's user avatar
  • 115
1 vote
1 answer
2k 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 ...
Learner's user avatar
  • 113
0 votes
1 answer
270 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 ...
Alexander M's user avatar
0 votes
1 answer
130 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 ...
Asrul Asyraff's user avatar
3 votes
3 answers
2k 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 ...
UserK's user avatar
  • 559
0 votes
1 answer
248 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. ...
John_Smith's user avatar
1 vote
1 answer
2k 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 ...
John_Smith's user avatar
0 votes
2 answers
1k 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 ...
bandejiya's user avatar
  • 307
0 votes
1 answer
117 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 ...
bandejiya's user avatar
  • 307
5 votes
4 answers
210 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 <&...
Igor Liferenko's user avatar
1 vote
0 answers
293 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 ...
teepers's user avatar
  • 11
1 vote
1 answer
1k 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 ...
Madhuchhanda Mandal's user avatar
0 votes
1 answer
787 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 ...
Emerson's user avatar
  • 105
0 votes
3 answers
3k 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 ...
noobiejp's user avatar
  • 115
1 vote
1 answer
582 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 ...
Confused Programmer's user avatar
0 votes
2 answers
3k 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, ...
bandejiya's user avatar
  • 307
0 votes
2 answers
87 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 ...
Asrul Asyraff's user avatar
1 vote
1 answer
341 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 ...
Parampreet Singh's user avatar
2 votes
1 answer
99 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 ...
bandejiya's user avatar
  • 307
2 votes
2 answers
954 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 ...
user169847's user avatar
2 votes
1 answer
2k 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 ...
Prabhat Narang's user avatar
1 vote
0 answers
327 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 ...
raddevus's user avatar
  • 402
1 vote
0 answers
103 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 ...
user2950509's user avatar
0 votes
1 answer
119 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....
alexisicte's user avatar
0 votes
1 answer
1k 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?
Enhao Lan's user avatar
  • 123
0 votes
1 answer
55 views

Using a channel relay

im using 4 channel relay to switch the motor pump. but when the arduino output is high and i check first with led. the led behavior were high too but when i attached to the relay input IN1, the ...
Asrul Asyraff's user avatar
0 votes
2 answers
884 views

Will analog servo work with Arduino servo library?

I ordered some cheap servos from Amazon before I noticed that there seemed to be two different kinds (digital & analog). Mine are Tower Pro SG90 Analog (http://www.towerpro.com.tw/product/sg90-...
raddevus's user avatar
  • 402
1 vote
1 answer
1k views

Timer2 Compare Interrupt not working as expected

To get this out of the way first: I have already looked at "Timer2 does not work as it should" and "Timer2 “Clear OC2B on Compare Match” not working as expected in CTC mode" but have not found the ...
Lithimlin's user avatar
  • 145
-1 votes
1 answer
1k views

transmit a sequence of bit using arduino uno [closed]

How do i code to transmit a sequence of bit using arduino uno?My project is about a transmitter and a receiver.Arduino as the transmitter and an application as the receiver.Light sensor will detect ...
Nyssa's user avatar
  • 15
0 votes
1 answer
462 views

How reliable is Arduino Uno Serial, via USB (ATmega16U2), CRC needed?

I have a question about the reliability of Serial communication, i.e. in particular if I need to implement CRC/checksum/ECC because of bit transmission errors? I I however think there is no general ...
humanityANDpeace's user avatar
1 vote
1 answer
56 views

How to get location of the hand indoors

I made a glove that tracks the positions of the fingers, but I don't know how to get the location of the hand relative to the person using them. Any suggestions? It should be quite accurate but I ...
T3neppa's user avatar
  • 11
1 vote
0 answers
644 views

Use PWM to play notes on ATMega328

I have old speaker which I want to use to play sound. I chose to use PWM mode on ATMega328 (which is in turn on Arduino Uno R3 board) in order to do it. For signal on the speaker I chose rectangular ...
LRDPRDX's user avatar
  • 183
0 votes
1 answer
84 views

Problem in bootloading 328p using Arduino as ISP. Please help me in figuring out the problem.I have uploaded the verbose below

Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Uno" C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -...
Pe Dro's user avatar
  • 103
-1 votes
3 answers
2k views

ATMega328P receiver and transmitter pins

I am trying to connect Bluetooth, GSM and GPS to the ATMega328P, but since it has only 1 RX and 1 TX, can I use the digital pins of ATMega328P as RX/TX pins.
cris's user avatar
  • 19
0 votes
1 answer
303 views

Arduino ISP external power

I want to program an atmega328p-pu via my arduino uno as ISP in a circuit. I omitted my connected sensors, LCD, etc in the schematic to keep it simple. When I power the circuit via a 5V power supply ...
idkfa's user avatar
  • 140
1 vote
1 answer
907 views

ATmega328 is not recognized by software

I installed the required drivers for the board. But I cannot still upload a program to the board. It says that avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53 Copyright (c) 2000-...
punsisi kiridana's user avatar
0 votes
1 answer
363 views

Burn hex with optiLoader

Can optiLoader be used to burn custom hex? For example, there's hex representation stored in optiLoader.ino in image_328, if that value is replaced with content of my pre-compiled hex, should that ...
ShP's user avatar
  • 143
4 votes
1 answer
8k views

Is there a way to disable modules like ADC without a sleep mode?

I'm working on a binary watch project. I want my circuit to live off of batteries for as long as possible, so I want to decrease the power consumption of my chip. I'm using a barebones ATmega328P-PU ...
thallia's user avatar
  • 43
0 votes
3 answers
774 views

Switch case does not work after booting system

int value1; int value2; int runs1 = 0; int runs2 = 0; #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x3F, 16, 2); int inPin = 6; int val = 0; int push_count = 0; ...
idkfa's user avatar
  • 140
0 votes
2 answers
302 views

Getting error 32 in multi-master I2C sketch with library https://github.com/rambo/I2C

I am developing a multi-master scenario sketch with the https://github.com/rambo/I2C library, because this library will handle multi-master data collisions. I created a setup with two Arduino nano's ...
mvermand's user avatar
  • 359
9 votes
1 answer
2k views

Why connect a diode between the reset pin of Arduino and 555 timer?

I am trying to create a watchdog timer using 555 IC and I am following this. I do not understand why a 1N4148 diode is connected between the reset pin of Arduino and the output of the 555 timer. As ...
bukke hari prasad's user avatar
2 votes
2 answers
301 views

Write a condition to execute 2 switch-case functions?

I'm new to programming and using Arduino products, and was wondering if someone wouldn't mind assisting me with a project I'm trying to tackle? If you review my code below, I have 3 conditions within ...
Andrew's user avatar
  • 21

1
3 4
5
6 7
10