Pseudonymous maker “shachi-lab” has launched a BASIC interpreter designed for the Arduino UNO R3 (and earlier) and different improvement boards constructed round Microchip’s traditional eight-bit ATmega328P and suitable AVR microcontrollers: NanoBASIC Uno.
“NanoBASIC UNO is a minimal BASIC interpreter developed by shachi-lab for eight-bit AVR microcontrollers (Arduino UNO/ATmega328P),” the maker explains of their creation. “It’s a trendy reconstruction of the unique BASIC interpreter written in 2012 for the [STMicroelectronics] STM8S platform, redesigned with a clear structure and reimplemented for at the moment’s MCU environments. The purpose of this mission is to offer a compact, sensible BASIC surroundings for small microcontrollers, utilizing solely minimal reminiscence.”
NanoBASIC UNO offers a BASIC interpreter for ATmega328P-based microcontroller boards, full with GPIO entry. (📷: shachi-lab)
Accessible now in its first public launch, NanoBASIC UNO offers a read-eval-print-loop (REPL) interface for rapid execution of interpreted BASIC applications alongside assist for multi-line applications executed on-demand. The latter consists of an uncommon characteristic for a BASIC: line numbers are non-obligatory, used solely as labels for leap operations. Different types of structured management flows, together with do and whereas loops and conditionals, haven’t any want of line numbers.
“NanoBASIC UNO makes use of a contemporary expression parser that feels nearer to C than traditional BASIC,” shachi-lab explains. “It helps unary operators (-, !, ~), bitwise logic, shifts, and compound project. This retains the language expressive with out shedding BASIC’s simplicity [which is] particularly helpful on an 8-bit MCU the place bitwise operations actually matter. NanoBASIC UNO can [also] immediately management GPIO [General-Purpose Input/Output pins], ADC [Analog to Digital Converter], and PWM [Pulse-Width Modulation outputs], so it is not only a tiny interpreter — you possibly can truly drive {hardware}, learn sensors, and management actuators from BASIC, whether or not in REPL mode or from saved applications in Run mode.”
Full supply code and instance applications for the mission can be found on GitHub below the permissive MIT license; shachi-lab warns that it consists of memory-saving tweaks particular to the AVR household of microcontrollers, which might have to be eliminated to port it to different microcontroller platforms.

