Using BBC BASIC for Windows  with the
Velleman K8055 and K8061 USB Interface Boards

I bought a Velleman interface board some time ago and found that there is a distinct lack of code examples on the web, particularly in a nice little language like BBC BASIC for Windows.  BBC BASIC is ideal for this task as it is an interpreted language and as soon as a line of code is written, it can be run and tested on the fly. All the programs run in their own window and hence your computer stays multi-tasking at all times.

Here are a few simple programs and projects for anyone interested in these things to play with. The overall idea is to make things as simple and as basic as possible, so I have attempted no fancy programming  or showing off whatever. All variable names are as descriptive as possible, to make understanding a bit easier. However, don't expect massive amounts of explanatory REM statements. I am an indifferent typist and lazy to boot!

 I give suggested circuit boards layouts, but as many components  vary so widely, some of this will be of limited use. Also, I like to etch my own circuit boards and I fully realise that this is a minority sport. Feel free to contact me if you think I might be able to help.

The resistor in placeHere is a little trick which others may find useful. The ADC input of the board can be amplified by adding resistors R8 and R9 (R53 and R54 in the new K8055N). Velleman explains it in the leaflet. Rather than unsolder and resolder these components frequently, I fitted two link posts and soldered the desired resistor to two links. This enables me to fit any resistor of choice as easily as I can remove it when not wanted.  A 3k3 resistor link is shown below and in place on the left.  You can work out the resistor for any required gain (within reason) by using the formula Gain=1+(10k/Rx)

I found this little trick quite useful.

The link resistor


The K8061 is a new addition to my collection and there is a page about it via the link below.

Velleman K8061 board

Most of the programs written for the projects below also come with code for the K8061.

Some links

The projects

The msf sprite

Mainflingen atomic clock 

The msf sprite

MSF 60kHz atomic clock

    with video

The project sprite


NewTacho-generator speed controlNew

with video

The pwm project

Motor control using pulse width modulation

for one motor

 video

Quaker sprite


A simple earthquake detector

Just another sprite

Motor control using pulse width modulation

for two motors

 video

The h-bridge sprite


Motor control using pulse width modulation

Newusing a LMD18200 H-BridgeNew

with video

The LED big top

Playing with LEDs

With 8 LEDs

With 16 LEDs with video

Stepper sprite


2-stepper motor driver

with video

Motor sprite

A twin dc motor controller

with video

The scope

newA very slow oscilloscopenew

Quaker 2 sprite

Another earthquake detector

Light follower sprite

A simple light follower

with video

Output trace

Testing the K8061 PWM output

with video

Light seeker sprite

A simple light seeker

with video
Three colour project

A 3-colour LED project

with video

Traffic sprite

A traffic lights simulation

with video

Three colour project

A high I stepper driver

with video

Mains controller sprite

A 4-channel mains controller

dual 7-segment display

A dual 7-segment display

with video

Pendulum sprite

The chip and the pendulum 

with video

section of the K-8061 board

The Velleman K8061 board

a few lines of BASIC

Programming the projects
with BBC BASIC for Windows




A link to the title page

Tudor with sign