Saturday, August 30, 2008

Friday, August 29, 2008

Bluetooth Controlled Lights

Today I finally finished my wireless colored lights that are controlled with bluetooth. I used the BlueSMIRF Gold on one of the Axon's UART lines and wrote up a program that "listens" on the BlueSMIRFs Rx line ( the line where the incoming serial data is) for the key presses. There are four colors of LEDs and each is controlled by the first letter of the color ( the code for white is "w" ). I used ZTerm on MacOSX as the terminal emulator . It has extremely long range as well - I can control the lights from the second floor when the lights are in the basement.




Here is the code used:

Defines:
// *************** Bluetooth Lights ****************
#define blue_on PORT_ON(PORTC,0)
#define yellow_on PORT_ON(PORTC,1)
#define red_on PORT_ON(PORTC,2)
#define white_on PORT_ON(PORTC,3)
void all_off(void)
{
PORT_OFF(PORTC,0);
PORT_OFF(PORTC,1);
PORT_OFF(PORTC,2);
PORT_OFF(PORTC,3);
} // end routine
// *************END BLUETOOTH Setup******************


Code (example show is for blue only , just change the letter and color for the others):

char cByte = uart0GetByte(); // get byte from UART0 on the axon
if (cByte == 'b') // if character received is b then
{
all_off(); // turn all LEDs off
blue_on; // turn only blue LED on
}


Tuesday, August 26, 2008

Update for Servo Position Calculator

I fixed some bugs and also added option buttons on the side of the servo wheel so that you can just click for the following angles = -90 , -45, 0 , 45, 90 .

For manual control just enter the value in the proper text box and press Calculate to get the other values.

Here is the download link for the newest version:
http://rapidshare.com/files/140300072/Servo_Calculator_Setup.zip.html

Monday, August 25, 2008

BRAT Bipedal Robot Update

I played around with the BRAT biped robot and the Axon and I finally got it to walk. The gait is not perfect yet but its a start. The servo position calculator program the I made really helped me out. The entire program was made in C and the timing for the servo is cycles based. The Axon is a really powerful microcontroller board and its extremely easy to use.

More updates to come within the next week when I perfect the gait and add on an accelerometer.

Heres a video of it walking:

Servo Position Calculator

I've been working on my biped for about a week now and it was getting annoying to figure out the amount of cycles needed each time. So I developed a servo position calculator that calculates the angle, cycles delay,milliseconds delay, and microseconds delay for a servo when given at least one variable. It even visually displays the turn of the servo onscreen.

Note: this version is for 16mhz only

Download it from here:
http://rapidshare.com/files/140067901/Servo_Position_Calculator.zip.html

Saturday, August 23, 2008

Updates in Robotics Projects

Heres a quick list of what I am currently working on and what to expect from me in the next couple of weeks.

1. I'll be writing a tutorial for interfacing the CMUcam with John Palmisano's Axon microcontroller board (available at SocietyofRobots.com)
2. Brandt Daniels and I are gonna team up and write a tutorial on interfacing the BlueSMIRF gold to an AVR based microcontroller board
3. I'll be documenting my small scale BRAT biped robot. I was shocked to see that not one person posted up any documentation on using that biped robot with any microcontroller board besides the included Atom Bot Board which uses BASIC. I'll be documenting how to use the BRAT biped with the Axon microcontroller which uses C.
Heres a pic of my biped robot with the Axon microcontroller board mounted on.

Sunday, August 17, 2008

New Parts

I just ordered a whole lot of new parts I have been aching to get ever since I started doing work in robotics. I bought a BlueSmirf Gold Module, an RF link Module , 3 axis accelerometer , digital compass, USB to RS232 Adapter, RS-232 to IDC adapter, some high power LEDS, and a BRAT bipedal robot kit.

Can't wait until I get to play with all these parts.

Also, if any readers have any cool projects they've built lately , send me an email and I'll post a link to your project from my site.

,Eric

Thursday, August 14, 2008

New Project: Giant Biped Robot

My latest personal project is a giant biped robot for me to ride on. This is probably the most ambitious project I have ever undertaken and I expect it to be done by next year. The biped robot will be a dynamic balancer and will be 5 to 6ft tall , plus another few feet taller with me sitting on it.

It will be loosely based off the BRAT robot biped . By loosely based I mean it will have the same joints and will use motors not pneumatics. More updates to come

Contest Prizes

Its been a while since I've last updated this blog - way too busy with designing projects.

Anyway my robot butler robot tutorial was a finalist in the Instructables Contest and was also a finalist in the Trossen Robotics Contest. Basically I won T-shirts and a Gift Certificate.

I'll keep on entering Chives into more robot contests that turn up in the future.