Picto:Bit – A pictogram communicator with HuskyLens 2 and micro:bit
Author: Francisco Javier Carmona del Jesús · CEIP General Fresneda, Jódar (Jaén, Spain)
Difficulty: Intermediate · Time: one afternoon to build, 15 minutes per card set
Tags: HuskyLens 2, micro:bit, AI camera, Tag Recognition, accessibility, autism, AAC, education

Summary
Picto:Bit is an "essential communicator" for students with autism or with oral-communication difficulties. The student shows a pictogram card to a HuskyLens 2 camera and, a moment later, the teacher sees that pictogram full-screen on a laptop and hears it, even from the other side of the classroom.
The student does not have to learn anything new: showing a pictogram is a gesture they already use every day. The only thing that changes is who they show it to.
The challenge
How does a student who does not speak say "I need to go to the toilet" when the teacher is at the other end of the classroom?
Pictograms work very well, but only on one condition: the adult has to be looking at that moment, or the student has to hand the card over. If the teacher is helping another group, or is out in the playground, the message is lost. For a child who already finds it hard to communicate, not being answered is very frustrating. That was the starting point of Picto:Bit, and the problem was raised in our own classroom.
How it works: a pictogram's journey
Only a number travels through the system. Each part turns it into something a person can understand.
- HuskyLens 2 reads the card's AprilTag and gives it a number from 1 to 15.
- micro:bit transmitter (carried by the student, battery powered) sends that number by radio.
- micro:bit receiver (next to the teacher) writes the word on a small OLED screen and passes the number to the laptop over USB.
- Laptop (Python + pygame) shows the pictogram full-screen and plays its audio.

Hardware
| Part | Qty | Notes |
|---|---|---|
| HuskyLens 2 (DFRobot) | 1 | AI camera in Tag Recognition mode, connected to the transmitter |
| micro:bit (V2 recommended) | 2 | One transmitter, one receiver |
| micro:bit expansion board | 1–2 | Makes it easy to connect the camera and the OLED, and to power the HuskyLens |
| OLED 128×64 I2C display | 1 | Connected to the receiver; acts as a control display |
| Battery pack | 1 | For the transmitter; the HuskyLens needs a good power supply |
| USB data cable | 1 | Receiver to laptop (some cables only charge) |
| Windows laptop with speakers | 1 | Runs picto_bit.py |
| Pictogram cards | 15 | Each one with its AprilTag label |
Software: MakeCode for micro:bit (Python view), Python 3.13, pyserial, pygame.
Step 1 – Wiring
Both the camera and the OLED use I2C, with four wires to pins P19/P20.
Transmitter (micro:bit + HuskyLens 2)
| HuskyLens 2 wire | Expansion board pin |
|---|---|
| T (SDA) | P20 (SDA) |
| R (SCL) | P19 (SCL) |
| − (GND) | GND |
| + (VCC) | 3V3 or 5V |
Receiver (micro:bit + OLED)
| OLED pin | Expansion board pin |
|---|---|
| SDA | P20 |
| SCL | P19 |
| GND | GND |
| VCC | 3V3 |
Tip: If the camera does not respond, first check that T goes to SDA and R to SCL. It is the most common mix-up.
Step 2 – Teaching the cards to HuskyLens 2
The camera works in Tag Recognition mode. Each card carries an AprilTag next to the pictogram, which the camera recognises very reliably.
- In General Settings → Protocol, choose I2C.
- Select Tag Recognition and enable Learn Multiple in its parameters.
- Show card 1 and press the learn button. It is saved as ID 1.
- Repeat with cards 2, 3… up to 15, always in order.
The key trick: the ID of each card is the order in which the camera learns it. If you change the order, the student asks for water and the screen shows "toilet". Check every card after learning it, and learn them under the classroom's real light and at the distance the student usually shows them.


Step 3 – Programming the micro:bits
Each board has its own MakeCode program (Python view). Remember to add the extensions to each project, because they are not copied with the code:
- Transmitter: the HuskyLens extension (huskylens2 blocks).
- Receiver: search for oled12864 and add OLED12864_I2C.
Shared MakeCode projects:
- Transmitter: https://makecode.microbit.org/S94147-16441-13294-82944
- Receiver: https://makecode.microbit.org/S22039-08995-60773-61851
Transmitter: three decisions that make it reliable
- Waits for the camera: 3 seconds at start-up, because HuskyLens 2 boots more slowly than the micro:bit.
- Sends 3 times: micro:bit radio does not confirm delivery, so each number is sent three times.
- Does not repeat: if the card stays in front of the camera, it only resends every 5 seconds (or immediately if the card is removed and shown again).
→ See the code section "Transmitter code (MakeCode, Python view)" at the end of this project.
Receiver: fast reception, drawing later
The receiver stores the number as soon as it arrives, ignores repeated copies, writes the word on the OLED and sends the number to the laptop over USB.
→ See the code section "Receiver code (MakeCode, Python view)" at the end of this project.
Both boards must use the same radio group (110). If a school has several Picto:Bits, give each pair a different group.
Step 4 – The laptop program
The laptop runs picto_bit.py (Python 3.13 + pyserial + pygame). It finds the micro:bit automatically, shows the pictogram full-screen without distorting it, plays its audio and reconnects on its own if the cable is unplugged. Images go in img\1.png … 15.png and audio in snd\1.wav … 15.wav.
Installation (PowerShell):
py install 3.13
py -3.13 -m pip install pyserial pygame
For everyday use there is a .bat shortcut on the desktop: no need to open VS Code or MakeCode.
Daily use: three steps, less than a minute
- Switch on the transmitter. A diamond appears while the camera boots.
- Plug the receiver into the laptop. A ✓ appears and "Listo" on the OLED.
- Double-click the desktop shortcut. The waiting screen opens full-screen.
You do not need to know how to program to use it: any colleague at school can switch it on.

