Questions tagged [avr]

AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the popular Arduino SBCs.

Filter by
Sorted by
Tagged with
5
votes
4answers
3k views

Driving a DC hobby motor using an AVR and a single power supply

I've recently begun experimenting with AVRs and am keen to progress beyond making blinkies to making things move. I've tried to start with something easy, but it seems I'm already foiled! What I'd ...
9
votes
5answers
4k views

Start off with embedded C with ATmega32 (ATmega AVR series)

I have a ATmega32 board laying around and I figure it would be perfect to start off with microcontrollers. I once did some babbling in embedded C (thats when I got this board) but the flow was stopped ...
9
votes
3answers
11k views

Securing code on an AVR/Arduino and delivering updates

What is the best way to protect code flashed onto any AVR based device from reverse engineering? What is an easy way to provide updates to end users to flash on their own without disclosing the code? ...
2
votes
3answers
815 views

How do I program an AVR Raven with Linux or a Mac?

This tutorial starts with programming the Ravens and Jackdaw with a Windows box. Can I do those initial steps with a Linux or OS X machine instead? If so, how? Is there any risk of bricking the ...
4
votes
3answers
3k views

Using Arduino to program Amtel AVRs via ICSP header

I have an Arduino (NG) board with an ATMEGA168 AVR micro. The board has a 6 pin ICSP header. Here is what I propose to do, please tell me if it is possible: Remove current ATMEGA168 IC Replace with a ...
4
votes
2answers
1k views

AVR Stick Data Logger Usage

Has anyone used this data logger (or similar) with v-usb to collect data? http://www.sparkfun.com/commerce/product_info.php?products_id=9147 If so, what is the maximum times per second voltage data ...
9
votes
1answer
4k views

Easily controlled color LCD for hobby projects?

I'm looking for some not too expensive, easy to control color graphics LCD I can use for various hobby projects, along with an AVR microcontroller or maybe an ARM in the future. The cheaper the better,...
3
votes
2answers
3k views

AVRISP MKII does not appear in AVRStudio 4 (latest build 4.18 SP1)

I have a AVRISP MKII that I wish to program avr chips with through avrstudio 4 with. However on the "select platform" the only think that resembles MKII is JTAGICE MKII which is not what I have? Am ...
11
votes
10answers
9k views

Linux / Mac AVR Programming Suite?

I have been coding and using Arduinos for quite some time now. However I am ready to move up to using straight AVR chips without the arduino bootloader. My question is what are resources to do this? ...
6
votes
1answer
31k views

What Operating Systems are available for Arduino? [duplicate]

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

BLDC and three phase inverter

