--- title: "Tethered Robot Motor Control Test" id: 77500 type: "computer_media" slug: "tethered-robot-motor-control-test" url: "http://localhost/computer_media/tethered-robot-motor-control-test/" markdown_url: "http://localhost/computer_media/tethered-robot-motor-control-test.md" published_at: "2026-11-15T18:38:11+00:00" modified_at: "2026-11-15T18:38:11+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/robot-motor-control-test-1.png" excerpt: "Drive a home-built robot's two motors from the ZX81 through port 31; the printed line numbers stop it working." post_tag: - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" genre: - name: "Interfacing" slug: "interfacing" taxonomy: "genre" url: "http://localhost/type/interfacing/" media_type: "Program" mediadate: "1994" images: - url: "http://localhost/wp-content/uploads/2026/11/robot-motor-control-test-1.png" article_media: - id: 23807 title: "ZX81 Resources: A Tethered Robot" type: "article" url: "http://localhost/article/zx81-resources-a-tethered-robot/" media_type_tags: "Interfacing" license: false --- # Tethered Robot Motor Control Test 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](https://timexsinclair.com/article/zx81-resources-a-tethered-robot/)). ## 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 ```