Tethered Robot Motor Control Test

Date: 1994
Type: Program
Platform(s): ZX81, TS 1000

ZX81 test for the tethered robot’s I/O interface and motor board: it POKEs a 5-byte OUT (31),A routine into the line 1 REM, then is meant to ask for a control number (1 or 2 for one motor forward or back, 4 or 8 for the other, 5, 9, 10, 6 for both, 0 to stop) and send it to port 31.

As printed, the last three lines are all numbered 110, so only 110 GOTO 100 is kept and the program never asks for a number. The project, an I/O board and a motor board on VEROboard, is from Rupert Goodwins in Sinclair User, November and December 1986.

Published in Sinc-Link March-April 1994 (ZX81 Resources: A Tethered Robot).

Related Articles

This project was found in the November and December 1986 issues of SINCLAIR USER and is suitable for both the 2068 and the ZX81.

Image Gallery

Source Code

1 REM XXXXXXXXXXX
10 FOR X=16520 TO 16524
20 INPUT A
30 POKE X,A
40 NEXT X
100 PRINT "INPUT CONTROL NUMBER: 1,2, 4,8, 5,9,10,6, 0"
110 INPUT X
120 POKE 16521,X
110 RAND USR 16520
110 GOTO 100

Input the following machine code ignoring the information after the semicolon:
62  0           ;LD A,0
211 31          ;OUT 31,A
201             ;RET

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.