R/Evolution AXE027 User manual

AXE027 PICAXE USB CABLE
revolution RevolutionEducationLtd. Email:[email protected] Web:www.picaxe.co.ukv2.202/09 AXE027.PMD
Index:
1.0) Introduction
2.0) General tips for using the AXE027 USB cable
3.0) Windows 2000/XP/Vista Installation
3.1) Windows 7 (32/64 bit) Installation
4.0) Linux Installation
5.0) Mac OS X Installation
6.0) Windows CE/PocketPC/Mobile Installation
7.0) PICAXE Download Circuit
8.0) AXE027 Circuit Diagram
1.0) Introduction
The PICAXE USB download cable is used to download PICAXE programs into
PICAXE chips. It can be used with any PICAXE chip or project board. The cable is
compatible with any software application that supports programming of PICAXE
chips.
The PICAXE USB download cable connects via the computer’s USB port. However
the cable contains a tiny circuit board, moulded into the compact USB connector.
This circuit contains a USB to serial convertor chip, and so the actual data transfer
to the PICAXE chip is via a 5V logic level serial connection.
2.0) General tips for using the AXE027 USB cable
Always plug in the USB cable before starting the software application.
Always use the USB cable in the same USB port on your computer.
Most operating system regards each individual USB port as a unique location.
Therefore if you plug your cable into a different USB port on the computer you
may be prompted to reinstall the driver files for this new location.
The USB cable’s internal circuit board is powered by the computer’s USB port.
Therefore remove the cable from the PICAXE project when the USB end of the
cable is not inserted into a computer, as the cable will not then be powered.

2
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
3.0) Windows 2000/XP/Vista Installation (see section 3.1 for Windows 7)
When the AXE027 software driver is installed, the Windows operating system automatically
allocates the USB cable a ‘virtual COM port number’ to be used (e.g. COM5) within the
PICAXE software. This virtual COM port number will vary between computers, but can also be
changed to a different number if desired.
After you have installed the drivers, if you are not sure
which COM port number has been allocated, you can use
Windows ‘Device Manager’ to study the configuration. To
use Device Manager click:
Start > Control Panel > Performance & Maintenance >
System > Hardware > Device Manager
or in classic view
Start > Settings > Control Panel > System > Hardware >
Device Manager
The Device Manager will then start - click the ‘+’ symbol beside ‘Ports (COM & LPT)’ so that all
the entries are visible. Beside the ‘AXE027 PICAXE USB’ entry will be the currently allocated
COM port number. The instructions given later in this manual explains how to change this
COM port number if necessary.
3.01) Installing the AXE027 PICAXE USB Cable Driver
The first time you connect the AXE027 PICAXE USB cable you will be automatically prompted
to install the software driver files. These driver files can be found on the Programming Editor
CDROM (in the USB_drivers_AXE027 folder) or downloaded free of charge from the software
downloads section at www.picaxe.co.uk.
Please ensure you are using the correct driver package for your operating system.
The available Windows driver options are:
- Windows Vista, XP, 2003, 2000, ME, 98SE
There is no operating system support for USB in Windows 95 or NT.
If using the downloaded driver files from the website, unzip the downloaded files into a
temporary folder (e.g. c:\temp) before proceeding. On computers setup with user accounts (e.g.
school networks) please ensure you are logged in as an ‘administrator’ before proceeding.
Step 1
Plug the AXE027 USB cable into an available USB port on
your computer. Remember which port you have used as it is
important to always use the same port in the future.
After a few seconds Windows will recognise that the cable
has been inserted and will automatically prompt you with
the ‘Found New Hardware’ wizard.
Do NOT connect to Windows Update - as you have already
downloaded the correct driver files. Therefore select ‘No’ then
click ‘Next’.

