Serial Communications with Badge

A project log for Badge for Hackaday Conference 2018 in Belgrade

In the 1980's, you had to know programming to use computers. They were used for... guess what? Computing! Want to see how it looked?

Mike SzczysMike Szczys 05/14/2018 at 21:464 Comments

A serial-to-TTL cable will allow you to communicate between the badge and a computer. If you own one of this cables we highly recommend you bring it with you! We will have cables on hand but it will be necessary to share them so extras are great!

Wiring Diagram:

Serial Connection Info:

Linux: Simple Instructions for Transferring BASIC Programs

This quick walkthrough assumes that USB to TTL serial cable will enumerate as /dev/ttyUSB0. Look at dmesg output after plugging cable to ensure this is true.

Setup simple Linux serial connection:

Send a File to Badge

Receive a File from Badge


bosko wrote 05/16/2018 at 13:27 point

Is it possible to connect Badge with Serial communication, example to communicate with Arduino ?

  Are you sure? yes | no

jaromir.sukuba wrote 7 days ago point

Yes it is. There is UART on badge, brought to expansion header, you have the same on arduino. Note that badge has 3,3V levels.

  Are you sure? yes | no

bosko wrote 6 days ago point

@jaromir.sukuba  will be there some documentation about it ? or just append above here on this log how we can make that communication. Above log i can see only how to transfer programs PC <> Badge

  Are you sure? yes | no

jaromir.sukuba wrote 6 days ago point

@bosko The documentation is still in process, as well as final software. Apart from using serial port as backup to save/load your BASIC programs to PC, you have other options.

* There are words to send/receive data from BASIC program on badge.

* You can send/receive serial data to/from virtual Z80 running CP/M.

* You can redirect all badge standard input/output to serial port.

* There will be provided simple C language skeleton with hardware access routines (display, keyboard, UART etc...) if you want to delete badge firmware and load your own.

  Are you sure? yes | no