
Assembly:
The following steps give instructions on how to assemble and setup the
ACCESS:bit on first installation.
1.
Place servo into the mount position from the front of the PCB, so the servo
mounting points line up with the holes on the PCB.
1.
Program the BBC micro:bit with
the following code.
Once the BBC micro:bit has been
programmed with the test code, turn
on the PCB with the slide switch.
After switch on, the servo will centre.
ACCESS:bit for the BBC micro:bit
www.kitronik.co.uk/5646
2.
When the servo/barrier is in its
down position, place the red Perspex
barrier horizontally onto the servo
gear. Make sure that the barrier is
pointing outwards away from the PCB.
The barrier is designed to be a push fit
on to the servo gear. If required, then
fit a screw through the washer onto
the servo gear.
2.
Using the two large screws from
the packet of fixings that came
with the servo, screw through the
PCB into the servo. Do this for both
top and bottom holes in the PCB,
then connect the servo to the
required pin header on the rear of
the PCB.
The servo wire should be plugged
in with the ‘Orange’ wire
connected to P0 and ‘Brown’ wire
connected to 0V
3
. For attaching the BBC micro:bit,
place the BBC micro:bit on the
back of the PCB (facing the front).
Using the 5 x M3x8 bolts, place
each one through the PCB and BBC
micro:bit and attach a single M3
nut onto the thread. Make sure the
nut is securely fastened against the
PCB.
Alternatively, use croc-clips to
connect the PCB pads to the
matching pins on the BBC micro:bit
Software:
Custom MAKECODE blocks have been created for driving the servo and
sounding the buzzer. To add them to the editor, click the cog icon in the top
right hand corner of the editor. Select Extensions from the menu. Type Kitronik
access:bit into the search box, and select the Access:bit extension. The
following blocks will be added to the editor:
•
Servo
“Move” block: The block allows the barrier to be controlled and
which position (up or down) to have the barrier.
•
Buzzer
“Sound” block: The block allows to drive a long or short beep and
how many beeps to sound.