Questions tagged [avr]

AVR is the family of microcontrollers used in Arduino boards.

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

Arduino Attiny 85 IR library compiler error

I'm about to ask a question for the most common problem which everyone has with attiny85 and the IR library. I will try to make this question as simple as possible. Few things about the lib and the ...
0
votes
1answer
3k views

AVR Timer1 OCR1A controls TIMER1_COMPB_vect interrupt!

I was struggling with timer interrupts in my project. I couldn't make it work properly. So I decided writing a simple code and I saw a very interesting case. ISR(TIMER1_COMPB_vect) { PORTB ^= ...
1
vote
0answers
354 views

Can't get LCD(1602A v2) to communicate with AVR ATMEGA2560 [closed]

I have written the following code to communicate with an LCD display yet I can not get data to appear on the screen. All I get is white boxes on the display. I am properly controlling the RW, RS and ...
1
vote
1answer
298 views

Porting Arduino code to AVR/C++ input not working?

So. I'm trying to read an input on the Arduino Nano using C++/AVR/Eclipse instead of the regular arduino IDE. The code below is working in the arduino IDE void setup() { // put your setup code here,...
0
votes
1answer
260 views

Unusual behaviour when moving data to PROGMEM

I've got some working code with a definition that looks like this: const unsigned char DynTextPositions[10][4][4] = { ... }; Which is defined / referenced via a header: #include <avr/...
3
votes
1answer
3k views

Storing in a global variable using inline assembly

What I'm trying to do is pretty basic: I have a global variable and I'm trying to store some value in it (specifically, the SP_H and SP_L values). The variable is an array of structs and I'm trying ...
1
vote
0answers
443 views

Arduino Due - Multiple Serial Lines

I'm trying to interface with a serial device utilizing Serial1 (pins 18,19) on the Arduino Due. The normal serial port (Serial) is working just fine and is acting as a debug port at the moment - It's ...
0
votes
1answer
101 views

Arduino-like boards with other microcontrollers

Are there any Arduino-like board designs that are NOT using an AVR chip, but perhaps a chip like the Z80 or the 6502?
1
vote
4answers
16k views

New to Arduino: Should I learn C, C++ or both (C & C++)?

From what i've researched here is my thoughts on both C++ I heard that you can create libraries using C++ in arduino. And you can use the Arduino IDE to do that stuff. Here is the proof http://...
1
vote
2answers
3k views

Unable to flash bootloader on ATmega32U4 with AVR dragon

I am flashing a naked ATmega32U4, but the process fails in the end where it is verifying. avrdude -c dragon_isp -p m32u4 -P usb -U flash:w:Caterina-Micro.hex -U lfuse:w:0xff:m -U hfuse:w:0xd8:m -U ...
1
vote
2answers
150 views

In system programming for avr?

I generally use sockets for AVRs in standalone circuits, but sometimes I sell my items and therefore I soldier the chip on the circuit. As you guess I can upgrade the code inside the chip with socket ...
3
votes
2answers
1k views

Can I program AVR Microcontrollers using Arduino Development board with AVR Studio?

I know and I can program any AVR microcontroller with Arduino IDE and Arduino Uno board. Can I use Arduino board with AVR Studio? Or I have to buy an AVR Development board?
3
votes
1answer
688 views

How can I make pinMode calls faster?

I'm trying to use 3 pins as capacitive pins along side the Mozzi. I had several attempts and so far the closest I had was using code from the ADCTouch library straight into the main code, but with ...
-1
votes
1answer
253 views

Can Arduino's open design be “scaled” to 64-bit CPUs?

If Arduino is OSH that simply uses 8-bit Atmel AVR MCU as a design component, then can Arduino somehow be tweaked to work with a 64-bit CPU/MCU? If so, what might this entail?
0
votes
1answer
197 views

Interrupts don't work

I tried to run a sketch that tests my AVR's interrupts, I have an UNoriginal Arduino Uno, and I've checked pins 2 and 3 like the following: - at void setup() attachInterrupt(2, inter, CHANGE); - at ...
0
votes
1answer
49 views

AVR ATmega328p-pu operating circuit?

I used to work with PIC micro-controller so i know what it needs to work from operating circuit to crystal oscillators needed and other components to power it up , my question here where can i find ...
1
vote
1answer
1k views

ATmega32u4 bootloader

Hey all this would be my first encounter needing to burn the Arduino IDE bootloader onto a blank ATMega32u4 that I bought from Digikey. What all do I need to buy in order to program the bootloader ...
0
votes
1answer
4k views

error: ‘sleep’ was not declared in this scope

I am trying to use the sleep function in lieu of delay(), but when I include sleep(), I get Sweep.cpp:60:10: error: ‘sleep’ was not declared in this scope I read some place, about #include <avr/...
0
votes
1answer
287 views

Atmel STK500 and Atmel Studio

Is the Atmel STK500 worth using as a AVR programmer and Dev board? I am starting to get to into AVR programming with Atmel studio. I plan on purchasing the AVRDragon and also looking into purchasing ...
1
vote
2answers
3k views

Using Arduino as USB Device?

I'm trying to get audio data from an ADC connected to an Arduino into a host PC. I've done some digging and found LUFA, which I think Arduino uses under the hood. Is it possible to use the Arduino as ...
6
votes
1answer
8k views

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 ...
5
votes
3answers
10k views

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 ...
2
votes
1answer
3k views

How to create delays in AVR assembly language

Hi i'm new to AVR assembly language so i was trying to get delay function to create 1 ms , 100us, and 1us delays to do that i need to figure out what to replace nop's with below here (mainboard ...
3
votes
3answers
3k views

Using ArduinoISP on an Arduino Uno to program an ATmega328

I have an Arduino Uno R3 and would like to use it to program a blank ATmega328 on a breadboard. I've followed the instructions for the 8 MHz version on http://arduino.cc/en/Tutorial/...
1
vote
1answer
3k views

arduino 16u2 stk500v2_command(): command failed

I'm trying to fix arduino uno r3 that was burned-out. I changed m16u2 chip on it. and now I need burn in: Arduino-COMBINED-dfu-usbserial-atmega16u2-Uno-Rev3.hex I'm using stk500v2 and connecting it ...
6
votes
1answer
8k views

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 ...
7
votes
2answers
425 views

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 ...

1 2 3 4 5