PicoMite Gives Your Pico A Deluxe BASIC

What makes developing a microcontroller project quick and easy? Tops on our list are an interactive shell and comprehensive libraries that handle all the low-level peripheral stuff. You think we’re talking MicroPython? Not today! MMBasic has just been ported to the Raspberry Pi Pico dev board, and it has all the batteries included.

Just to give you a taste, it has built-in support for SD cards, all sorts of displays, touch screens, real-time clocks, IR remotes, numerous sensors, and of course WS2812 LED strips. And because all of this is baked into the BASIC, writing code to use any of these peripherals is straightforward.

Now, there’s BASIC and there’s BASIC. This is a modern BASIC: it has loops, functions, arrays, floating point, and a built-in full-screen editor. You connect to the Pico via UART, and you’re off to the races. If you’ve got a Pico sitting around, flash it and give it a try. Or check out the GitHub repository if you want to poke around in the internals.

This is a port of the BASIC that’s used on the Maximite virtual retrocomputer platform, which means that there are many working examples out there for you to crib from, and even a forum. Add in the incredibly nice user manual and tutorial (PDF), and you’ve got the perfect weekend afternoon.

Think MicroPython killed BASIC? Think again. BASIC is small enough that it can run where Python can’t, but that’s of course a more minimal experience. In contrast, MMBasic looks like it’s got all the toppings. The whole enchilada. It’s like BASIC Deluxe.

A BASIC Interpreter For The Raspberry Pi Pico

It’s pretty easy to program the Raspberry Pi Pico in Python, or you can use C or C++ if you so desire. However, if you fancy the easy language of yesteryear, you might like PiccoloBASIC from [Gary Sims].

Putting it simply, piccoloBASIC is a BASIC interpreter that runs on the Raspberry Pi Pico. It features all the good bits of BASIC such as GOTO and GOSUB commands, that fancier languages kind of look down upon. It’s also got enough built-in routines to handle regular programming life, like sleeps, delays, a basic pseudorandom number source, trigonometric functions, and the ability to deal with floating point numbers. As far as microcontroller tasks go, it’s got rudimentary support for talking to GPIOs right now via the pinon and pinoff commands. However, it’s probably not the way to go if you want to bit-bang an SD card to within an inch of its speed rating.

Down the road, [Gary] hopes to add support for features like the Pico’s I2C, SPI, and PIO hardware, along with networking protocols and Bluetooth. PEEK and POKE are also hopefully on the way for those that like to fiddle with memory directly.

Meanwhile, if you’re looking for a different yet similar take, explore the port of MMBasic to the Pico platform. Video after the break.

Continue reading “A BASIC Interpreter For The Raspberry Pi Pico”

Listening To The Sounds Of An 1960s Military Computer

Restoring vintage computers is the favorite task of many hardware hackers. Retrocomputing probably makes you think of home computer brands like Commodore, Amiga, or Apple but [Erik Baigar] is deeply into collecting early military computers from the UK-based Elliott company. Earlier this year he made a detailed video that shows how he successfully brought an Elliott 920M from the 1960s back to life.

It is quite amazing that the Elliott company already managed to fit their 1960s computer into a shoebox-sized footprint. As computers had not yet settled on the common 8bit word size back then the Elliott 900 series are rather exotic 18bit or 12bit machines. The 920M was used as a guidance computer for European space rockets in the 1960s and ’70s but also for navigational purposes in fighter jets until as late as 2010.

Opening up the innards of this machine reveals some exotic quirks of early electronics manufacturing. The logic modules contain multilayer PCBs where components were welded instead of soldered onto thin sheets of mylar foil that were then potted in Araldite.

To get the computer running [Erik Baigar] first had to recreate the custom connectors using a milling machine. He then used an Arduino to simulate a paper tape reader and load programs into the machine. An interesting hack is when he makes the memory reading and writing audible by simply placing a radio next to the machine. [Erik Baigar] finishes off his demonstration of the computer by running some classic BASIC games like tic-tac-toe and a maze creator.

If you would like to code your own BASIC programs on more modern hardware you should check out this BASIC interpreter for the Raspberry Pi Pico.

Video after the break.

Continue reading “Listening To The Sounds Of An 1960s Military Computer”