Skip to main content

Questions tagged [avr]

AVR is the family of microcontrollers used in Arduino boards.

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

I need to convert Arduino code to avr-gcc code. This is code: #include <Servo.h> Servo myservo; void setup() { myservo.attach(11); } void loop() { myservo.write(67); } I use Arduino ...
user29971's user avatar
4 votes
1 answer
15k views

I'm experimenting something new with my Arduino Leonardo. I removed its original bootloader and flashed it with LUFA mass storage example with added functionalities(now its a firmware). I'm trying to ...
Isuru's user avatar
  • 151
0 votes
2 answers
264 views

I have a short question to ask before putting time for research. I have an Arduino Leonardo with the LUFA mass storage bootloader flashed. Now what I need to do is to add more functionalities to the ...
Isuru's user avatar
  • 151
4 votes
1 answer
4k views

For the sake of specificity I am referencing my question to Arduino. It applies to all AVRs with hardware USB and a bootloader though. The bootloader is capable of receiving new program data over the ...
user avatar
0 votes
1 answer
246 views

I bootloaded an ATMega328p (the one that uses the basic Arduino bootloader). Then, I used the VP812 for dumping other programs written in C (in Atmel Studio). The process of erasing, blank test, ...
user avatar
1 vote
4 answers
4k views

So I have 2 Arduinos, and im wanting to remove the chip from one and reset it to like it came from the factory and then breadboard it and attempt to program it using an AVR programmer (Or maybe an ...
msmith1114's user avatar
0 votes
1 answer
242 views

I have been trying to make my Leonardo board to work as a USB device. So I started with compiling the open source LUFA USB library demo "MassStorage" for the Leonardo board settings. Since I'm using ...
Isuru's user avatar
  • 151
0 votes
1 answer
36 views

If I have one function that uses registers heavily calling another that does the same thing, what happens? Does the data get destroyed? What, then, would happen on return to the first function? Is ...
Michael Stachowsky's user avatar
1 vote
2 answers
253 views

I have a project which uses a DS18B20 temperature sensor and an LCD with an I2C interface on it. I have connected the sensor to my micro-controller (the DS18B20 has a 12-bit digital output) to the ...
Diana Lc's user avatar
  • 125
0 votes
1 answer
4k views

I am using this code to make 10 bit PWM on port number 9, it seems like everything printed is 0,1022 rather than printing 0, 512, 1023. Is there a problem in my code ? I wired pin9 to A3 to get the ...
Mostafa Khattab's user avatar
0 votes
1 answer
89 views

I'm trying to read a microSD block. But I don't know why it doesn't work. I do: CS_UP; for(uint8_t i = 0; i <14; i++){ /* Send 74+ clocks */ spi_tranceiver(0xff); } _delay_ms(1); /* Wait 1 ms ...
Emmanuel Arias's user avatar
1 vote
1 answer
4k views

My problem is an interrupt service routine (ISR) that seemingly never executes! Here's some info on my set up: I am flashing an avr attiny85. I have the bare bones of a project set up so far with ...
chen's user avatar
  • 113
1 vote
1 answer
218 views

Im trying to use XCode to compile avr program with arduino libs but seems like something wrong with my Makefile because it throws me warnings like # warning "F_CPU not defined for <util/delay.h&...
user840250's user avatar
0 votes
2 answers
2k views

I was working with Arduino in Win 8.1, when suddenly it stopped work. I tried to reinstall the drivers and IDE several times, but it didn't solved. In Win 8.1, when I plug the arduino, I get the pop ...
EGS's user avatar
  • 103
0 votes
1 answer
225 views

Can someone tell me if it's possible AND safe to use Atmel Studio with Arduino Starter Kit? I'm a newbie to firmware in general and I don't want to "brick" my Arduino Uno Microcontroller. I don't ...
Dave's user avatar
  • 157
0 votes
2 answers
549 views

Arduino Uno R3 Windows 10 Bascom AVR The ON is alright. The LED flickers now and then. The RX and TX flickers when I press the program button on Bascom but then disappears almost immediately. ...
AveryRose's user avatar
1 vote
2 answers
996 views

I'm using the Teensy 2.0 (atmega32u4) and decided to switch from Arduino IDE with Wiring to pure C. I think it's much more useful to master programming microcontrollers on that level. Wiring seems to ...
Patrik Šimunič's user avatar
2 votes
2 answers
4k views

I first used the Arduino IDE but now I'm using PlatformIO which is awesome. But I have some big trouble with Serial.print() and Serial.println(). To show this error I have the following example code: ...
Jeroen's user avatar
  • 155
2 votes
1 answer
1k views

I'm trying to use the serial communication to work between a naked AVR Atmega328p and a computer (OS X and Linux Ubuntu). I can program the atmega (using a pololu programmer), I make it blink a LED ...
Luke Skywalker's user avatar
2 votes
1 answer
3k views

I would like to upload a .hex to ATTiny13V (or '13A) using Arduino Uno R3. I think I know everything to do, but ATTiny13 ISP support and Arduino IDE is a bit search-and-find, and I have some grey-...
TooManyHandles's user avatar
0 votes
3 answers
4k views

I have some really simple code and tested on an 8 MHz ATtiny85 and ATtiny2313. It's basically a blocking blink: int relayPin = 7; long offPeriod = 1 * 60 * 1000; long onPeriod = 1 * 60 * 1000; ...
PGT's user avatar
  • 183
3 votes
1 answer
142 views

I'm trying to make the transition from coding in the Arduino language to AVR-C, but I'm having some issues with my microcontrollers. I don't have an ISP, so I'm using one of my Arduino UNOs with the ...
Isak's user avatar
  • 39
0 votes
3 answers
1k views

I've been asked to do a small project using an Ada BlueFruit board. It has a ATMega32U4. The 32U4 comes from the factory with a bootloader pre-installed. I've never used an Arduino before, but I have ...
RubberDuck's user avatar
1 vote
1 answer
88 views

I bought a ATmega328 microcontroller and burn the bootloader. Now I want to upload code directly from pc to the microcontroller on bread board. I have max232 ic for the communication but I recently ...
Siddhartha Sadhukhan's user avatar
2 votes
5 answers
2k views

Can someone recommend a good book/reference for going vanilla (i.e. not using arduino simplified language) on e.g. ATtiny85? I will need to use the equivalents of analogRead() and digitalRead() quite ...
user400344's user avatar
2 votes
1 answer
697 views

I have an Arduino Uno that I've been programming with an AVR Dragon through Atmel Studio 7. I did two things in close proximity, and I'm not entire sure which action is the culprit. I tried using the ...
Khaines0625's user avatar
0 votes
2 answers
810 views

http://www.nongnu.org/avr-libc/user-manual/group__avr__eeprom.html I am trying to figure out that if we use eeprom_write_block function or eeprom_update_block function do we need to manually null ...
dmSherazi's user avatar
  • 183
1 vote
1 answer
159 views

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 ...
tabish's user avatar
  • 121
0 votes
1 answer
297 views

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 ...
ArduStack's user avatar
2 votes
5 answers
327 views

I am new to arduino. It is costly for me to buy an arduino uno board. Therefore I am going to make a Arduino with breadboard at my home. I also want to make my Arduino portable. Arduino Uno boards can ...
Abdullah's user avatar
0 votes
1 answer
78 views

I am using Eclipse to program a ATMega2560 and would like to stay away from the Arduino library, While looking through AVR Examples I have seen the syntax #include <avr/io.h> PORTD.0 = 1 or ...
Andy Braham's user avatar
0 votes
1 answer
450 views

Well this was unexpected. AVR libc has many the variants of printf, including vprintf, but is missing vprintf_P. Is this really just not present or implemented elsewhere?
Ana's user avatar
  • 480
3 votes
1 answer
1k views

How to use printf with Arduino's streams without an intermediary buffer? The following seems unnecessary: char buf[256]; sprintf(buf, ...); Serial.print(buf); Is there a way to connect HardwareSerial ...
Ana's user avatar
  • 480
3 votes
1 answer
89 views

Expecting the slave to ACKnowledge and return data, but it does not. This is my protocol. This is my Datasheet. Also FYI I'm on an Arduino Fio but I am not inheriting the Arduino library. #include &...
Womble's user avatar
  • 199
1 vote
1 answer
278 views

I've reviewed the documentation I'm still a little lost when it comes to applying the functions. Each of the redundancy check methods take in an unsigned char and return an unsigned char. Shouldn't ...
Womble's user avatar
  • 199
1 vote
1 answer
3k views

Please mind that this is an "example" question. How to make a "tiny arduino"? I've ordered a bunch of ATtiny85's off E-bay, they're like tiny Arduino's. I've set up the latest Arduino IDE and would ...
aaa's user avatar
  • 2,715
2 votes
0 answers
1k views

I am trying to simulate an interrupt with an Arduino Uno in Proteus. This is the simple test code that I'm using: void introutine() { digitalWrite(13,HIGH); } void setup() { pinMode(13,OUTPUT); ...
user avatar
1 vote
1 answer
216 views

I'm trying to create an ISR which operates for 15 seconds when a particular button is pressed. I'm attempting to use the AVR functions on my Arduino Uno to start counting when it enters the ISR, then ...
thestateriver's user avatar
0 votes
2 answers
202 views

Recently I ordered some ATtiny85's from Jameco, and I've been trying to upload code to them through an Arduino Uno, following the instructions from this video on YouTube. I've been getting a lot of ...
Gᴇᴏᴍᴇᴛᴇʀ's user avatar
0 votes
1 answer
2k views

I followed Great Scott's video on YouTube for uploading to an ATtiny85. When I tried I got the following error messages: Arduino: 1.6.7 (Windows Vista), Board: "ATtiny85 (internal 8 MHz clock)&...
Gᴇᴏᴍᴇᴛᴇʀ's user avatar
0 votes
1 answer
783 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
2 votes
2 answers
7k views

It looks like on ATMega based boards, float and double are equivalent 32-bit (4-byte) data types. However, on the Arduino Due, doubles are 64-bit (8-byte) where floats are 32-bit (4-byte), same as ...
Ehryk's user avatar
  • 121
0 votes
1 answer
341 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
2 answers
373 views

there is AVR AVR ATmega32 and a board within. there is outputs for all ports (A, B, C, D) on board, and Vcc. the problem is - I have no external GND output. to watch current - I should search for ...
Ivan Feoctistov's user avatar
0 votes
1 answer
313 views

I am new in this Arduino coding world and I was trying to make a project. I normally used Arduino Unos all the time, but I was facing a problem and that is that the Arduino Uno has only 13 digital ...
Asif Uz Zaman's user avatar
2 votes
1 answer
558 views

I was reading documentation on UART on AVR and it looks simple: when a flag (bit RXC0 of register UCSR0A) is set to 1, it means the micro controller has new data for you, and you read this from ...
Thomas's user avatar
  • 131
3 votes
2 answers
4k views

I am using the dynamic memory in AVR microcontroller, so How to know that there is collision between stack and heap or if the memory has been filled?
Ahmad Naoum's user avatar
3 votes
2 answers
8k views

In our college we are using a module developed by IIT Bombay (called FIREBIRD V[ver 5]). It has ATmega2560 and ATmega8 microcontrollers (master and slave) with bootloader. The staff uses AVR Studio ...
Somasundharam Sampath's user avatar
2 votes
0 answers
112 views

I'm using Arduino Uno board as master and AVR32UC3A0512 as slave. I've written code for arduino using SPI.h library, and Atmel Studio 6.2 using spi.h. I'm sending data from arduino to atmel i.e from ...
Suhas's user avatar
  • 21
3 votes
1 answer
811 views

This is my first post. Please excuse me if this is a repost, but I couldn't find a similar question via search. I have some experience with Arduino and I'm looking to utilize AVR's sleep mode in a ...
CamK's user avatar
  • 91