Fundamentals 5 min read

How to Flash Hackaday Badge 2018

ai.rs Jun 19, 2018

Hackaday Belgrade 2018

Hackaday organized a wonderful conference in Belgrade in May 2018. Traditionally, each participant received a special badge — this time a small computer based on a 32-bit Microchip PIC32 CPU that supports writing in customized BASIC. It's ideal as a small serial terminal with keyboard and display.

Hackaday Belgrade 2018 Badge

The Problem

The badge shipped with firmware v1.00 where the kin BASIC function (keyboard input) didn't work. To use the badge as a serial terminal, you need to flash a newer firmware. But because the badge uses a Microchip PIC controller (old school!), a simple USB-to-serial cable isn't enough — you need a PICkit3 programmer.

What You Need

  • PICkit3 USB programmer
  • MPLAB X IDE (v4.15 or newer)
  • Badge firmware v1.04 (badge1.X.production.hex)

Flashing Steps

1. Install MPLAB X IDE

Download and install from Microchip's website.

2. Connect PICkit3 to Badge

PICkit3 connection to Hackaday Badge

Important: the left pin is unconnected!

3. Flash the Firmware

Open MPLAB IDE, choose 32-bit MCU, device PIC32MX370F512H. Select the firmware hex file and click "Program".

4. Verify

After success, you'll see v1.04 in the bottom right corner of the badge display:

Hackaday Badge running firmware v1.04

Using the Badge as a Serial Terminal

Wiring

Badge Pin Serial Cable
GND Ground
TX (C14) RX (white)
RX (C13) TX (green)
Leave voltage disconnected Red wire — do not connect

Connect

screen /dev/tty.XXXYYY 19200

BASIC Program

Write this on the badge to transmit typed keys over serial:

10 cls
15 wait 500
20 PRINT MyTerminal
30 k = kin 1
40 out k
50 goto 10

Everything typed on the badge will appear in your terminal!

From PIC to AI

The Hackaday community in Belgrade has always been at the intersection of hardware and software — from flashing PIC microcontrollers to building custom AI systems. The same curiosity that drives you to flash a conference badge is what drives us to fine-tune language models.


This article is from the ai.rs archive (originally published on the old ai.rs tech blog). Today, ai.rs builds custom AI assistants for businesses.

Explore what we do now:

Share: Post Share

Related Articles