Skip to main content

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
1 vote
1 answer
4k views

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 ...
Paul Grime's user avatar
2 votes
0 answers
45 views

I use an atmega328 with fdti cable wired at rx/tx and i want to connect a zigbee s2 at diferrent pins. I have tried to use SoftwareSerial library but i would like to use the xbee library too. Is ...
G-V's user avatar
  • 21
6 votes
4 answers
7k views

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 ...
Paul Grime's user avatar
0 votes
1 answer
5k views

I need to load the Atmega328p 8kHz board definition using the board manager and can not find a way. Any help will be appreciated.
M Jones's user avatar
2 votes
2 answers
2k views

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 ...
Schnickster's user avatar
3 votes
2 answers
274 views

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 ...
Hayden Thring's user avatar
0 votes
1 answer
662 views

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 ...
3871968's user avatar
  • 308
0 votes
1 answer
667 views

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 ...
user3475003's user avatar
1 vote
1 answer
69 views

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....
haxpanel's user avatar
  • 187
2 votes
2 answers
7k views

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 ...
JoeB's user avatar
  • 51
1 vote
1 answer
4k views

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 ...
JoeB's user avatar
  • 51
2 votes
2 answers
1k views

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. ...
Oxen Eknat's user avatar
0 votes
1 answer
784 views

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> //#...
Luca's user avatar
  • 101
1 vote
2 answers
1k views

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 ...
user2279603's user avatar
0 votes
1 answer
305 views

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 ...
Vincent Diallo-Nort's user avatar
0 votes
1 answer
342 views

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 ...
user4650623's user avatar
0 votes
1 answer
414 views

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 = ...
user72028's user avatar
0 votes
2 answers
1k views

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 ...
Vincent Diallo-Nort's user avatar
0 votes
5 answers
1k views

I'm learning Arduino. I use Arduino Uno board with ATMEGA328-PU. I tried basic codes like LED blink, control of DC motor etc. Arduino board is used only when we program microcontroller, right? I mean, ...
hari's user avatar
  • 13
2 votes
1 answer
3k views

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 ...
Alex's user avatar
  • 23
2 votes
0 answers
46 views

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
Alexander M's user avatar
4 votes
1 answer
247 views

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 ...
Alex Bohleber's user avatar
1 vote
2 answers
242 views

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. ...
fmarengo's user avatar
  • 111
2 votes
2 answers
368 views

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 ...
Mario Pacheco's user avatar
5 votes
2 answers
184 views

I'm taking my first wobbly steps outside the Arduino IDE and I'm not having much success with timers / interrupts. I can set a pin to output and light an LED with registers fine but I cannot for the ...
Ashlyn Black's user avatar
0 votes
1 answer
19k views

I have an external device using an ATmega328, not a ATmega328-P as used by the Arduino Uno. Now I want to use AVRDUDE and an Arduino Uno to flash a hex file on this chip. Therefore I removed the ...
bytecode77's user avatar
1 vote
1 answer
191 views

I have several projects that use simple 328 based arduinos that I built myself, similar to the familiar "arduino on a breadboard" projects that I'm sure everybody has seen. They have just the bare ...
3z33etm's user avatar
  • 113
0 votes
1 answer
1k views

I have a PIR sensor which sometimes give false readings and I have added a ultrasonic sensor to compensate for that. I think my algorithm can work, however currently it is very prone to give false ...
Linus's user avatar
  • 105
0 votes
3 answers
296 views

First we set fuse bits: avrdude -c usbasp -p atmega328p -U lfuse:w:0xFF:m -U hfuse:w:0xDF:m -U efuse:w:0x07:m # same for atmega168 In the following examples we use the following commands to compile ...
Igor Liferenko's user avatar
5 votes
1 answer
450 views

Atmel microcontrollers are not cheap compared to STM and Microchip. Why did Arduino select Atmel MCUs such as atmega328 and atmega2560 on their board out of so many alternatives?
user768421's user avatar
0 votes
1 answer
2k views

I expect from the following program serial.c to light the led on if I send key 1 from terminal, and light the led off when I send key 0 from terminal: #define F_CPU 16000000UL #define BAUD 9600 #...
Igor Liferenko's user avatar
0 votes
1 answer
243 views

