Content tagged interface

I have finally found some time to act on my long-standing goal to learn how to program microcontrollers. It's all rather pointless, though, if you cannot make them interact with the surrounding world in some interesting ways. This, in turn, involves quite a bit of analog electronics, which I haven't done all that much. There's a bunch of good materials all over the Internet that can help. I find this one particularly useful. It goes step-by-step through all the basics, as well as op-amps and transistors. The coolest part of it is that you can use what you learn immediately. The microcontroller part is rather rudimentary, so I made the robot play RTTTL ringtones. RTTTL is the same format that Nokia used for their old phones and there is plenty of tunes floating all around the Internet. I used this code as a base and ported it to Energia.

Circuits on the Robot
Circuits on the Robot

Some of the worst soldering ever :)
Some of the worst soldering ever :)

I like MSP-430 because, after programming it, you can remove it from the development kit and solder onto your board.

This is how the robot works:

  1. It plays Scott Joplin's "The Entertainer" tune.
  2. It waits for a noise command to enable the light-following.
  3. It acknowledges the command.
  4. It follows the light.
  5. If it detects no light, it waits for another noise command to leave the following mode.