However, it would be extremely
difficult — if not impossible — to use
the above approach to implement
the scan on port C, because the port
Cylon15.bas program. If you read
through the program listing, you’ll see
that I’ve used the PICAXE lookup
command to implement our
scanning. If we were just doing an
eight-LED Cylon Eye on port B, there
are other ways to accomplish the
same thing. For example, consider
the following code snippet:
( tempSerialToPi.bas and
tempSerialFromAx.py) to
communicate with the Pi.
C pins are not in numerical order.
Fortunately, the lookup command
solves this problem. All we need to
do is arrange the values in
parentheses so that they match the
physical order of the port C pins.
for index = 1 to 7
pause abit
outpinsB = outpinsB 2
next index
Implementing an RPi /
RazzPi-LCD / RazzPi- 20
System
If we replaced the first for/next
loop in Cylon15.bas with the above
code, the program would be
functionally identically. We could also
use the same approach to implement
the last for/next loop in Cylon15.bas
as well, by dividing (rather than
multiplying) outpinsB by two.
We don’t have enough space to
include a complete RPi / RazzPi-LCD
With minor changes in the pin
and variable definitions, we could use
those two programs as a starting
point for any PICAXE-Pi project that
uses the RazzPi-LCD and RazzPi- 20
boards. In addition, we could also
combine the functions of this
month’s RazzPi-LCDtoLCD.py
program with the
tempSerialFromAx.py program to
enable the Pi to display the PICAXE
data on the RazzPi-LCD’s external
LCD. Now that I think of it, that’s a
great programming challenge!
/ RazzPi- 20 experiment this month,
and I’m sure some readers wouldn’t
be interested anyway. Also, we’ve
already covered the necessary basics
back in the April 2014 installment of
the Primer. In that article, we used
two 08M2 programs
That’s it for this month. If you’re
interested in the RazzPi boards,
check out the additional information
that’s available on my website. In the
meantime, keep those cards and
letters coming, and have fun! NV
DESIGN YOUR SOLUTION TODAY
CALL 480-837-5200
TS-7670 and TS-7680 Industrial Computers
TS-4900 High Performance Computer Module
Up to 454 MHz ARM w/ 256 MB RAM
Up to 1 GHz Quad Core ARM CPU
2 GB Flash Storage
Up to 2 GB DDR3 RAM
Industrial Temperature (- 40 ºC to 85 °C)
DIO, CAN, Modbus, RS-485
WiFi and Bluetooth
S-7670 Features:
4 GB Flash and microSD
GPS and Cell Modem
1x Ethernet
2x microSD Card Sockets
TS-7680 Features:
Qty 1
starts at
Pricing
Qty 100
129 $
Gigabit Ethernet
WiFi and Bluetooth
SATA II and PCI-Express
Qty 1
134 $
99 $
168 $
Industrial Temperature (- 40 ºC to 85 °C)
Qty 100
starts at
Pricing
DIO, CAN, COM, I2C, I2S
Supports Linux & QNX
24 VAC Power Input
2x Ethernet
Low cost plastic
enclosure available
Android & Windows Coming Soon TS-TPC-8390 touch
panel computer
available
TS-8150 PC/104
development
board available
November 2014 19
ve never
continued a
duct in 30 years
bedded
tems that are
lt to endure
que embedded
utions add value
our customers
port every step
he way with
n source vision OPEN RUGGED LONGLIFE ORIGIN GIAL