BASIC programming on an Arduino

[Mike] sent in a project he’s been working on – a port of a BASIC interpreter that fits on an Arduino. The code is meant to be a faithful port of Tiny BASIC for the 68000, and true to Tiny BASIC form, it fits in the very limited RAM of the Arduino.

True to Tiny BASIC’s assembler roots, [Mike]‘s C port makes extensive use of the “infinitely-abusable” goto statement. Kernighan and Ritchie said themselves, “code involving a goto can alway be written without one” but [Mike] found that using goto left a lot more room available for BASIC code. The BASIC interpreter eats up around 600 bytes in the Arduino RAM, leaving about 1.4 kB for BASIC code. Not much, but more than the lowest-end BASIC Stamp.

[Mike] says he started this project to see how ‘old bearded ones’ conjured up so many impressive programs with a few kB of RAM. Tiny BASIC was originally conceived for the Altair 8800 that shipped with 256 bytes of RAM stock, so it seemed like a perfect fit. Right now, all we know is we’ll be spending the weekend digging through our copies of Dr. Dobb’s Journal.

Dedicated hacker adds USB capabilities to his Commodore 64


To say that Commodore 64 aficionados are a dedicated group would be quite the understatement. There are still quite a few individuals that spend all sorts of time building and programming for the C64 in order to make using them enjoyable, and to keep up to date with current technologies.

[Luigi] is one of these people. He wanted a way to easily transfer files between his PC and his C64 that was fast but cheap. To [Luigi], this meant USB file transfers, which would take quite a bit of work to implement. He started out by rolling his own BASIC interpreter which could eventually be extended to support USB. Using his BASIC-Plus interpreter, he was able to implement a USB Kernel, which could transfer files at 1.2 KB/s via a USB to serial adapter. Wanting faster file transfers, he built a USB to parallel adapter, which resulted in a nearly 8-fold increase in speed.

So, if you have been dying to have USB capabilities on your C64, look no further, [Luigi] has just what you need!

Continue reading to see a quick video of USB-64 in action.

[Thanks, Matt]

[Read more...]

Build a standalone BASIC interpreter

Here’s a photo of the circuit board for the Maximite, a BASIC interpreter that [Geoff] built. The design idea was sparked when he was exploring the possibilities of the PIC32 family of chips. [Geoff] wanted to write about the hardware for a magazine article but needed an actual product to really show it off.

The design can utilize one of two microprocessors, a PIC 32MX795F512H or 32MX695F512H. The 32-bit chip has more than enough power to emulate BASIC, and even allows for floating point calculations. It’s VGA compatible and has a jack for a standard PS/2 keyboard, which makes it a standalone device. You can store programs on an SD card, or it can be interfaced with a computer via the USB-B port that you see next to the power jack. The microprocessor is a surface mount chip, but the rest of the components are through-hole, making this an easy kit to assemble. But if you’re not afraid to etch your own 2-layered PCBs there is board artwork available in [Geoff's] download package.

[Thanks Bill]

RFID smart card reader

[Navic] wrote in to show us his latest project. This is a portable smart card reader with a nice LCD display. he just happened to have a Basic Stamp 2px, smart card reader, and smart card reader/writer sitting around waiting to be used. What better use than a hand held smart card reader?  Tossing the bits together in a nice project enclosure, [Navic] scoured the code available to him and pieced together what he needed. Now, when you slide in a card, you get a nice readout of the data on that pretty blue screen. Unfortunately, if you pull the card before the read is finished, everything just freezes.

You can see the final video after the break, and you can also see some in-progress videos linked in youtube. He asks if he should add the ability to write, and we say YES. Store that data, then write (duplicate) to another device.

[Read more...]

Introductions: 3 new writers

We would like to introduce our new writers [Rachel Fee], [Greg Jacobs], and [Jacob Nahin]. They will be focusing on software reviews and tutorials in response to the daily requests for posts that don’t require that you be an electrical engineer to understand.

The Hack a Day community is growing very fast and we are happy to be a valued source of information to our readers.

Wiimote controlled Hexapods

The Phoenix is a very impressive hexapod robot platform. It has 18 servos which gives each leg 3 degrees of freedom and a BasicAtom Pro 28 for the brains. Interestingly, the design started as a personal project of a forum member on the Lynxmotion forums. It turned out so well, it has become an actual product. We’ve seen videos of these before and they always have some pretty fluid and organic seeming motion. They seem almost alive in this configuration. The only thing that might make them scarier would be to add Lou Vega’s decapitated head, well maybe that plus some really nice face tracking. In the video above, you can see where someone paired one up with a Wiimote for a pretty intuitive control scheme. Yeah, we realize the video is nearly a year old, how did we miss this one? You can see a video of it walking around after the break, and another controlled by a ps2 controller.

[Read more...]



[Mike] sent in this project. It’s a robot, designed to print on wooden coins while people watch. It was built to be in the iHobby Expo 08 in Chicago. The main movement is controlled by a BASIC Stamp2, while the ink jet system is run off of a Propeller. The entire system has 4 servos, 3 stepper motors, a DC motor, a hacked breast pump, an ink jet head, and 5 IR sensors. in case you missed that, it has a breast pump. We’re assuming that’s the part that picks up the wooden nickels with suction. He states that the project was meant to be entertaining, so there are lots of superfluous and inefficient actions as you can see in the video after the break. Great job [Mike].

[Read more...]


Get every new post delivered to your Inbox.

Join 91,326 other followers