3
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
Step 2
Select ‘Install from a list or specified location (Advanced)’
and then click ‘Next’
Step 3
Select ‘Search for the best driver in these locations’.
Remove the tick from the ‘Search’ box and add a tick beside
the ‘Include’ box. Click the ‘Browse’ button and then
browse to the driver folder. This is either the appropriate
folder within the ‘USB_drivers_AXE027’ folder on the
Programming Editor CDROM or the temporary folder on
your hard-drive where the website downloaded driver files
have been saved (e.g. c:\temp).
Click ‘Next’
Step 4
If a Windows logo testing warning is displayed click
‘Continue Anyway’
Note that the generic FTDI software drivers to be installed during
this process have already passed Windows logo testing. However
due to legal reasons when distributed by a third party (e.g.
Revolution) they cannot currently be marked as passed.
Step 5
Click ‘Finish’ when the installation completes.
Step 6
Please note the entire process (steps 2 to 5) will now
repeat. This is completely normal as the Windows
operating system requires two separate driver files for the
AXE027 cable to operate.
The Windows operating system will now automatically allocate the
AXE027 USB cable a default ‘COM port number’ to use within the
Programming Editor software. However this automatically
allocated COM port number may not be suitable (e.g. COM20)
and may need to be re-assigning to another port (e.g. COM4).

4
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
3.02) Changing the default ‘COM Port Number’
After initial driver installation, the Windows operating
system will automatically allocate the AXE027 USB cable a
default ‘COM port number’ to use within the Programming
Editor software. However this automatically allocated port
number may not be suitable (e.g. COM20) and may need re-
assigning to another COM port number (e.g. COM4).
Step 1
Start the Programming Editor software.
Select the View>Options menu and click on the ‘Serial Port’
tab. Note which ports are greyed out (not used).
Select one of these greyed out port numbers (e.g. in this
example COM4)
Click the ‘Setup’ button to launch Device Manager.
Step 2
Click on the ‘+’ beside ‘Ports (COM and LPT)’ to browse the
current ports. Select the ‘AXE027 PICAXE USB’ entry and right
click the mouse. Select ‘Properties’.
Step 3
Select the ‘Port Settings’ tab and then click the ‘Advanced…’
button
Step 4
The COM Port number currently allocated is shown on screen
(COM20 in this example).
From the COM port number list select the desired new COM
port number and then click ‘OK’ twice to save the new port
number (none of the other settings need to be changed).
Note that sometimes the Windows operating system marks ports as
‘in use’, even though they are not actually in use at that time. This is
because Windows is ‘reserving’ the COM port number for a
particular device. This can occur, for instance, if you plug your
AXE027 cable into a different USB port on the computer - Windows
is expecting the cable to be inserted into the original USB port and so
is reserving the COM number for that USB port. You may change to
COM ports marked as ‘in use’ but will have to OK the extra
Windowswarningmessage.
Step 5
In the Programming Editor now click the ‘Refresh’ button.
The desired COM port should now become available. Select
this port and then click ‘OK’. The system is now ready for use.
This process is only required once as Windows automatically saves
the COM port settings for this cable for future use (when used in this
USB port location).

5
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
3.1) Windows 7 (32 & 64 bit) Installation
When the AXE027 software driver is installed, the Windows
operating system automatically allocates the USB cable a
‘virtual COM port number’ to be used (e.g. COM3) within the
PICAXE software. This virtual COM port number will vary
between computers, but can also be changed to a different
number if desired.
After you have correctly installed the drivers, if you are not
sure which COM port number has been allocated, you can
use Windows ‘Device Manager’ to study the configuration. To
view Device Manager click:
Start > Control Panel > Hardware and Sound
then click
‘Device Manager’ which is under ‘Devices and Printers’
section
The Device Manager will then start - click the ‘+’ symbol beside
‘Ports (COM & LPT)’ so that all the entries are visible. Beside
the ‘AXE027 PICAXE USB’ entry will be the currently allocated
COM port number.
3.11) Installing the AXE027 PICAXE USB Cable Driver
Due to the new way Windows 7 handles driver installation the
installation process is slightly different to XP / Vista.
The screenshots below were taken from “Windows 7
Home Premium (64-bit)” - other versions may vary slightly.
Step 1 - Download the driver files
Download driver file axe027.zip from the software pages at
www.picaxe.co.uk (driver must be version 2.06 or later)
Extract (unzip) the files into a new folder on the desktop (e.g.
shown as axe027_win7 in these screenshots)
Step 2 - Let Windows 7 attempt to background detect and
install a signed driver
Connect the AXE027 cable to the desired USB port. Remember
you must always use the same USB port.
Leave for 5 minutes - have a coffee! During this time Windows
7 will attempt to background load a driver automatically and
task bar messages such as those shown will appear.
This automated process will eventually fail, do not worry - this
is expected as we wish to manually install the driver.

