avr development « adafruit industries blog

Using USBTiny version 2 in Vista – driver signing

Pt 2572
If you’re using USBTiny version 2 in Vista and having problems, try this driver signing tip from forum member grantejust keep in mind that it might be weird/risky… the hack that is, IT SEEMS A LITTLE SKETCHY – THIS IS A WARNING

Use this tool to sign the drivers with a test key and force windows to always boot in test mode. Works for me.

You can also try this – “Disable Driver Signing in Windows 7 Using Group Policy Editor“… we’ll try some/all of these out soon, for now – report back if you have anything to add!



V-USB – A Firmware-Only USB Driver for Atmel AVR Microcontrollers

 Images Vusb Vusb-Teaser
V-USB – A Firmware-Only USB Driver for Atmel AVR Microcontrollers

V-USB is a software-only implementation of a low-speed USB device for Atmel’s AVR® microcontrollers, making it possible to build USB hardware with almost any AVR® microcontroller, not requiring any additional chip.

Thanks Travis!



From the mail bag…

 Adablog Wp-Content Uploads 2009 11 Letterswegetletters-1

Brian from Ohio writes in…

My goodness. Thank you *so* much for making the USBTiny ISP kit!… Thank you for sharing the fruits of your talents and work with those of us at home trying to learn how these things work. Without people like you and Windell & Lenore over at EMSL, I would never have started down this path. I’m having a great time, and my 9yo son is as well. He’s thoroughly intrigued by electronics and programming, and the tools you offer are an enormous help for us!



simavr – AVR simulator

simavr – AVR simulator via littlebird.

simavr is a new AVR simulator for linux, or any platform that uses avr-gcc. It uses avr-gcc own register definition to simplify creating new targets for supported AVR devices. The core was made to be small and compact, and hackable so allow quick prototyping of an AVR project. The AVR core works more or less perfectly now. The simulator loads ELF files directly, and there is even a way to specify simulation parameters directly in the emulated code using an .elf section.



HOW TO – Getting AVR tools working on Mac OS X (Snow Leopard)

Pt 2329
Reg shows you how to get AVR tools working on Mac OS X (Snow Leopard)! He writes -

Building the AVR toolchain by hand also thwarted me somewhere in the building of the avr-binutils package — it doesn’t want to build on my Mac.  As soon as I entered the dependency hell of installing an upgraded gcc to build binutils and that didn’t work either, I got pretty fed up with that line of attack. Finally, I tried installing the AVR toolchain from the Fink project. Success! Here are the steps it took to get it up and running…

You can also use the Arduino as an “In System Programmer using the AVR Mega8“…



HOW TO – Programming ATtiny13 with USBtinyISP

 Wp-Content Uploads 2009 11 Usbtinyisp Set Up
Lars shows you how to program an ATtiny13 with the Adafruit USBtinyISP-

To program the ATtiny13 or other AVR tiny microcontrollers I use the USBtinyISP. It is a diy build programmer, you can buy a package and you only need to solder. The nice thing is that it works with USB and can power the circuit directly. More information about the programmer can be found here: http://www.ladyada.net/make/usbtinyisp/ I use Windows Vista for programming. USBtinyISP uses an USB driver to work under Windows. This works good on 32 bit Vista system, but on 64 bit system you need to disable Windows check of unsigned drivers. This can be done by pressing F8 during boot and selecting a boot option at the bottom. This needs to be done every time you want to program the microcontroller. Perhaps a reader knows a solution to that? Please post in the comments. The USBtinyISP is cheap and works great…



Chameleon AVR 8-Bit system

 Products Chamavr Cham Avr Pcb Top 04 Main
 Products Chamavr Cham Avr Pcb Top Annotated 01 Lrg
The Chameleon uses an Atmel AVR ATMega 328P as the main master processor (client) and Parallax multicore Propeller chip, includes the Arduino bootloader too -

The Chameleon(TM) AVR 8-Bit is the evolution of the high performance, small footprint, application development board. Similar to the BASIC Stamp(TM) and Arduino(TM) in concept, the Chameleon takes these products to the next level with a huge leap in computational performance as well as I/O interfaces. Simply put, the Chameleon is a credit card sized computer with (2) processors, (9) processing cores, 1 MByte of on board FLASH, 64K of EEPROM, and over 170 MIPS of processing power! If that wasn’t enough, the numerous I/O interfaces include composite video for NTSC/PAL generation, VGA, audio out, PS/2 for keyboards and mice. Additionally, the Chameleon has a number of digital I/Os and Analog inputs making the Chameleon perfect for industrial controllers, experimentation, education, wearable computing, or hobbyist use.



Using an AVR as an RFID tag

Avr-Rfid-Card
Sketchy :) Micah writes -

Experiments in RFID, continued… Last time, I posted an ultra-simple “from scratch” RFID reader, which uses no application-specific components: just a Propeller microcontroller and a few passive components. This time, I tried the opposite: building an RFID tag using no application-specific parts. Well, my solution is full of dirty tricks, but the results aren’t half bad. I used an Atmel AVR microcontroller (the ATtiny85) and a coil. That’s it. You can optionally add a couple of capacitors to improve performance with some types of coils, but with this method it’s possible to build a working RFID tag just by soldering a small inductor to an AVR chip



Optimisations of AVR programs using avr-gcc

Pt 2121
Very useful – how to optimize code for AVRs



Barebones AVR dev. board – on sale for $10.00

Atmegaxx8Target Lrg
Atmegaxx8Targetprog Lrg

Special introductory price!

We took the business-card-sized AVR target board from Evil Mad Scientist Laboratories and added a few components to make an AVR dev board that has only the bare minimums!

Comes unassembled with:

  • Printed circuit board
  • Blank ATMEGA8 with internal 1 MHz oscillator selected
  • 28-DIP socket
  • 6-pin ISP AVR programming header
  • 0.1uF ceramic capacitor
  • 5mm diffused red LED
  • Resistor for LED

We suggest using this board in conjunction with a USBtinyISP programmer (not included), and having the programmer provide USB power to the board. Of course, any programmer can be used, just make sure that you also power the target board somehow.

To get you started, here is a ‘hello world’ zip file. It contains a C program, compiled .hex file and Makefile for a blinking LED connected to pin PB5. Wire up the board as shown here (don’t forget the 3 jumper wires up top, they are essential!) Then install WinAVR or equivalent and run make program in the uncompressed folder to compile and burn the example.

Can easily be turned into a ‘Minimal Arduino’, simply follow the instructions from TodBot (You’ll need a programmer like a USBtinyISP or similar to burn the bootloader onto it).

In the Adafruit store now!



www.flickr.com
adafruit's items Go to adafruit's photostream
www.flickr.com
items in Adafruits More in Adafruits pool