Git Product home page Git Product logo

shiny-avr's Introduction

Shiny AVR Programmer

USB AVR ISP programmer specifically designed for ATtiny25/45/85 and ATtiny24/44/84/241/441/841 microcontroller families in DIP packages.

Blasphemeously designed with an STM32 microcontroller instead of an another AVR.

Shiny AVR programmer provides an 16 MHz clock signal, which allows programming chips that have had their fuse bits set to require an external crystal or clock signal.

render

Usage

Insert the ATtiny into the DIP socket on the programmer. Please make sure it is oriented the right way. It should also work for programming the ATtinys in circuit (unless there is circuitry wired to it that would interfere, which is likely, since ATtinys don't have dedicated programming pins), but since there is no standard ISP header on the board, you will need to provide an adapter cable.

Shiny AVR powers ATtinys with 3.3V.

Arduino

Shiny AVR Programmer will present to the host computer as a virtual USB serial port. It can be used seamlessly from Arduino IDE by selecting Tools > Programmer > Arduino as ISP and selecting the appropriate serial port.

avrdude

Use -c arduino command-line parameter.

PlatformIO

It requires some modifications to use the avrdude.conf from ATTinyCore instead of the default one bundled with PlatformIO (chip_erase_delay is too low in the stock one).

Example config for ATtiny85

[env:attiny85]
platform = atmelavr
board = attiny85
upload_protocol = custom
upload_flags =
    -C$PROJECT_PACKAGES_DIR/framework-arduino-avr-attiny/avrdude.conf
    -p$BOARD_MCU
    -P$UPLOAD_PORT
    -b$UPLOAD_SPEED
    -carduino
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i

upload_port = <your serial port device here>
upload_speed = 19200
board_build.f_cpu = 16000000L
board_fuses.lfuse = 0xD1
board_fuses.hfuse = 0xDF
board_fuses.efuse = 0xFF

Example config for ATtiny84

[env:attiny84]
platform = atmelavr
board = attiny84
upload_protocol = custom
upload_flags =
    -C$PROJECT_PACKAGES_DIR/framework-arduino-avr-attiny/avrdude.conf
    -p$BOARD_MCU
    -P$UPLOAD_PORT
    -b$UPLOAD_SPEED
    -carduino
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i

upload_port = <your serial port device here>
upload_speed = 19200
board_build.f_cpu = 8000000L
board_fuses.lfuse = 0x62
board_fuses.hfuse = 0xDF
board_fuses.efuse = 0xFF

Hardware

The schematic and PCB layout are in the kicad folder.

schematic signals

Firmware

Firmware is based on ArduinoISP with the appropriate modifications for the specifics of hardware (LEDs, SPI parameters, ...) and it adds the capability to provide external clock to be able to program ATtinys that have had their fuses set to rely on external clock or crystal.

Roadmap

  • High voltage programming support for chips RSTDISBL or debugWIRE fuse bits set
  • Managed power supply or a PTC to prevent damaging the chips that are inserted upside down in the socket.

shiny-avr's People

Contributors

tibordp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.