AVR ATtiny USB Tutorial

Posted on Feb 7, 2014

This is the second part of my USB tutorial for ATtiny2313 and V-USB library. In the first part we learned how to get 3. 3V from USB to power our circuits. In this part, we will expand our setup with following parts: Update: Some people have noted that the setup I`m using here runs ATtiny2313 at 12 MHz with only 3. 3V VCC, which is outside the specif

AVR ATtiny USB Tutorial
Click here to download the full size of the above Circuit.

ied range (frequencies over 10 Mhz require 4. 5V or more). I`ve never had any problems, and many others have succeeded with this setup, but if you encounter persistent problems, I suggest you to power the ATtiny2313 straight from 5V of the USB line and use zener diodes on D+ and D- lines to drop their voltage, as is done in my later tutorial with the ATtiny85 microcontroller. This time I will not walk you through every connection. Instead, I`ll just outline the steps needed and show the pictures of end result. Here is the schematic we`re building: Basically it`s the regulator circuit we just built, pullups and line resistors for D+ and D- in the USB bus going to PD2 and PD3, and the ATtiny2313 with RESET pullup and MISO, MOSI, SCK and RESET connected to the 6-pin programming header, and a 12 MHz crystal. An easy order to make these connections is to: Reconstruct the power circuit from part 1 in one corner of the breadboard. Instead of connecting 5V from USB to the positive power rail, connect it straight to the input pin of the regulator we won`t be needing 5V anywhere else By the way, if you need a refresher on how to connect the RESET pullup and 6-pin header and use the programmer, check out this excellent tutorial wiring is the same but of course pin locations in ATtiny2313 are different than in ATtiny45. Connecting the crystal is also very easy, just connect the two legs of the crystal to PA0 and PA1, and add ceramic...

Leave Comment

characters left:

Related Circuits

  • New Circuits



    Popular Circuits

    0,4 Watt FM transmitter
    DC-to-DC AC inverter
    Audio Oscillator Ii
    High Voltage Power Supply for Geiger Tubes
    Muti-channel audio mixer circuit based on LM3900 IC. Four channels
    Portable solar charger designed using LM358N
    Solar Mailbox project
    Headlamp dimmer controlled foglamps FORD RAPTOR
    Microcontroller Unit Co-Simulation for SPICE-Based Circuits in NI Multisim