User Tools

Site Tools

Translations of this page:

en:projects:microbit:start

Forth for the BBC micro:bit

BBC micro:bit

There was an opportunity to have early access to a spare BBC micro:bit.

Matthias Koch took the time and effort to adapt his Mecrsip-Stellaris Forth to the BBC micro:bit hardware.

The complete Mecrisp Github File System contains many files covering the different Controllers it runs on – but which are not necessarily related to the micro:bit.

We want to make it easy to get to the stage of running the first Forth code on the micro:bit.

As result here a Starter Pack.

Suggestions to improve it are welcome.

How do you install Mecrisp onto the micro:bit?

  1. The Serial Interface needs to link with TeraTerm1) software making the PC a display and keyboard for the micro:bit. Make shure you installed TeraTerm. Now get the Starter Pack with:
  2. The Mecrisp Forth hex file to throw into the microbit folder on the PC for programming the micro:bit.
  3. A small example VFXTESTAPPbit.f ASCII file adapted to the existing Microbit Mecrisp Hex File,
  4. The same VFXTESTAPPbit file as Doc for own documentation and extension.
  5. More documentation about the small VFXTESTAPP Forth starting example for PC just using 35 Forth Words with explanations can be found here.
  6. And you can try the VFXTESTAPP example on the PC without any micro:bit by just downloading and starting the vfxtestapp.exe
  7. micro:bit IO Connection Documentation generated by Matthias Koch as there are no official schematics.

More I/O Discussions about the micro:bit in English and as well available in German ( not including Forth but a lot of IO information ) as supporting information and part of the Forth Bookshelf is here.

Have fun trying it out and feedback for additions and improvements can be sent to Juergen Pintaske at epldfpga@aol.com

Documents

Hardware - All the bits and pieces that make up your BBC micro:bit.

All the BBC micro:bit pins

More details about your BBC micro:bit : Specs & Schematic.

Or visit Mo McRoberts, Lead technical architect for BBC Archive Development and BBC Datalab, at github: SCH_BBC-Microbit_V1.3B.pdf
https://github.com/bbcmicrobit/hardware

Check http://tech.microbit.org/ - Hardware designs for the BBC micro:bit - as well.

Inofficial Schematic (PDF) - no warranty for correctness and completeness.

Calliope is the German Version

Calliope

The same basic processor, and the best, the basic Mecrisp Forth Binary Matthias Koch did is identical for both systems.

Now all components are on one side, with added microphone and loudspeaker. The connector holes have been put at the end of the star shape – less risk of short circuits

Github with all of the data:
http://www.calliope.cc/ in German,
http://www.calliope.cc/en and in English .
You can buy it here http://www.exp-tech.de/en/calliope-mini.
Price is a bit higher – but contains components that you have to buy separately with micro:bit.

2 Files as a first step on how the Calliope IO works. Thanks to Matthias Koch for the code and Carsten Strotmann for bringing a Calliope.

Documents

There is an eBook in German and English – not about Forth yet but a lot of examples and background information. And showing small examples that work in other languages, and that can be re-implemented in Forth on both boards as programming exercise.
English https://www.amazon.co.uk/BBC-Micro-Tests-Tricks-Secrets/dp/1541200721/ref=asap_bc?ie=UTF8
German https://www.amazon.de/Micro-bit-Praktikum-Burkhard-Kainka-ebook/dp/B01MQL04TB

How to Start? – Go to A Start With Forth here - most of the relevant eBook contents:
https://wiki.forth-ev.de/doku.php/en:projects:a-start-with-forth:start0

The full eBook is available here for easy read on the mobile
https://www.amazon.co.uk/Start-Forth-2017-Bits-Bites-ebook/dp/B073NMX1XP/ref=sr_1_13?s=books&ie=UTF8&qid=1499278235&sr=1-13

More Clones

The Japanese micro:bit version should be compatible to the original – to be tested https://microbit-playground.co.uk/blog/chibi-microbit-clone



Enjoy these systems; how to use the Bluetooth with Forth will be shown later.

1)
not included in the Starter Pack - TeraTerm download (Heise 2017)
en/projects/microbit/start.txt · Last modified: 2017-11-30 23:35 by mka