I have an atmega328p (running on it's internal 8mhz clock) receiving data over rf. I need the data received to be communicated to the raspberry pi 2 using its gpio pins, I cannot use USB. I don't have ...
user3204017's user avatar
16 votes
4 answers
77k views

I'd like to use an ATMega328P for my project, I hope to do it without the Arduino board. I know with the Arduino IDE and an Arduino board I can program the microcontroller. However, would it be ...
George's user avatar
  • 169
1 vote
1 answer
861 views

Now I am Running Arduino code for Bluefruit LE on bare ATMega328 with 8MHz internal clock, with Bluefruit connected, pin 0 and 1 RX/TX unused, and AT42QT1011-based capsense circuits (logical input to ...
Roman Susi's user avatar
0 votes
1 answer
293 views

I need to hook up Bluefruit LE Breakout (nRF8001-based) to ATMega328 chip (to use it as wireless UART), and it seems like the library provided is for Arduino. What I have is just bare ATMega328 (note ...
Roman Susi's user avatar
1 vote
2 answers
204 views

I have an Arduino Uno and I am using arduino 1.0.5 IDE. I followed he procedures for bootloading an atmega328P-PU on a breadboard using an Arduino Uno from the link: https://www.arduino.cc/en/...
Swastik Mohapatra's user avatar
2 votes
1 answer
1k views

I'm trying to use the watchdog timer to prevent the atmel from being stuck in a loop. Right now, I have the watchdog timer in System Reset Mode, with a 8sec timer. I reset the timer in every loop ...
tsf144's user avatar
  • 243
2 votes
0 answers
350 views

I've built a bareduino. The blink sketch that it came preprogrammed with worked. I was also able to program the ATmega328 by putting it into a arduino uno. What I can't do is upload a sketch directly....
futurebird's user avatar
1 vote
1 answer
289 views

I want to run an atmega328 on a breadboard at 2MHz and upload to it via the serial pins (pins 2 and 3). So I am setting the clock divide by 8 fuse bit to enable this, meaning the atmega runs at 2MHz ...
Pete's user avatar
  • 113
1 vote
1 answer
2k views

After creating a working prototype with DIP ATMega328 chip/ Arduino UNO I recently got PCBs assembled with SMD components and ATMega328P TQFP soldered onto them, but now I'm having a hard time trying ...
vee's user avatar
  • 15
0 votes
1 answer
264 views

I messed around with the MAX7456 chip for a while, even the character set updating sketch seemed to work after a few modifications. But now it is not displaying anything with the Hello World sketch ...
Avamander's user avatar
  • 624
1 vote
3 answers
6k views

I have an ATmeg328 TQFP on a board (in system). I use an Arduino Uno as an ISP to programm the chip. However, i would like to use Serial Communication with the chip through the Arduino board. Is this ...
pritstift's user avatar
  • 119
1 vote
1 answer
346 views

I'm thinking about making my own "arduino" low power board but I have a question about the atmega328. Is the output voltage on the pins always 5v or it depends on the input voltage I gave to the ...
LGhost's user avatar
  • 13
1 vote
1 answer
3k views

I am working in my project and i want to use Timer2 interrupt every 100ms to get new measurement from the output of my 5 sensors which connected to pins A1,A2,A3,A4,A5. I read in some article that ...
omran's user avatar
  • 31
2 votes
0 answers
551 views

I have a Gboard module (from Itead) configured to recieve data from Xbee sensors, and log data to a server DB on inet (via GPRS). This module is programmed with Arduino IDE. I turn on the module (...
Xavi Gómez Canals's user avatar
0 votes
1 answer
307 views

I've got a MAX7456 chip and I am using this (this is the unmodified one) library with it. There's a sketch inside the examples folder (Max7456WriteTable) that I need to get to work to update the ...
Avamander's user avatar
  • 624
0 votes
1 answer
688 views

I've got a MAX7456 chip and I am using this library with it. But the issue is that the character table is not the one the library needs to function like it should. The "Hello world" example is ...
Avamander's user avatar
  • 624
4 votes
2 answers
191 views

I'm looking at the datasheet of the ATMega328, and I see the different channels you can select for AD conversion. ADC0..7, ADC8 (temperature), 1.1V (VBG), and lastly 0V (GND). What would be the use of ...
Gerben's user avatar
  • 11.3k
105 votes
3 answers
117k views

I can't upload sketches to my Arduino Uno. Have I "bricked" it? What steps can I take to work out what is wrong? What can I do to fix it?
Nick Gammon's user avatar
  • 38.9k
13 votes
2 answers
15k views

I have investigated the sleeps options of the ATmega328, and read a few articles about it, and I would like to understand if there are more options. So I would like to get as low current as possible, ...
Curnelious's user avatar