Schlagwort: BASIC Computer

  • Standalone Arduino Nano RP2040 Connect-controlled computer runs BASIC for IoT development

    Standalone Arduino Nano RP2040 Connect-controlled computer runs BASIC for IoT development

    Reading Time: 3 minutes

    If you’re more than 30 years old, then there is a good chance that BASIC (Beginners’ All-purpose Symbolic Instruction Code) was the first programming language you used. Many early computers shipped with a BASIC interpreter in firmware, so it was the first thing users saw when they booted up their computer. While other languages are more useful for most tasks today, BASIC still has benefits. To take advantage of it, Stefan Lenz used a Nano RP2040 Connect to build a standalone computer that runs BASIC for Internet of Things applications.

    The Raspberry Pi RP2040 is a powerful microcontroller that immediately became popular after it hit the market in January 2021. The Arduino Nano RP2040 Connect is one of the newest boards in the Arduino lineup and gives users access to the RP2040 within the friendly Arduino ecosystem. In addition the MCU, this board also contains a u-blox WiFi and Bluetooth® adapter, a six-axis IMU, a microphone, 16MB of flash memory, and even a CryptoAuthentication chip. The u-blox adapter was particularly useful for this project, since it enables IoT control over a wireless network.

    To turn the Arduino into a complete computer, Lenz connected an ILI9488-based 480×320 TFT LCD screen with built-in SD card slot, a real-time clock, and a PS2 keyboard. The use of the PS2 keyboard eliminated the need for the Arduino to act as a USB host, but the PS2 connection does require a voltage level converter to go from 5V to 3.3V. Lenz also connected a small thermal printer to output logs of sensor data. 

    Lenz developed his own BASIC interpreter from scratch specifically for Arduinos and other microcontroller development boards. The cool thing about BASIC is that, like Python, the interpreter allows for interactive programming without compilation. This lets users create IoT programs one piece at a time while seeing the results immediately, instead of compiling and flashing each revision.

    Categories:Arduino

    Website: LINK

  • eMBee ONE turns an Arduino and an Altoids tin into an ’80s-style pocket computer

    eMBee ONE turns an Arduino and an Altoids tin into an ’80s-style pocket computer

    Reading Time: 2 minutes

    eMBee ONE turns an Arduino and an Altoids tin into an ’80s-style pocket computer

    Arduino TeamFebruary 9th, 2021

    Matthew Begg wanted a pocket computer that had some of the charm of his 1980s vintage Casio FX-730P, so he decided to build his own. 

    His prototype device uses an Arduino Nano to boot into BASIC, and features a 1.54″ OLED display as well as a PCB-based QWERTY keyboard. Power is provided via a pair of AAA batteries, along with a boost converter. Most notably, however, the entire thing is meant to fit inside of an Altoids tin.

    The unit, known as the “eMBee ONE,” can run an N-queen calculator benchmarking program in seven seconds – staggering compared to the FX-730’s time of seven minutes! An optional buzzer can be added to the device for sound output, and could perhaps be used to indicate when it’s done “thinking.”

    Based on Robin Edwards’ excellent Arduino BASIC, this is the software for a complete pocket computer, using an Arduino Nano, a CardKB I2C keyboard, and SPI OLED screen. The BASIC supports almost all the usual features, with float and string variables, multi-dimensional arrays, FOR-NEXT, GOSUB-RETURN, etc. Saving and loading from internal and external EEPROM is supported, as well as auto-running a program on power-up. You can also read and write from the analog and digital pins.

    There’s about 1k of RAM available for your BASIC programs and variables, so its roughly equivalent to a Sinclair ZX81. The other 1k of RAM (on a Nano) is used for the keyboard and screen buffers, with a small bit of room left for the CPU stack. That works out quite well, since there’s a 1k EEPROM on the Nano so if your program fits in the basic environment, it will fit when saved to EEPROM!

    Be sure to follow along with Begg’s progress on his Hackaday page and over on GitHub.

    Website: LINK