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

0
votes
1answer
30 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
18 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
20 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
64 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
40 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
39 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
40 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
29 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
55 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
76 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
62 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
38 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
43 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
47 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
50 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
42 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
24 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
93 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
108 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
65 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
43 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
39 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
121 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
87 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
50 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
92 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
90 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
43 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
355 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
82 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
82 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
45 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
44 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
27 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
84 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
132 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
58 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. ...
0
votes
1answer
85 views

Timer/Counter programming Arduino

I'm trying to blink an LED on an ATMega328P (same MCU as Arduino I think..) using the internal timer but I'm stuck since it doesn't seem to light the LED at all.... #include <avr/io.h> //#...
1
vote
2answers
112 views

Atmel AVR languages

Hello I recently purchased some atmel AVR chips. You can programme them in Arduino. I was wondering if it is possible to programme them in any other language except for C or Arduino. Also can you use ...
0
votes
1answer
55 views

Arduino on breadboard Tension is 4.4V instead of 5 V,looking for some guidance

I build a circuit that work on breadboard now i try to prototype it,so i start solder it on a prototype board and the arduino is out of sync.So i check the tension and for some reason it's 4.4~4.6 on ...
0
votes
1answer
40 views

Switching LED on and off using microcontroller

I am new to microcontrollers and just become confused trying to solve the following problem: An ATmega32 chip is connected to four on/off switches (SW0-SW3) and 4 LEDs (LED0-LED3). SWi is connected ...
1
vote
1answer
54 views

Atmega328 PWM frequency setting not working

I have an Arduino UNO with Atmega 328 SMD, and I am trying to use PWM, but by setting registers, not using analogWrite(). My code is: DDRD |= (1 << PORTD6); //Setting pin D6 as output OCR0A = ...
0
votes
1answer
61 views

Statistical Mode calculation in Arduino programme

How can I calculate the statistical mode from a set of values obtained from a distance sensor in an Arduino programme?
0
votes
2answers
149 views

Simple network protocol to communicate between N slave arduino and 1 central arduino? [closed]

i am looking to communicate text ( 40 char for each message ) between N arduino and a central one ( Communication is one way slaves to Master).I am looking for wire communication with 1 to 5 m ...
2
votes
1answer
270 views

Arduino Uno ADC behavior in free running mode

I'm using my ATmega328P to sample an analog signal in free running mode. The ADC clock frequency is set to ÷128. I've read that a single analog conversion lasts 13 clock cycles. I would like to know ...
1
vote
0answers
14 views

Lightblue Bean BTLE tinkering

How does one modify the Bluetooth settings, like services or pincode, on a light blue bean? Ps I'm on Android http://legacy.punchthrough.com/bean/ if you don't know what I'm talking about
4
votes
1answer
52 views

Arduino IDE Based Data Logger - Stops Running

I have created a data logger that writes to a MicroSD on a user defined interval. The data logger also has the ability to use an xBee unit to transmit the data received to a base station. This is ...
1
vote
2answers
75 views

From Arduino to a miniaturized circuit

I have a project made with Arduino, and I want to replace it by a miniaturized circuit with just a microcontroller. Is there any tutorial that can guide me in doing this? Any reference is wellcome. ...
2
votes
2answers
66 views

Taking off the chip from Arduino

I just uploaded a sketch of a song to my Arduino and it works well. Could I just take the chip out and hook up speakers to it and a power source to play the song? and just get another chip and put it ...