How to program ATTiny85 with Arduino Uno (part 2)

This is the second part of the tutorial on how to program an AVR ATTiny85 chip with Arduino Uno. All the hard work has already been covered in Part 1, so make sure that you have completed the steps in that section before you continue!By default, the ATtiny85 runs at 1 MHz. You need to do an extra step to configure the microcontroller to run at 8 MHz. This is a requirement for using some popular libraries (like Software Serial), as well as to take full advantage of your chip. (more…)

How to program ATTiny85 with Arduino Uno (part 1)

UPDATE, November, 2015: The article below was written for Arduino IDE versions, prior to 1.6.4. If you are currently using Arduino IDE 1.6.4, or later, follow the instructions in blog post instead.
This tutorial is based on the steps I took to program an ATTiny85 with my Arduino Uno and use the nifty little chip for a small line following robot. The idea for using the ATTiny came from the MAKE magazine and more specifically their "How-To: Shrinkify Your Arduino Projects" YouTube video.The ATTiny libraries for the Arduino IDE come from the High-Low Tech group at the MIT Media Lab. They have some other interesting materials for Arduino on their site as well.

Step 1: Collect all necessary hardware components

  • An Arduino Uno (or compatible board)
  • An ATTiny85 IC
  • One 10 uF capacitor
  • Breadboard and jumper wires
(more…)

ATTiny Line Follower

http://youtu.be/ZEQELKFFFJoContinuing to mess around with the ATTiny85 IC... I ported the code from my Arduino Uno line following robot to the ATTiny. Some changes were necessary to make it work:
  • The ATTiny has only 3 analog pins, so the sensor array has 3 TCRT5000 IR LED/Sensors instead of the 6 the original line follower had
  • The SoftwareServo library was needed, as the standard servo library that comes with the Arduino IDE does not work on the ATTiny
The code used is below, and more info on how to program the ATTiny chip using your Arduino as a programmer is available in this post. There is one more pin available on the ATTiny85, so I am thinking of adding an ultrasound sensor and some basic obstacle avoidance next. Here is the Arduino Code that runs on the ATTiny: (more…)

Free Course: Control of Mobile Robots

Coursera is a social entrepreneurship company that partners with the top universities in the world to offer courses online for anyone to take, for free. One of the courses included in 2013 is "Control of Mobile Robots" by Magnus Egerstedt, a Professor in the School of Electrical and Computer Engineering at the Georgia Institute of Technology. According to the course summary, you will learn how to make mobile robots move in effective, safe, and predictable ways, avoid collisions while reaching target locations, as well as dabble with robots that fly, or walk. Sounds pretty cool! The next…continue reading →

Robot Platform including h-bridges from $10 R/C Car

This is an "instructable" on how to hack a cheap remote controlled toy car and turn it into an Arduino powered autonomous robot vehicle. It requires some soldering, so be prepared to mess around with wires on a tiny PCB and learn to de-solder a chip from a board! Once you master that though, you open endless possibilities for hacking and salvaging components from old "junk" electronics!continue reading →