11
votes
7answers
11k views

Arduino With Assembly?

Since for my venture into Microprocessing I decided to go with Atmel AVR due to the vast resources available. And Arduino seems to has alot as well, not to mention their starter kits seem more "at my ...
37
votes
15answers
19k views

Complete alternatives to the Arduino IDE?

I'm not that big of a fan of the official Arduino IDE (in terms of visuals), so I've started looking for nicer alternatives. However, most of the projects I've found are in alpha/beta and are ...
3
votes
2answers
11k views

Can you use an Arduino Uno as an ATMega328 Programmer?

I dont have an Uno but I was thinking of getting one and by the looks of it, you can remove the AVR microcontroller from the Arduino, right? Its just a DIP IC in a socket that can be pulled out, seems ...
10
votes
5answers
4k views

Arduino as AVR Programmer

Can you use the Arduino as an AVR programmer?
5
votes
5answers
2k views

“Overclocking” an AVR

In AVR datasheets under the Electrical Characteristics section you will typically find a graph like this (this one is from the ATMega328): I've seen designs that seem to "work" but operate outside ...
1
vote
0answers
1k views

avrdude error - stk500_paged_write() protocol error

I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this ...
5
votes
4answers
1k views

ATtiny2313 refuses to be programmed after setting CPU clock to 500kHz

The other day I was writing a program for an ATtiny2313. Once it worked I decided to test it at the various clock speeds that are available and programmed through setting the LFUSE as described on ...
3
votes
1answer
880 views

Arduino: programmatic disable crystal/change system clock prescaler

I have a ATtiny2313 board which does not have a crystal installed. According to documentation it looks like it then runs by default on 1MHz. Because this board only allows ISP programming I thought ...
14
votes
3answers
3k views

Jtag debugging AVR

Can anyone advise what hardware and software is required for debugging AVR in circuit.
10
votes
1answer
1k views

Arduino Bootloader Details

Can someone please explain how the Arduino bootloader works? I'm not looking for a high level answer here, I've read the code and I get the gist of it. I've also read through this other post (I had ...
8
votes
4answers
468 views

AVR deprogramming itself

Has anyone else had instances where an AVR just mysteriously stopped working after several months, but reprogramming it would bring it back? I'm running a bunch of atmega328's in wireless sensor ...
5
votes
1answer
479 views

What Operating Systems are available for Arduino?

This question seems to suggest that people are developing Operating Systems for the Arduino platform. What Arduino OS projects are you aware of? Please list only one project or OS per answer, and ...
2
votes
2answers
2k views

avrdude error - stk500_getsync(): not in sync: resp=0xff

I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this ...
6
votes
1answer
4k views

Handling timer overflow and compare interrupts in ATMega328 (Arduino)

I'm trying to simulate PMW mode on multiple pins in software by controlling a Timer2. I'm using maximum prescaler value to get approximately 60 pulses per second when timer counts to its maximum ...
4
votes
2answers
533 views

Moving the code and interrupt locations in Arduino

I need to be able to choose between two Arduino apps running on an atmega 1280 (megaavr) at boot time. Therefore I need to move one of those apps to a different location in program memory, and I need ...
3
votes
1answer
3k views

Is Atmega8L-8PU compatible with Atmega 328 on arduino UNO?

I have an arduino UNO running my code perfectly. Now I want run the same code on an Atmega8L-8PU which is connected on a breadboard. Is it perfectly reliable to use this Atmega8 instead of the ...
1
vote
2answers
2k views

How much current is consumed by an avr analog sensor?

I'm trying to measure a small analog device that emits about a volt (I believe up to 5V, but I've not measured at extremes yet) AC. I rectify the reading to DC, but I'm really interested in getting ...
6
votes
3answers
1k views

Arduino Bootloader

If I upgrade my arduino from the ATMega 168 to ATMega 328 will I be able to use the ATMega 168 like a stock chip from the factory or will the bootloader prohibit this? In other words, will I be able ...
5
votes
2answers
322 views

When to use an Arduino bootloader

I need to make a robot within a month for a competition. I used to use Arduinos for my projects, but graduated to just flashing code with avrdude to standalone AVR microcontrollers. I was thinking, ...
4
votes
1answer
86 views

AVR ATMega I/O pin overcurrent protection

I want protect I/O pin against overcurrent to make circuit more robust. Atmel's AVR040: EMC Design Considerations discusses internal overvoltage protection in General I/O Pin Protection paragraph. But ...
4
votes
3answers
1k views

Arduino Bootloader Follow On

Two parts: Is it possible to write an Arduino Bootloader for a Tiny AVR? Is it worthwhile to write a Arduino Bootloader for an Tiny AVR? (more subjective, contingent on 1) Regards, Vic
3
votes
2answers
872 views

Use PWM and ISR at same time on AVR

Is it possible to use AVR PWM outputs and ISR interrupts at the same time? I've got a project I'm trying to do on an ATMega328P and I need 3 PWM outputs but ALSO need to be able to use ISR interrupts ...
2
votes
0answers
986 views

ATTiny 85 + shift register + ir sensor

I had the ATtiny working with the shift register, but when I added the IR receiver to the code the shift register did not work as desired. I have a shift register connected to 8 LEDs and controlled ...
2
votes
1answer
429 views

Arduino code compiles both on Eclipse and on AVR Studio 5, but only Eclipse version is functional

I'm trying to choose an IDE for arduino development. I installed both Eclipse and AVR Studio 5. And configured them using the instruction on the Arduino site (for Eclipse) and those two tutorials (AVR ...
2
votes
3answers
1k views

How to detect angular position of a device mounted on a rotating wheel?

Is there a sensor that can sense whenever rotating wheel pass the ground? Like when mounted on a bicycle wheel rims, but without anything mounted on a bicycle frame - only mounting on a wheel it self ...
0
votes
2answers
268 views

Send more than one value via SPI/arduino, MAX5483, 10-bit digi-poti

With help from efox29 I worked out to control the MAX5483, 10-bit digital potentiometer (data sheet here) with an arduino using SPI. Now how can I trigger more than one value? I tried to do that with ...