I want to run/control a BLDC motor from a DVD/CD-rom player and found a schematic how to do this, the so called three phase inverter (see right schematic on this page: http://en.wikipedia.org/wiki/...
8
votes
4answers
4k views

Program an ATtiny13 as an audio oscillator with variable frequency and pulse-width

I want to create a simple square wave oscillator similar to what one would do with a 555, but I want to use interrupt based PWM support to control pulse width and frequency. I have been studying the ...
9
votes
5answers
14k views

Best way to control 75 LEDs with Arduino

I need to control 25 groups of 3 LEDs or 25 RGB LEDs. Each group will be dismissed from the uC by up to 20 cm (about 8 inches). 20 cm is very safe assumption but I think it will be 10 cm or less. ...
36
votes
10answers
17k views

SPI or I2C: which to use for a longish bus

I'm contemplating a project that would require several AVRs talking to each other over a bus. They'd be separated by as much as 6 feet. It seems like both I2C and SPI can let a series of micros ...
8
votes
5answers
4k views

Firsthand experience with Linux AVR IDE

I am looking for some input into getting a good integrated development environment set up for AVR programming under Linux (Assembly and C). My studies gave me some limited practical experience with ...
21
votes
3answers
13k views

What are Atmel Fuses?

What are Fuses in Atmel microprocessors and when I should or need to change the default settings?
41
votes
10answers
48k views

Why is AVR used in Arduino?

Why is Arduino using AVR? I understand that they are the official processor but there isn't a reason the code couldn't be ported to an ARM or a Freescale architecture other than cost, right? As long ...
12
votes
4answers
1k views

Anyone ported the QP state framework for Arduino?

In reviewing possible approaches for my data logging project, I have found the book "Practical UML statecharts in C/C++" to be very interesting for more serious work with the Arduino. QP is a family ...
12
votes
3answers
2k views

Monitoring voltage without a known reference

I'm working on a little sensor platform that runs off of batteries. I'd love to be able to trigger an alert when the voltage gets too low. The problem is that anything I use to measure that voltage ...
10
votes
3answers
3k views

How do I measure the current flow to a component?

I'm building a hexapod robot using simple servos and I was wondering how feasible it was to measure the current flow to each servo (5-6V DC to a maximum of 0.25-1A (I haven't found the spec for the ...
10
votes
2answers
641 views

Recovering an ATtiny13

I am playing with an ATtiny13 and I thought it would be good to use it with an external 8Mhz ceramic oscillator instead of the 1.2 Mhz built-in one. (I want to do a soft-uart at 9600 bps, so I figured ...
6
votes
2answers
3k views

Troubleshooting an ATMega328p clock setting

I am trying to run my ATMega at 16MHz using this crystal I set the lfuse bit to F7 (see here) The command I used to set the lfuse bit was ...
5
votes
4answers
229 views

Steam plant data logging

I was trying to design a data logging application using something like a www.ruggedcircuits.com gator+ board with some sort of rugged zigbee module for measuring principally steam pressure (to 110 bar)...
11
votes
5answers
10k views

Monitor clock cycles for code on arduino/AVR?

Is it possible to monitor a block of code and determine the number of processor clock cycles that code took on an Arduino and/or AVR atmel processor? or, should I rather monitor microseconds passed ...
5
votes
1answer
2k views

Issues migrating from ATmega88 to ATmega88P, with V-USB/AVR-USB?

I'm working on a V-USB (aka AVR-USB) -based circuit running at 5V (i.e. two 3.6V Zeners across D+ & D-) and at 12MHz. I tried an ATmega88P instead of the ATmega88 chips I normally use and I can't ...
6
votes
1answer
496 views

Arduino with atmel tools

Hi I've done some dev using AVR's. I'd really like to use the arduino but continue using atmel tools. Is this straightforward? Is there a converter that I can use my 910 programmer with? I think ...
5
votes
1answer
567 views

Hacking/Controlling BLDC from CD-burner

I have an old CD-burner (HP 9100 plus) where I would like to control the BLDC motor from. My idea is to use the original IC of the burner as the driver and use an ATtiny13 for controlling it. There ...
4
votes
1answer
784 views

Running AVRStudio 32 and JTAGICE MKII on Vista 64

I've attempted installation of AVR studio 32 (for AVR32 UC3 development) and it doesn't appear to work. Has anyone here gotten this to work in Vista 64?
9
votes
2answers
1k views

How to redesign a circuit to use a current sinking IC rather than a current sourcing IC

I'm building a serial servo controller to learn about electronics and assembly language as part of my hexapod robot project. Quite early on I decided that I needed more I/O channels than my ATTiny2313 ...
11
votes
2answers
2k views

Unit testing AVR assembly language

How do you unit test your assembly code? I'm working on a serial servo controller as part of a hexapod robot project and the code has got to the point where it's becoming complicated ;) Anyway, I'm ...
7
votes
3answers
2k 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 ...
7
votes
1answer
2k views

ATTiny2313 ISR stack usage

I'm using an ATTiny2313 to act as a serial concentrator. It only has 128bytes of RAM. I think I'm running out of RAM during the ISR. My question is how much RAM (stack) does an ISR use to save the ...
5
votes
2answers
4k views

Codevision AVR C and Atmel AVR C compiler

What is the difference between Codevision AVR C and Atmel AVR C compiler?
7
votes
5answers
5k views

Teensy development

Has anyone used the teensy? - I have a need for a serial port as well as USB connection and this looks good. Any opinions welcome. Is it difficult to use with the Arduino IDE? What are the downsides ...
7
votes
11answers
7k views

Using diodes to limit current to LEDs

I'm setting up an attiny2313 to drive an array of LEDs and blink them in different patterns. Rather than putting a series resistor in line with each LED (they'll be controlled separately, so I can't ...
23
votes
3answers
9k views

Jtag debugging AVR

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

Audio via Bluetooth

Can i use a Bluetooth USB AVR and send audio over Bluetooth to multiple receivers?
18
votes
9answers
12k views

Ideal WiFi to Serial (or SPI) bridge?

What are some recommendations on an ideal WiFi to Serial bridge? My ideal qualities would be: Simple connectivity, SPI or Serial Reasonable fast speed, at least 1mbit/sec ideally (though probably ...
10
votes
5answers
5k views

Arduino as AVR Programmer

Can you use the Arduino as an AVR programmer?