6
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
Step 3 - Manually Install AXE027 Driver
Click Start > Control Panel
Click 'View Devices and Printers' in the 'Hardware and
Sound' section
Right Click over 'AXE027 PICAXE USB' and select Properties
Click Hardware Tab
Highlight (click on) 'AXE027 PICAXE USB' in the list
Click Properties button
Click 'Change Settings' button

7
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
Click 'Update Driver'
Select 'Browse my Computer for driver software'
Click Browse button and select the downloaded drivers
folder. Click Next.
Select 'Install this driver software anyway' on the Security
warning.
When installation completes close all open windows
This process MUST now be repeated to setup the Virtual USB serial
portdriver.
Step 4 - Manually Install Virtual USB Port Driver
Click Start > Control Panel
Click 'View Devices and Printers' in the 'Hardware and
Sound' section

8
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
Right Click over 'AXE027 PICAXE USB' and select Properties
Click Hardware Tab
Highlight (click on) 'USB Serial Port' in the list (instead of
'AXE027 PICAXE USB' which was used last time)
Click Properties button
Click 'Change Settings' button
Click 'Update Driver'

9
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
Select 'Browse my Computer'
Click Browse button and select the downloaded drivers
folder. Click Next.
Select 'Install this driver anyway' on the Security warning.
When installation completes note the new COM port
number in the title bar of the 'succesful update' message.
This is the COM port number to be used in the PICAXE
software (e.g. COM3 shown in this screenshot).
When installation completes close all open windows

10
revolution (c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09 AXE027.PMD
PICAXE USB CABLE
4.0) Linux Installation
The AXE027 cable contains an internal electronic circuit,
based upon an FTDI USB<>serial converter chip. This chip is
already supported by the default Linux installation, via the
kernel driver named ‘ftdi_sio’ (kernel 2.4.20 and later).
Therefore no driver download is required.
However, as many different products from many different companies all use the same FTDI chip,
each product is given a unique ‘product id’ number for identification purposes. This unique product
id is programmed into the chip inside the cable, so that when the cable is connected to the
computer it can be uniquely identified.
The unique product id for the AXE027 USB cable is 0xbd90. The vendor id is 0x0403.
However the default driver ftdi_sio, as installed by most Linux distributions, only recognises a
couple of (default) product ids for the FTDI chip (e.g. 0x6001). Therefore it is required to ‘patch’ the
driver so that it correctly supports the AXE027’s 0xbd90 product id.
There are 3 different ways to do this, depending on user expertise with using the Linux operating
system.
Option 1 is to simply patch (“modprobe”) the driver details every time the cable is used. This is very
simple, but needs to be carried out every time the computer is restarted (before the AXE027 cable is
inserted). This method also works when running Linux from a Live CD (without installation).
Option 2 (recommended) is also fairly straight forward, and permanent as it involves adding a new
‘udev rule’ file to the operating system. The rule runs automatically each time the computer boots.
Option 3 is advanced and only for those familiar with kernel module recompiling. It involves
modifying the original driver source code and recompiling.
All 3 options are checked for correct operation in the same simple way – after inserting the AXE027
cable into the USB port the symbolic link file called
/dev/ttyUSB0
should automatically appear within the operating system.
Note that any application using the AXE027 cable needs to address this USB symbolic link
/dev/ttyUSB0
which is not the same as the traditional serial (e.g. “COM1”) port link
/dev/ttyS0
Remember the Linux operating system is case sensitive - ‘ttyusb0’ is not the same as ‘ttyUSB0’. If you
have more than one similar USB device attached the name of the second device will be ttyUSB1 etc.
The following instructions were tested on an Asus eeePc 900, running the default Xandros (Debian
derived) distribution and on a PC booted with a Ubunto live CD (not installed).
Note that although the principles are the same for most Linux distributions, different distributions
will use different methods for becoming root (aka “superuser”) (e.g. use su -l rather than sudo) or
for opening a Console Terminal. See the online documenation for your distribution for more
specific details.
Table of contents

















