A standalone BASIC computer doesn’t need a separate video chip—or an Arduino board tucked underneath. Dan’s Single Chip AVR BASIC Computer on Hackaday.io, created on May 28, 2014, puts the interpreter, composite video generation and PS/2 keyboard input on one ATmega1284P. Its appeal lies in how little hardware it needs, and in the memory compromises that become visible when one microcontroller does all three jobs.
Dan designed it as a follow-up to an Arduino BASIC shield. That earlier design worked, but its low TVout resolution caused some lines to wrap, and it still needed an Arduino Uno to operate. The replacement kept TinyBASIC Plus while moving to a standalone board with just one IC.
One chip, three jobs
The firmware combines TinyBASIC Plus with TVout and a PS/2 keyboard library. Dan reports finding a keyboard library that worked alongside TVout, then modifying the interpreter to use the television and keyboard instead of a serial connection.
An Arduino bootloader and the Arduino IDE still handle programming the ATmega1284P; they aren’t required as a host once the computer is running. Connect a PS/2 keyboard, a composite-capable display and a power supply, and BASIC becomes the user interface. The chip’s internal EEPROM stores programs, while headers expose GPIO and power rails for attached hardware.
The board is deliberately modest: a socketed 40-pin microcontroller, a 16MHz crystal and supporting components. Two zero-ohm resistor jumpers let Dan keep the original PCB single-sided, making it suitable for home fabrication by methods such as photo-etching. The project also links separate firmware, circuit and PCB instructions.
The display spends memory that BASIC could use
The important cost of generating video here isn’t another chip. It’s SRAM.
In a July 12, 2014 reply about microcontroller choices, Dan says around 8KB of SRAM goes to the video buffer, with the rest available to TinyBASIC. A smaller-memory substitute would therefore require changes to the firmware and a reduced video buffer, trading display resolution against program space.
That reply also clears up a potential trap for builders: the original schematic uses an ATmega644 symbol because Fritzing already had that pin-compatible part available. It doesn’t establish the ATmega644 as a drop-in firmware replacement. The documented build uses the ATmega1284P and a 16MHz crystal.
This makes the single-chip constraint tangible. Display resolution and the amount of BASIC a user can write aren’t independent specifications; they compete for the same memory.
Saving programs pushed later boards beyond one IC
Working memory wasn’t the only limit. The original computer saves programs in the ATmega1284P’s internal EEPROM, but Dan wanted SD-card storage. During testing, autorun BASIC programs loaded and ran from an attached card, while the FILES command produced random characters instead of a directory listing. Dan suspected a mismatch involving filename variables and TVout, but didn’t establish the cause. The original board consequently left SD storage out.
External EEPROM became the documented expansion path. In the August 14, 2014 assembly log, Dan reports assembling a revised v0.3 board with a storage header for a small 25LC640 EEPROM board. A selection header chooses internal or external EEPROM; the reason for adding it was the AVR’s 4KB internal EEPROM limit. That revision also added a USBasp programming header and exposed otherwise-unused GPIO, except analogue reference.
A December 6, 2014 update then points to a separate AVR BASIC Computer v0.1 design with an additional EEPROM IC to save full-size BASIC programs. These later storage-equipped versions shouldn’t be confused with the original one-IC machine. The latest supplied build-log excerpt, dated May 16, 2015, announces kits and PCBs; it isn’t evidence of present-day stock.
The useful lesson is the distinction between running a program and keeping it. A single AVR could handle the interpreter, keyboard and display, but saving everything the machine could run called for more storage. Before reproducing a board, check which revision it is—and whether its program-storage capacity matches what you intend to write.
Source: Single Chip AVR BASIC Computer
