A smart tile for adding a user interface to a system.
XRoar - Dragon & CoCo emulator XRoar is a Dragon emulator for Linux, Unix, Mac OS X and Windows. Due to hardware similarities, XRoar also emulates the Tandy Colour Computer (CoCo) models 1 & 2.
(April 1, 2009) Evan Doll provides an overview for the Stanford Computer Science department course, iPhone Application Programming (CS193P).Stanford Universi. ToolShed is a package of utilities to perform cross-development from Windows, Linux or Mac OS X computers to the Tandy Color Computer and Dragon microcomputers. Tools are included to read/write both OS-9 RBF disk images and CoCo Disk BASIC disk images, generate cassette WAV files and more.
The Elektor COol COntroller COncept CoCo-ri-Co is a little digital potentiometer module that allows you to add a rotary control to any project. It takes care of the hassle of rotary encoder interfacing and outputs the encoder’s position as a clean, clear numeric value. A two-color LED ring around the encoder provides visible feedback and a buzzer can be mounted for audible feedback. The module communicates over a serial bus (UART, I²C, SPI) and is fully configurable. It can be controlled from a microcontroller or it can be the main microcontroller of an application. A tiny trimmer lets you choose the serial port protocol that CoCo-ri-Co will use without reprogramming anything. Being completely open source and reprogrammable over a normal serial port, you can modify it as you wish.
This diagram shows the commonly used interfaces and their locations. Note that all the numbered pins (P0_XX) can also be used as DigitalIn and DigitalOut interfaces.
A special carrier board provides an mbed interface and power supply for the hexagonal CoCo-ri-Co board. It also breaks out the MCU pins on two handy extension connectors.
The CoCo-ri-Co board is available from Elektor
Here is a webinar explaining the philosophy behind the CoCo-ri-Co board.
While holding down the bootload button BL (S1) on the CoCo-ri-Co carrier board, connect the board to a free USB port on your PC. It will appear as a disk called CRP DISABLD.
Open the new disk and delete the (only) file firmware.bin that is on it. Download and copy the latest firmware onto the new disk.
Disconnect the CoCo-ri-Co carrier board from the PC, and plug it back in again. The USB disk will now appear as a normal mbed disk called DAPLINK.
That was not too hard, wasn't it?
Use the USB lead to connect your mbed to a PC. The status light will come on, indicating it has power. After a few seconds of activity, the PC will recognise the mbed Microcontroller as a standard USB drive.
Windows XP example | Mac OS X example |
Go to the new USB Drive, and click MBED.HTM to open it in a web browser.
If you do not have an mbed account, choose 'Signup', and create your mbed Account. Otherwise, log in with your normal username and password.
This will give you access to the website, tools, libraries and documentation.
Your mbed Microcontroller can appear on your computer as a serial port. On Mac and Linux, this will happen by default. For Windows, you need to install a driver:
See Windows-serial-configuration for full details about setting up Windows for serial communication with your mbed Microcontroller
From a host PC to communicate with mbed you will need a terminal application
. This allows the mbed Microcontroller to print to your PC screen, and for you to send characters back to your mbed.
Some terminal programs (e.g. TeraTerm) list the available serial ports by name. However, if you do need to know the identity of the serial port so that you can attach a terminal or an application to it:
Windows | Mac | Linux |
Find the identity of the COM port by opening 'Device Manager'. To do this navigate 'Start -> Control Panel -> System -> Hardware -> Device Manager'. | To find the device name under Mac OS X, use the command 'ls /dev/tty.usbmodem*' | To find the device name under Linux, use the command 'ls /dev/ttyACM*' |
Download the 'Blinky' binary file (the source code for this program will be seen in the next section).
Save the program binary file to your mbed microcontroller disk, just like you would with a normal USB disk. The Status LED will flash as the PC writes the file to the microcontroller disk. The file is now consumed.
When the Reset Button in pressed, the microcontroller will be reset and the last programmed application will begin to run.
The microcontroller is now running the program, flashing LED4 on the carrier board forever! If you reset the microcontroller, or disconnect and reconnect the power, the program will simply restart.
The example program for mbed pin-compatible platforms
Last commit 08 Apr 2019 by
Here is a little demo that shows how to control the LED ring on the CoCo-ri-Co board. The circle will alternatingly fill red and green, going clockwise. The LED in the middle of the board will flash and alternate between red and green at a rate of 1 Hz.
Simple demo showing how to control the CoCo-ri-Co LED ring.
Last commit 21 Jun 2016 by
Follow the guide to creating your own programs using the online compiler
A smart tile for adding a user interface to a system.
The Elektor COol COntroller COncept CoCo-ri-Co is a little digital potentiometer module that allows you to add a rotary control to any project. It takes care of the hassle of rotary encoder interfacing and outputs the encoder’s position as a clean, clear numeric value. A two-color LED ring around the encoder provides visible feedback and a buzzer can be mounted for audible feedback. The module communicates over a serial bus (UART, I²C, SPI) and is fully configurable. It can be controlled from a microcontroller or it can be the main microcontroller of an application. A tiny trimmer lets you choose the serial port protocol that CoCo-ri-Co will use without reprogramming anything. Being completely open source and reprogrammable over a normal serial port, you can modify it as you wish.
This diagram shows the commonly used interfaces and their locations. Note that all the numbered pins (P0_XX) can also be used as DigitalIn and DigitalOut interfaces.
A special carrier board provides an mbed interface and power supply for the hexagonal CoCo-ri-Co board. It also breaks out the MCU pins on two handy extension connectors.
The CoCo-ri-Co board is available from Elektor
Here is a webinar explaining the philosophy behind the CoCo-ri-Co board.
While holding down the bootload button BL (S1) on the CoCo-ri-Co carrier board, connect the board to a free USB port on your PC. It will appear as a disk called CRP DISABLD.
Open the new disk and delete the (only) file firmware.bin that is on it. Download and copy the latest firmware onto the new disk.
Disconnect the CoCo-ri-Co carrier board from the PC, and plug it back in again. The USB disk will now appear as a normal mbed disk called DAPLINK.
That was not too hard, wasn't it?
Use the USB lead to connect your mbed to a PC. The status light will come on, indicating it has power. After a few seconds of activity, the PC will recognise the mbed Microcontroller as a standard USB drive.
Windows XP example | Mac OS X example |
Go to the new USB Drive, and click MBED.HTM to open it in a web browser.
If you do not have an mbed account, choose 'Signup', and create your mbed Account. Otherwise, log in with your normal username and password.
This will give you access to the website, tools, libraries and documentation.
Your mbed Microcontroller can appear on your computer as a serial port. On Mac and Linux, this will happen by default. For Windows, you need to install a driver:
See Windows-serial-configuration for full details about setting up Windows for serial communication with your mbed Microcontroller
From a host PC to communicate with mbed you will need a terminal application
. This allows the mbed Microcontroller to print to your PC screen, and for you to send characters back to your mbed.
Some terminal programs (e.g. TeraTerm) list the available serial ports by name. However, if you do need to know the identity of the serial port so that you can attach a terminal or an application to it:
Windows | Mac | Linux |
Find the identity of the COM port by opening 'Device Manager'. To do this navigate 'Start -> Control Panel -> System -> Hardware -> Device Manager'. | To find the device name under Mac OS X, use the command 'ls /dev/tty.usbmodem*' | To find the device name under Linux, use the command 'ls /dev/ttyACM*' |
Download the 'Blinky' binary file (the source code for this program will be seen in the next section).
Save the program binary file to your mbed microcontroller disk, just like you would with a normal USB disk. The Status LED will flash as the PC writes the file to the microcontroller disk. The file is now consumed.
When the Reset Button in pressed, the microcontroller will be reset and the last programmed application will begin to run.
The microcontroller is now running the program, flashing LED4 on the carrier board forever! If you reset the microcontroller, or disconnect and reconnect the power, the program will simply restart.
The example program for mbed pin-compatible platforms
Last commit 08 Apr 2019 by
Here is a little demo that shows how to control the LED ring on the CoCo-ri-Co board. The circle will alternatingly fill red and green, going clockwise. The LED in the middle of the board will flash and alternate between red and green at a rate of 1 Hz.
Simple demo showing how to control the CoCo-ri-Co LED ring.
Last commit 21 Jun 2016 by
Follow the guide to creating your own programs using the online compiler