AVR is the family of microcontrollers used in Arduino boards.
Questions tagged [avr]
262 questions
16
votes
6 answers
What's the difference/relationship between Arduino and AVR?
I'd always thought Arduino was a microcontroller platform but the actual microcontroller is an AVR chip made by Atmel, or something like that made by someone else, based on a RISC ISA, and Arduino is usually used to refer to the whole circuit board…
user3383182
10
votes
4 answers
Arduino compatible's serial port not showing Mac OSX
I bought an Arduino-compatible Freaduino board atmega8 (I selected the board type as Arduino ng or older atmega8). I installed the Arduino IDE on Mac OS X and the FTDI drivers. But my serial port looks like this when I connect the board:
And when I…
Rajath
- 225
- 2
- 4
- 10
8
votes
2 answers
Is there a way to make wiring a bare microprocessor to a shield easier?
I currently do most of my AVR work on breadboards, but the large variety of Arduino shields and code out there makes me wonder if I'm not beating my head against the wall sometimes, and looking up port to pin mappings both wastes time and slows me…
Ignacio Vazquez-Abrams
- 17,733
- 1
- 28
- 32
8
votes
2 answers
Basic makefile for avr-gcc
I would like to make a makefile for compiling c programs for the arduino. I am somewhat familiar with make but have never used it with avr-gcc. What is the simplest way I could put the commands below in a makefile?
$ avr-gcc -Os -DF_CPU=16000000UL…
connorwstein
- 183
- 1
- 1
- 4
7
votes
1 answer
Is it possible to program an Attiny85 with a USB-to-TTL converter?
I currently use my Arduino to program Attiny85. As I have one of these USB-to-TTL adapters I am wondering if it is possible to program Attiny85 with it, to free up my Arduino. I know it is possible to program Atmega's with such a thing.
If it is in…
marlar
- 487
- 1
- 6
- 10
7
votes
3 answers
I2C 2 way communication between Arduino Uno and Arduino Mega
If I remove the transmission code from slave this works properly but I need to transmit from slave.
Here is my master code
#include
void setup() {
Wire.begin(3);
Wire.onReceive(receiveEvent);
}
byte x = 0;
void loop() {
…
srinivas
- 83
- 1
- 1
- 4
6
votes
3 answers
I bought USB > FT232RL, can I use it to program a bootloader onto an Arduino?
I bought this thing off of eBay:
eBay Link
Will it allow me to program an ATmega[xxx] (Arduino clone) with a bootloader?
--> If so, how would I go about it? What should I do, and what should I certainly not do?
--> If not, what do I need (or…
KJdev
- 175
- 1
- 1
- 5
6
votes
1 answer
Change Options for the AVR Programmer via Arduino IDE
I want to program an ATtiny through the Arduino IDE. I have a somehow strange programmer. But I can upload via avrdude by
avrdude -p attiny13 -P /dev/cu.usbmodemfa131 -c stk500v2 -F -B20 -U flash:w:programm.hex
It took a while to figure…
A.Schulz
- 467
- 1
- 6
- 9
5
votes
1 answer
Pin Change Interrupt Flag timing on 1284P
I want to ask about pin change interrupts on a 1284P chip using MightyCore. I have a question about the timing of multiple interrupts on one port. Specifically, if I am servicing a PCINT vector and another pin in the port changes while I am in the…
Delta_G
- 3,391
- 2
- 13
- 24
5
votes
4 answers
How can a function/method determine if a const array passed in is PROGMEM (flash) or not (RAM)?
Is it possible for a function/method to know if a constant array that has been passed in is in flash or RAM?
If I have a method or function that receives a constant array that is in RAM, the array is declared like this: const uint8_t MY_ARRAY[] = {…
Casey
- 151
- 6
5
votes
1 answer
Why are Arduino timer registers not 0?
I'm trying to use the timer registers to do some timing on my Arduino Mega 2560.
The output of the following code confuses me:
void setup ()
{
// Set up serial connection
Serial.begin(9600);
while (!Serial) {}
// Print control…
Paul
- 165
- 4
5
votes
1 answer
Does porting code to different MCU clock frequency affect serial baud rate?
Tried to upload my Arduino Uno sketch that writes to serial UART at 9600 baud rate onto my ATtiny2313 running at 1MHz. Not getting the signal on the ATtiny, does this have to do with my clock frequency of the MCUs being 16 vs 1MHz?
Nikola
- 63
- 1
- 4
5
votes
1 answer
Cannot compile C++11 code via Makefile
I am building my Arduino project with a makefile:
BOARD_TAG = uno
ARDUINO_PORT = /dev/ttyACM0
USER_LIB_PATH = /home/prakhar/dev/alfred/arduino/libraries
CPPFLAGS=-x c++ -std=c++11 -Wall -DUNIX_ENVIRONMENT -DHAVE_NAMESPACES -DHAVE_STD
include…
xyz
- 359
- 2
- 11
5
votes
1 answer
Remove Bootloader on Arduinos
I am trying to move from arduinos to AVR C. Would somebody know how to remove the arduino bootloader from the microcontroller? Is there a different process for the different atmega microcontrollers like the 32u4, 328, or 2560?
Thanks.
Naan
- 73
- 6
4
votes
2 answers
AVR & PIC 8-bit Microcontrollers - Can you add: external flash memory, external RAM, video & audio output, more address busses?
so I was planning on creating a mini PC out of basic ICs and 8-bit microcontrollers such as ATTinys and/or PICs and I have several questions regarding those:
Can you add external RAM, say with SRAM, DRAM chips, so the microcontroller can handle…
Shimon Pokrivka
- 43
- 1
- 4