Archive for September, 2007

Feeling our way with sensors

Wednesday, September 19th, 2007

The sensors are a critical part of a micromouse. Primus uses six infra-red reflective sensors. Here is code to test that they are working. Now that we have a nice display to show what the sensor reading are, we can get that module tested. Since the hardware is very simple, there ...

Adding a timer and the graphical LCD

Tuesday, September 18th, 2007

This is a fairly big jump. With the LEDs and buttons tested, it is time to add the main graphical display, made from a Nokia cellphone display. Also, there is the main system timer event. The simple user IO is working, and it is time to add a system timer. ...

Revised schematics and pin functions

Sunday, September 16th, 2007

After a bit more thought, there is now a new set of pin assignments for the Primus micromouse, along with a corresponding schematic. The problem with Primus was that it is not possible to generate two independant pulse trains from the PWM generators. All the PWM channels have to share a ...

A bit of a change to Primus

Sunday, September 9th, 2007

It seems I made a bit of a mistake in how I thought the dsPIC could drive its PWM module. Consequently, there will have to be some changes. First, what can't change is the need to use T1CK and T2CK as external inputs to count motor pulses. There are no other ...

Pushing the button on Primus

Sunday, September 9th, 2007

The next stage in testing the Primus hardware is to make sure the buttons are working. Building on Primus 1, the button hardware is tested in the simplest possible way. Calling the readButton() function sets a number of exported variables indicating the button status. These are tested inside a loop in the ...

Robosavvy bipeds at ROBOtic’07

Wednesday, September 5th, 2007

The guys from Robosavvy forum have confirmed that they will yet again be demonstrating their bipedal wares at ROBOtic'07, and are intending to run several competitions. The bipeds were very well received at UK Micromouse 2007, and a promised demonstration of stair climbing could mean that they reach even greater heights ...

A little bit of test code

Sunday, September 2nd, 2007

Once the main board is assembled, it can be tested without waiting for the sensor or motor driver boards to be ready. In time honoured fashion, we start with a little program to flash the LEDs. With any new microcontroller project, it is a good idea to start with some simple ...