A
special Infrared Control Freak - Light sensor module has now been
developed for the PICAXE
range of microcontrollers.
The
version is configured with a compatible 2400 baud serial interface,
offering many new exciting project opportunities for one of the most
easiest microcontroller ranges.


What
is a PICAXE microcontroller?
PICAXE
range of microcontrollers are low-cost, re-programmable chips that
can be used as a low-cost robot 'brain' or in many other kinds of
electronic project.
Example
Prices from www.rev-ed.co.uk
The
chips are based on the Microchip's range of PIC microcontrollers, but are
configured so you don't need any special programmer to
program them.....just a simple serial cable from your PC!
The
program language is based on BASIC language, which is a perfect starting
point for budding technologist to get into this exiting hobby of robotics
and control projects.
All
of the PICAXE controllers will interface with the IRCF_L. However. we
recommend for robot projects that you purchase the extended
version PICAXE - 18X or larger ....as when you get going, you'll need
quite a bit more memory space for your program.
Flier
on PICAXE website
User
Manual on PICAXE website
Easy interface to
PICAXE (2400 baud version)
Some
examples of how to connect the PICAXE are included below. In this example
a PICAXE-18 IC was used.
Place
the PICAXE chip on a simple prototyping PCB. The 5v power supply
on the IRCF can be used to also power the PICAXE and additional servos. A
cable needs to be made to Interface the ICRF-L to the PICAXE.. Ensure to
place the PICAXE microcontrollers into IC-holders so it can be replaced or
upgraded easily.
As
the serial input command (SERIN) in the PICAXE does not 'timeout', it is
difficult to see whether your program is working properly. The best way to
check your PICAXE serial communications is to look at the communications
on your PC using the Docklight
demo software (see user manual for some more details). You can use the
Docklight application as a 'slave' device to simulate the response of the
Infrared control freak or as a Master device to drive the Infrared control
freak.
Setting
up Docklight as a 'slave' device
For
simulating the IRCF command 032, configure the Docklight application
as follows:
1.
Setup the send sequences
This
is the response Docklight will send to the PICAXE microcontroller.

Close
the dialogue box and you'll see the command 032 created as follows: This
can be used later to send to the IRCF on Master mode.

2.
Setup the automated receive sequence:
Now
you'll need to setup a filter that will check the serial port for charters
being sent from the PICAXE microcontroller. In the example below it is
searching for command 032. As soon as the command is sent from PICAXE it
will response with the string setup in the send sequences above.