Questions tagged [avr]

AVR is the family of microcontrollers used in Arduino boards.

Filter by
Sorted by
Tagged with
0
votes
1answer
269 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/...
1
vote
3answers
613 views

use arduino IDE for USB isp programmer

A few years ago I programmed AVR ATmega8 with AVR studio by USB isp programmer. I was using C language. Now I would like to use arduino(C++) langauge and my external USB isp programmer. Is it possible?...
0
votes
2answers
562 views

Use Arduino Uno to program the on-board Atmega328 in C

I have an Arduino Uno board. I have seen how it is possible to program external AVR's through the Arduino Uno board, for instance an ATtiny. But I'm starting with c for atmel µc and I just want to ...
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 ...
0
votes
1answer
150 views

Which Arduino is compatible for atmega164pa

I am working on a project using 5 pins of ADC, 5 pins for PWM, and LCD. I need to use Atmega164pa. I would like to know how I can transfer it to Arduino. Is there any Arduino compatible with this chip?...
1
vote
0answers
448 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?
2
votes
2answers
1k views

Is Arduino IDE enough to program with C or C++?

I am using Arduino IDE to program my ATmegas with bootloaders. I can directly manipulate ports, use timers, interrupts, PWM pins and timers, etc. Everything is working. But this question arises: Does ...
3
votes
1answer
705 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
286 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?
2
votes
4answers
449 views

How are Arduino's OSH if Atmel AVR is proprietary?

I keep reading how Arduinos are "open source", but my understanding of OSH is that all its components must be open source. Arduino uses an Atmel AVR CPU - but Googling this shows the Atmel is ...
0
votes
1answer
2k views

Driving conveyor belts using Arduino Unos

We are planning to drive conveyor belts with Arduino Unos using stepper motors. We are planning to use easy drivers, so that we control at least 3 motors with one Uno. Currently we are still at an ...
0
votes
1answer
200 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
53 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 ...
0
votes
2answers
545 views

Is it possible to use Arduino UNO programmer for other AVR microcontrollers?

I got an Arduino UNO which I started using with microc for avr to add more customizations. I'm wondering if it is possible to use the Arduino UNO programmer to program other AVR microcontrollers (I ...
1
vote
1answer
2k 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 ...
5
votes
1answer
149 views

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

Arduino Mega 2560 as ISP for ATTINY2313 / ATMEGA328P

I have posted this on the Arduino forum also, but I give it more chance if posted here also. I've been trying to use my Arduino Mega as an ISP for programming two different ATMEGA328P's and a ...
5
votes
1answer
850 views

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 -...
0
votes
1answer
302 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 ...
6
votes
1answer
9k 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 ...
1
vote
2answers
4k 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 ...
1
vote
4answers
1k views

Using Arduino to learn AVR programming

I want to learn AVR C programming instead of arduino programming. I have an arduino UNO board and few Atmega328 chips that I bought, and Atmel studio for programming. Can I use Arduino Uno board as ...
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 ...
9
votes
4answers
56k views

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

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 <Wire.h> void setup() { Wire.begin(3); Wire.onReceive(...
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/...
2
votes
1answer
4k 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 ...
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 ...
9
votes
5answers
12k views

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