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.

More POV Fan Message Hacking

[Zach’s] company is all about the safety and to reinforce those ideals they handed out POV display fans to each employee. “Being Safe is Cool”, get it? Gimmicky… yes, but now [Zach’s] got a tiny little POV fan to hack. Although he may not have known it, this isn’t the first time we’ve seen this hardware. These fans were handed out as a promotion at Black Hat a couple of years ago and prompted some reverse engineering action. The message is stored on an EEPROM and there’s even a female programming header that makes it easy to write reflash it with your own messages if you know how to craft the data.

This is where the two products diverge. The older project uses a serial connection and PonyProg to dump and data. [Zach] first tried using his Bus Pirate to dump the data but after having no success he grabbed his Arduino and managed to get the job done. Once the message encoding protocol was worked out, he wrote a sketch to flash the EEPROM. So if you can get your hands on one of these the work has already been done. See [Zach’s] custom messages in the video after the break.

But we’d like to see this taken to the next level. How about a wall-mounted device that waits for something, like an incoming email or tweet, then spins up the fan to display it?

Continue reading “More POV Fan Message Hacking”

arduino_bootloader_burner

A Beginner’s Guide To Burning Arduino Bootloaders

When it comes to learning about microcontrollers, everyone has to start somewhere. [Lady Ada] recently posted a tutorial on burning the Arduino bootloader to standalone chips for those just getting started with the micro.

The tutorial cites a common situation, where someone is working on a project using an Arduino chip but they don’t want to sacrifice their dev board when just the micro and a few other components would do just fine. A short list of supplies is required, including an Arduino, a proto shield kit, a ZIF socket, and a blank ATmega chip.

The process is probably pretty straightforward and likely familiar to many of you out there. The ZIF socket is soldered to the board and handful of wires are added for powering and programming the new chip. The protoboard is installed on top of the Arduino like any other shield, and using a sketch that [Lady Ada] has made available, the bootloader burning process is a cinch.

It’s a useful tip for newcomers, and definitely a skill that seasoned Arduino users should have under their belts as well.

All Your I/O Pins Belong To ArduinoDashboard

arduino_dashboard

So if you’re knee deep in an Arduino-based project and you want to constantly monitor all of the micro’s pins, what’s the best way to go about it? [Jonathan Clark] from LVL1 in Louisville was looking to keep a closer eye on his board and whipped up an application he calls ArduinoDashboard.

Programmed in Processing, the application gives you a look at all of your Arduino board’s analog and digital pins in a simple to use display. All that’s required to run the application is a bit of code inserted at the top of your sketch, which can be called anywhere in your program’s loop. Once the code snipped is called, all of the board’s pins are read and the data is sent to your PC.

ArduinoDashboard is still very much in beta at the moment, but it looks to be stable enough for everyday use. [Jonathan] has plenty of improvements and new features in mind, so be sure to check back often to see what’s changed.

[via Adafruit Blog]

Tree Climbing Bot Climbs Tree

To test his new skills with his Arduino, [Ben] decided that he would build a robot. With no particular need to fill other than the need to build something cool he chose to build himself a tree climbing robot. He designed the body of the robot in Google Sketchup before beginning the build. The body is made mainly from aluminium, with four motors for the gripping legs and one for the spine. [Ben] controlled the motors with the familiar L298 motor driver chip and measured their position and speed using some cleverly mounted potentiometers.  The robot can climb trees of varying diameter by using the speed of the motors driving the legs to determine when the tree has been gripped.

[Ben] was then kind enough to write up a full instructable describing the build, this project includes a bit of everything, from motor control and liner drives to tips on creating a robot frame; a good read for someone wanting to get into robotics. Also check out the video after the break to see the robot in action.

Continue reading “Tree Climbing Bot Climbs Tree”

Bluetooth Wristwatch Based On An Arduino

We hate to admit it, but we missed out on the TI Chronos watch deal last week. While we’re still a little bit burned over the fact that these watches sold out so fast, [Ahmet] sent in his Open Source Bluetooth Watch and we’re thinking this could eventually be a decent replacement.

The watch is built around an Arduino Pro Mini, a scavenged Nokia LCD, and a BlueSMiRF Gold. The Bluetooth connects to a Nokia N900 with a little Bluetooth client app [Ahmet] wrote. He also wrote a small GUI for the watch’s LCD display. Afterwards, he was able to display missed calls, new email, and is now working on support for changing songs on his N900’s media player.

Admittedly, a little work needs to be done on the enclosure. Still, the potential for this watch is much greater than the iPod as a watch project we saw last year. Right now, we’re thinking about what could be added to [Ahmet]’s watch. An accelerometer would probably be on the top of our list, but if you have any ideas feel free to leave them in the comments.

Check out the walk through of the watch’s functions after the break.

Continue reading “Bluetooth Wristwatch Based On An Arduino”

High Voltage: Controlling A Flyback Transformer With An Arduino

If you’d like to build a Jacob’s ladder, an ignition system for a flamethrower, or for some ungodly reason you need 15 kilovolts for a prop replica or cosplay build, this one is for you. It’s an easy to build high voltage power supply that interfaces with an Arduino.

After harvesting a flyback from the power board of a CRT, [Andrew Moser] added a new primary coil to the transformer. This boosts 12 volts that can be easily controlled by an Arduino to something that will arc an inch and a half. The next step building the flyback driver. [Andrew] used a MOSFET and MOSFET driver for this circuit (although he says this guy works without the driver). After that, all that’s left to do is write some software and test it out.

Of course this comes with the boilerplate warning, “If you don’t know what you’re doing, you might die.” That being said, if you ever wanted to test out an Arduino’s resistance to EMP, this is the project for you. Check out the flyback powering a Jacob’s ladder after the break.

Continue reading “High Voltage: Controlling A Flyback Transformer With An Arduino”