« First Stab at Controller Block Diagram | Main | Block Diagram, Take 2 »

Sat, January 28, 2006 1:07 AM

BlueSMiRF and ATmega32 UART Works!

Pretty cool. I ordered a BlueSMiRF Bluetooth serial modem from SparkFun. It arrived today, and I added it to my desktop ATmega32 breadboard…thing. I got it powered up and bonding with the PowerBook, and I was able to configure the modem using AT commands via ZTerm.

Then I watched some TV, 'cause I'm so freakin' tired.

Then I came back to the BlueSMiRF, and decided to add some serial port code to the ATmega32 firmware. It basically takes a single character off the UART (from '0' to '9'), uses that value as an index into a table, and sets the PWM duty cycle on the motor driver accordingly. Voilá! It works! I now have wireless control over a brushed DC motor.

Cool.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Please enter the security code you see here