Giter Site home page Giter Site logo

btrinite / avrdude-dtr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deanmao/avrdude-rpi

0.0 0.0 0.0 6 KB

Fixing the lack of a DTR pin on the Raspberry Pi for the purposes of uploading hex files to the arduino

Home Page: http://www.deanmao.com/2012/08/12/fixing-the-dtr-pin/

Python 90.61% Shell 9.39%

avrdude-dtr's Introduction

Using avrdude with the Raspberry Pi

Since the Raspberry Pi lacks a DTR pin that makes it oh-so-easy to upload your hex files into the avr, we need this hack to make it just as easy. When you wire up your atmega chip, be sure to connect one of the digital gpio pins to the reset pin, and then you'll be able to use avrdude as if your serial cable actually had a dtr pin.

Instructions:

sudo apt-get install strace sudo apt-get install curl

  • Install arduino-cli

curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh

  • Add 'bin' created directory to your PATH,

nano ~/.bashrc export PATH=$PATH:/home/pi/bin

  • Initialize arduino-cli

arduino-cli config init arduino-cli core update-index

  • install board support

arduino-cli core install arduino:avr

  • install avrdude trick

cp autoreset /usr/bin cp avrdude-autoreset /usr/bin sudo mv ~/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude ~/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude-original sudo ln -s ~/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude-original /usr/bin/avrdude-original sudo ln -s /usr/bin/avrdude-autoreset ~/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude

  • install Hat source code and dep

cd project git clone https://github.com/btrinite/robocars_hat.git mv robocars_hat RobocarsHat arduino-cli lib install PololuLedStrip

cd ~/Arduino/libraries/ git clone https://github.com/PaulStoffregen/PWMServo git clone https://github.com/ElectricRCAircraftGuy/eRCaGuy_TimerCounter.git

  • compile

arduino-cli compile -b arduino:avr:mini /home/btrinite/projects/RobocarsHat/

  • upload sketch

arduino-cli upload -p /dev/ttyTHS1 --fqbn arduino:avr:mini /home/btrinite/projects/RobocarsHat/

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.