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.

learn more… | top users | synonyms

1
vote
1answer
17 views

Use Arduino Yun Shield as ISP for bootloaded ATMega328-PU

My question is how do I replace the Aarduino Uuno board in this circuit: ...With an Arduino Yun shield? I can setup the hardware - ICSP configuration is easy enough - but how do I go about using the ...
-1
votes
0answers
38 views

I am trying to burn bootloader on a new ATmega328 (new from the tube). But I get the following errors,

The following are the errors while burning the Boot loader, Arduino: 1.6.10 (Linux), Board: "Arduino/Genuino Uno" avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x15 avrdude: ...
2
votes
1answer
30 views

Arduino mini pro as ISP for Atmega329P-PU serial monitor failing

After trying a lot of tutorials and manuals around the web including at least 20 solutions here on StackExchange, I don't know what to try anymore. My goal is to write a message in the serial monitor ...
0
votes
1answer
32 views

Can I connect a signal generated with the Timer/Counter, with an analog pin in the same board?

my situation is the following: I been learning how to program the timer/counter modules of the arduino using registers (more specifically a quadrature encoder simulator). The problem is that it is not ...
0
votes
1answer
47 views

Error while installing bootloader ATmega328

I'm trying to install a bootloader on my ATmega328P-PU. I'm trying to install it from Arduino Uno (not original). I can install all sketches. After I click "Burn bootloader" I get the following error: ...
-1
votes
1answer
62 views

DIY Arduino technical difficulties

I followed this ArduinoToBreadboard and I just added a 5V regulator just to be on the safe side. So my questions are: When I connect a Nokia LCD 5110 to the DIY arduino, nothing really happens but ...
0
votes
1answer
17 views

How can I determine how many bytes an I2C master read from my Arduino acting as I2C slave?

I have an Atmega328 programmed using the Arduino software and libraries (but is standalone on on a board in the TSOP package) without bootloader and with ISP programming). I am using the Wire library ...
0
votes
0answers
54 views

How To Generate Preamble bits using Arduino Uno

How to transmit 125Khz signal using Arduino Uno. It should have a carrier burst,seperation bit,Preamble bits and manchester encoding pattern as attached in the picture. How do I program this in ...
0
votes
0answers
34 views

SOLVED - Different behaviour during bootloader burning

I managed to solve this problem (in my case), but feel free to comment or to provide different answers. I also included solution that works for me at the end of this post. I have ATMega328p hooked up ...
2
votes
0answers
39 views

Issues graduating to AVR-C

I'm trying to make the transition from coding in the arduino language to AVR-C, but I'm having some issues with my microcontrollers. I don't have an ISP, so I'm using one of my Arudino UNOs with the ...
-2
votes
1answer
27 views

can i unplug my Arduino project when i'm done installing the libraries and it still work the way it did when it is plugged in

can i unplug my Arduino project when i'm done installing the libraries and it still work the way it did when it is plugged in
0
votes
0answers
26 views

Atmega328P and Arduino Studio and Pololu AVR - not working

I have standalone ATMega328p and I'm using external 16MHz oscillator, I hooked up and I triple checked my connections for Pololu AVR programmer and I make sure that I select a proper programmer \ ...
0
votes
1answer
38 views

Atmega328 in low-power mode

Is there any schematic how atmega328 chip needs to be hooked up together with hc-06 and still to be able to go into a low-power mode, and to be switched back to normal mode?
0
votes
1answer
21 views

Atmega328p - PCB ISP pins for bootloader and sketch upload

I want to design my PCB with Atmega328p chip on it and I want to be able to burn Bootloader and sketch after that while everything is soldered on the PCB. So my question is, what would be the best way ...
0
votes
1answer
48 views

Using two software serial - two UART

