Atmel AVR microcontrollers
Arduino Semaphor
Submitted by chad on Fri, 2008-07-25 04:17I saw a Monty Python skit that used semaphore. It was interesting so I decided to built a robot semaphore system.
Wii nunchuck data logger
Submitted by chad on Sun, 2008-06-15 05:00I wanted to use the wii nunchuck accelerometer for some measurements. I didn't really want to drag my computer around, so I built a little data logger. The nunchuck accelerometer data gets written to an eeprom. Then later I can download the data to my PC.

Using Microchip 25LC080 serial eeprom with an Arduino
Submitted by chad on Sat, 2008-05-03 13:21I am working on a data logger for the wii nunchuck. I need something to record the accelerometer values that get output from the nunchuck. I had a Microchip 25LC080 eeprom handy and decided to hook it up to my Arduino.
The Arduino site has a great tutorial on working with serial eeproms http://www.arduino.cc/en/Tutorial/SPIEEPROM . I used it to get most of my information. The eeprom I am using is a just little different than the one in the tutorial.
Wiimote controlled firefighting robot
Submitted by chad on Sat, 2007-09-01 05:04The Wiimote makes a perfect control system for a fire fighting robot.

It has IR sensors which can detect a candle and a bluetooth transciever to communicate back to a host computer. I use a boebot as the robot platform, an arduino, wiimote and a Linux computer.
Read wii nunchuck data into arduino
Submitted by chad on Tue, 2007-06-05 04:59With a little hacking, data can be read from a wii nunchuck directly into an Arduino, using TWI (aka I2C). The nunchuck contains a 3 axis accelerometer, joystick and buttons for only $19.95. The same accelerometer in kit form, cost $34.95 at Sparkfun. Plus the nunchuck is already wired up in a nice clean case! So the wii nunchuck should fit nicely into anyones robotic project.

Wiimote as bluetooth transciever for an Arduino
Submitted by chad on Sat, 2007-06-02 04:04After some trying, I have been able to use a wiimote for two-way communication for an Arduino. So far I just have a proof of concept. The code is very rough. For the set up and wiring, first look at my earlier entry on using the wiimote for one way communication.
Perl communication to Arduino over serial USB
Submitted by chad on Wed, 2007-04-25 00:50I recently switched from using plain Atmel chips to Arduino. Arduino is a development platform that uses an Atmel Atmege168 chip. It simplifies things a lot.
The Arduino board has a USB port. It has a built in FTDI chip for USB to serial conversions.
This HOWTO shows how to communicate between Perl/Linux and the Arduino. Because of the Arduinos FTDI chip, I can use regular serial communication, I just needed to first set up the USB serial adapter drivers. Most modern linux distro should come with them installed.
The perl script will transmit a number, starting at 0, to the Arduino. The Arduino will then echo that number back to your linux/perl computer.
HOWTO make your own Wiimote peripheral
Submitted by chad on Fri, 2007-04-20 16:48With a little wiring a Wiimote can be made into a cheap bluetooth transmitter for your microcontroller project. Wiimote peripherals like the nunchuk, communicate with the wiimote over I2C (aka Two Wire Interface, TWI). A number of microcontrollers support TWI, such as the Arduino,the Make Controller and Atmels ATmega series. I am using an arduino with a ATmega168 for this project.

HowTo: controlling a stepper motor with an attiny2313
Submitted by chad on Tue, 2006-10-03 04:52Here is how I controlled a stepper motor with an Atmel attiny2313. I found an old stepper motor in my junk box. I remembered it was a unipolar stepper but that was about it. Google couldn't find the part number, so I had no data sheet.

A unipolar stepper motor has four magnet/coils. Each coil must energize in sequence to spin the motor. The coils are in pairs. Each pair shares a common positive line.
The motor has 6 wires so I had to figure out what each was. The colors where: white, black, blue/red, white/blue, white/black. I pulled out my meter and checked the resistance between each set of wires.
HowTo: Serial communication between PC and Atmel attiny2313
Submitted by chad on Wed, 2006-08-16 22:05The attiny2313 has a built in UART for serial communication. You need a few outside parts to allow it to communicate with a PC over a serial connection.

Recent comments
19 hours 46 min ago
1 day 15 hours ago
2 days 16 hours ago
3 days 6 hours ago
3 days 16 hours ago
4 days 4 hours ago
6 days 14 hours ago
1 week 1 day ago
1 week 2 days ago
1 week 2 days ago