What we learned while debugging
| What happened | The lesson |
|---|---|
| The laptop received nothing | Same USB speed on board and program (9600) |
| The wrong pictogram appeared | The numbers must match in all four parts |
| Messages were lost | Store the data first, display it later |
| The camera failed silently | Give the HuskyLens its own power supply |
| pygame would not install | The newest Python is not always the best (use 3.13) |
Next steps
- "I heard you": the receiver confirms arrival, so the student knows the message got through.
- Their own pictograms: adapt the 15 messages to each student.
- Familiar voices: record the audio with the voice of their teacher or family.
- More range: take the message to other classrooms or the playground.
Showcase
Picto:Bit was presented at SIMO Educación 2026 (Madrid) and at Cambia tu Mundo Event.

Resources
- Full repository: https://github.com/fcdeljesus-glitch/picto-bit
- Pictograms: ARASAAC (arasaac.org). Author: Sergio Palao. Licence: CC BY-NC-SA. Owner: Gobierno de Aragón (Spain).
- HuskyLens tag sheet: in the repository (tarjetas folder).
- Laptop program: picto_bit.py in the repository (pc folder).
# TRANSMITTER (micro:bit + HuskyLens 2) - MakeCode, Python view
tagID = 0
ultimoID = 0
ultimoEnvio = 0
# Give HuskyLens time to boot before connecting
basic.show_icon(IconNames.DIAMOND)
basic.pause(3000)
huskylens2.i2c_init()
huskylens2.switch_algorithm(huskylens2.Algorithm.ALGORITHM_TAG_RECOGNITION)
radio.set_group(110)
radio.set_transmit_power(7)
basic.clear_screen()
def enviar(numero: number):
# Send 3 times in case a message is lost
for i in range(3):
radio.send_number(numero)
basic.pause(50)
def on_forever():
global tagID, ultimoID, ultimoEnvio
huskylens2.get_result_tag_recognition()
if huskylens2.available_tag_recognition():
tagID = parse_float(convert_to_text(huskylens2.cached_result_tag_property(1, huskylens2.BasePropertyContentId.ID)))
if tagID >= 1 and tagID <= 15:
# Only send a new pictogram, or the same one after 5 s
if tagID != ultimoID or input.running_time() - ultimoEnvio > 5000:
enviar(tagID)
ultimoID = tagID
ultimoEnvio = input.running_time()
basic.show_number(tagID)
basic.show_icon(IconNames.YES)
basic.pause(500)
basic.clear_screen()
else:
# Card removed: allow the same one to be sent again
ultimoID = 0
basic.pause(100)
basic.forever(on_forever)
# RECEIVER (micro:bit + OLED) - MakeCode, Python view
idRecibido = 0
ultimoID = 0
tiempoUltimo = 0
# 1. VERY FAST RECEPTION (only stores the number)
def on_received_number(receivedNumber):
global idRecibido
idRecibido = receivedNumber
radio.on_received_number(on_received_number)
radio.set_group(110)
serial.redirect_to_usb()
serial.set_baud_rate(BaudRate.BAUD_RATE9600)
OLED12864_I2C.init(60)
OLED12864_I2C.show_string(0, 0, "Listo", 1)
basic.show_icon(IconNames.YES)
mensajes = ["",
"jugar", "desayunar", "ir al patio", "ir al colegio", "ir a casa",
"beber agua", "dibujar", "recortar", "comer", "hacer un puzzle",
"escuchar musica", "pegar", "tablet", "trabajar", "ir al bano"]
# 2. DRAWING IN THE MAIN LOOP
def on_forever():
global idRecibido, ultimoID, tiempoUltimo
if idRecibido > 0:
numero = idRecibido
idRecibido = 0
# Ignore the repeated copies sent by the transmitter
esRepetido = numero == ultimoID and input.running_time() - tiempoUltimo < 2000
if not esRepetido:
ultimoID = numero
tiempoUltimo = input.running_time()
serial.write_line(convert_to_text(numero))
OLED12864_I2C.clear()
if numero >= 1 and numero <= 15:
OLED12864_I2C.show_string(0, 0, mensajes[numero], 1)
else:
OLED12864_I2C.show_number(0, 0, numero, 1)
basic.show_number(numero)
basic.pause(50)
basic.forever(on_forever)