I have ATMega328p chip, and I have HC-06 on pin A5, A4 (RX, TX) and I have another device on pin 10, 9 (RX,TX). I want to be able to send some command on BT via Bluetooth Terminal and pass raw (...
0
votes
2answers
296 views

SIM808 module GSM working fine,GPS not working (No GPS ready message on power on)

I powered on my SIM808 module. It showed me following output RDY +CFUN: 1 +CPIN: READY Call Ready SMS Ready It supposed to show "GPS ready also" I sent AT command and return ok. but AT+CGPSPWR=? ...
4
votes
1answer
42 views

Cheapest way to change digital output source

Powering at 5 volts, atmega328 output ~4.7 volts. I need to output between 12 and 24 volts @ 2 amp. I'm currently using relay but they are costly. Is there a way to do it with transistors or any thing ...
0
votes
1answer
44 views

Atmega328p clock and safe operation zone

im not used to write in english but i hope you guys can understand. I have some doubts about using the arduino pro mini 3v3@8Mhz I know its possible to change the clock to 1 MHz with the fuses ...
0
votes
2answers
48 views

Relay switching problem with ATmega328P + 10 relays

I am trying to switch ON/OFF 10 relays connected to ATmega328P via Bluetooth HC-06 module. The problem I am facing is that when I try to Switch ON more than 3-4 relays, some of the previously ON ...
0
votes
1answer
31 views

Is it possible to reprogram an atMega328 chip inside of a pcb?

I have already soldered the atMega chip with instructions onto the perfboard, and I may need to make changes to it. Is it possible to reprogram it without taking it out of the PCB?
1
vote
1answer
64 views

Unable to replicate Arduino code into ATmega8 code

I am trying to replicate an LTC Audio Decoder code from Arduino Uno into AVR ATmega8 which I got from here. My Arduino Uno code is working great. Here is my Arduino Uno code: #define one_time_max ...
0
votes
1answer
115 views

Standalone Arduino with ATMEGA328P / Serial working, but serial programming not (only once after buning bootloader)

For my master thesis I've designed a board with an ATMEGA328P-AU as micro controller. As I want to use some libraries and I like the simplicity, I want to use "Arduino" to program it. Everything ...
0
votes
1answer
100 views

Arduino crashing and rebooting

I have recently written a program which is supposed to change the duty-cycle to keep the feedback voltage measured on A0, A1 constant. The problem is that the Arduino will start crashing at pretty ...
0
votes
0answers
39 views

Arduino on a breadboard, single bootloader/uploader circuit possible?

I would like to know if my intuition is correct that two circuits can be tied to the same ATMega, provided they don't use the same pins. I would like to make a single shield with a dip socket which ...
0
votes
1answer
63 views

Porting ATMega8 AVR based program to Intel Curie Processor

I'm currently trying to port a program called 'ArduinoUSBLinker' to work on my Arduino 101 (which has an Intel Curie CPU instead of the standard ATMega CPU). The program is used to flash ESCs without ...
0
votes
1answer
53 views

What happens if I draw too much current from ATMEGA IO pin?

I revisited an older device that I made and discovered, that I had an 8 Ohm speaker connected directly to ground and an IO pin of an Atmega328P. According to my calculation that means that the pin ...
0
votes
0answers
63 views

Unable to reset arduino with RESET pin

I am using a custom built arduino UNO for some personal projects. I am using a custom optiboot bootloader given by Nick in this post. This was done to prevent the three LED flashes on digital pin 13. ...
-1
votes
2answers
45 views

Can you send binary data to arduino AtMega328p? [closed]

I was wondering if its possible to send binary data to an Atmega328p. I don't want to send Arduino code or C code just binary. Is it possible to programme the ATmega328p using binary and how?
0
votes
0answers
26 views

Bootloading atmega328p via arduino board not working

I am beginner to electronics and arduino programming, now I am trying to make a home made Arduino based on some youtube videos, I have completed the powering section and arranged the components as ...
0
votes
1answer
112 views

My Arduino is unable to upload any program, nor is it resetting. Need help

Whenever my Arduino is connected to any Laptop, it keeps it's LED ON steadily. And, whenever I try to upload my program, the Arduino IDE says 'Problem uploading to board'. I tried uploading programs ...
0
votes
1answer
118 views

How to sleep a whole circuit?

I have just completed my first project, a clone of the Simon game of the eighties. The main parts of the circuit are an ATMega328, a 1602 2x16 LCD, and a small joystick. It is powered directly from ...
-1
votes
1answer
70 views

My Arduino UNO turns LED ON forever when I connect it to my Laptop

My Arduino UNO Board keeps the LED light turned on forever whenever I connect it to my PC. And, when I try to upload even a sample sketch, it says avrdude: stk500_recv(): programmer is not responding. ...
0
votes
0answers
54 views

Controlling brushless gimbal motor

I'm using a standard board for control this type of motor (SimpleBGC), this board uses an atmeg328p e some brushless drivers. I'm writing a simple code for turn left/right with some velocity, but i'm ...
0
votes
0answers
49 views

How to use the timer to generate a pulse wave of the specified frequency and duty cycle

So we have the tone library, which produces a 50% duty cycle square wave of varying frequency, and analogWrite() which produces a fixed frequency wave of varying duty cycle. Is there any way to ...
0
votes
1answer
302 views

Using Arduino UNO to retrieve ATMega328P-PU chip signature

Good day. I have successfully built and tested an Arduino-on-breadboard about 2 days ago. The device is rather straight forward, I have added a voltage divider and an LED to indicate power. The ...
0
votes
0answers
117 views

Nano clone not working over USB, no data, no power, but can power via Vin (CH340 chip? schottky diode?)

My quite new nano clone (atmega328p + ch340g) suddenly stopped working. Plugging it in with USB did not light up the LED(s) nor did it get detected by my machine. I looked it up, and found some how-to'...
1
vote
1answer
55 views

It seems as if there is a 220K pull-down resistor on analog pin 0

So I am building a project that uses the analog pins for precise measurements of resistance through a voltage divider and I have been having some seemingly unsolvable problems with nonlinear response ...
3
votes
2answers
130 views

How to use the analog comparator to determine when an analog pin has reached a certain voltage?

I am trying to find some information on how to use the analog comparator on an Atmega328 to detect when an analog pin has reached a certain voltage (3.16 volts). I cannot find any example code that ...
0
votes
1answer
129 views

Measure different Vcc using 1.1V bandgap

When I power my ATmega328P chip from 5.16V and 3.3V, there doesn't seem to be a single bandgap voltage compensation figure that works for both. I'm using the following sketch, and I need the ...
0
votes
0answers
56 views

ATMEGA328P 16Mhz External Clock serial bitrate mismatch (corrupt data)

I've been trying to get an ATMEGA328P communicating via a FTDI breakout board, and have run into something I can't seem to find much information about. When I have the ATMEGA running on its internal ...
4
votes
3answers
510 views

Confusion with ATmega328P and 3.3V/8MHz

Firstly, I have tried to set the bootloader to be 8MHz internal oscillator. I have tried the board setup from here - https://github.com/oshlab/Breadboard-Arduino. And also the breadboard-1-6-x.zip ...
0
votes
1answer
100 views

How to load Atmega328p 8mhz board using board manager

I need to load the Atmega328p 8kHz board definition using the board manager and can not find a way. Any help will be appreciated.
2
votes
2answers
95 views

Did I Brick my Controllino?

I recently obtained a Controllino Mini to be used in a small industrial project. While checking it out I also wanted to test the built-in RTC capabilities. In doing so I toyed around with the ...
3
votes
2answers
47 views

Barebones 328p, 2xAA vs 3xAA, which will last longer?

So im just running a 328p at 8mhz with the internal oscillator. Datasheet says 1.8 to 5.5v is voltage range. Will 3xAA in series (~4.5v) last longer than 2xAA in series (~3v), assuming all batteries ...
0
votes
1answer
60 views

Burn normal bootloader onto Atmega328P configured to use internal 8MHz clock

I have an Atmega328P that I have previously burned with a bootloader configured to use the 8MHz internal clock as described here. I would like to now burn the normal Duemilanove bootloader configured ...
0
votes
1answer
62 views

Understanding the contents of a library in C

So this is a question not just about the #include but most all includes you find while programming in C. So I understand a library is prewritten code and when you include that library are you able ...
1
vote
1answer
28 views

Custom built Arduino is not working - double blinks

I've made a home-made Arduino based on this video. The problem is that I can't upload anything, it doesn't react, only the LED double blinks in every second. What does that mean? How to fix it? Thanks....
0
votes
2answers
104 views

Is RX1 and TX0 the same thing as TX and RX? Will there be a difference in the way I program it?

I have an Arduino. I'm not sure if RX1 and TX0 the same thing as TX and RX? Will there be a difference in the way I program it? For example, do I treat RX1 and TX0 as RX and TX in the Arduino IDE ...
-1
votes
1answer
171 views

Does the VCC Output pin always give out a consistent 5V Voltage supply? What is the current output?

Does the VCC Output pin always give out a consistent 5V Voltage supply? What is the current output? This is the Chip I have. On the chip it says ProMini R160JAC6v. and When i program it. It programs ...
2
votes
2answers
73 views

ATMega328P-PU not working

I bought some material on the net to start working with Arduino. I didn't want to buy an Arduino, since it costs a bit too much IMHO, so I bought an ATMega328P-PU, and made an Arduino on a breadboard. ...