Monthly Archives: April 2013

State machine example C code

This is example state machine code for the Race to the Wall. In this example, the pin configuration code is not shown. There are four states: Waiting for button to be pressed Waiting for button to be released Forward until … Continue reading

Posted in Uncategorized | Leave a comment

How to make a 3-wire colour sensor module

The dimensions of the mini-sumo class in the Robot Challenge rules are very tight and place space at a very high premium. To save space, I like to try to keep my breadboard design within the limits of one mini … Continue reading

Posted in Uncategorized | 3 Comments

Understanding infrared reflective colour sensors

Most teams participating in DIT’s annual RoboSumo tournament use reflective infrared (IR) sensors to detect the colour of the arena surface under their robot. Most of the ones I see are similar to the OPB704 sensor which is manufactured by … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 4 Comments

How to display C code in a wordpress.com blog post

This post shows how to insert C code into a wordpress.com blog post. When everything is working correctly, the C code should appear like this to someone reading the blog post: Here’s how the C code above looked when I … Continue reading

Posted in Uncategorized | Leave a comment