Text Editor Running On Your ARM Project

bare-metal-elua-text-editor

Tired of flashing your embedded project over and over just to tweak a few values? So was [Karl], so he wrote a text editor that runs on his ARM dev board.

Having trouble wrapping your mind around the need for this kind of thing? He’s actually playing around with eLua, the embedded version of the Lua programming language. In this case the program files are being stored on an SD card. But still, moving that back and forth between computer and embedded project gets old quickly. So he invested the time to write a rudimentary text editor that he interfaces through this terminal window. Above you can see the help screen which lays out all of the applications features. Right now it sounds like the only gotcha for this is the amount of RAM it needs to run. As it stands, the editor will now work an mbed board, but it works just fine on an STM Discovery.

Bringing ELua To The Mbed

[Karl] loved his mbed – a tiny little ARM-powered microcontroller platform – but he wanted an interactive programming environment. BASIC just wasn’t cutting it, so he decided to bring eLua to his mbed.

When choosing an interactive development environment for microcontrollers, you generally have two choices: old or huge. Sure, there is a middle ground with Python on an ARM, but why not use something explicitly designed for microcontrollers?

To get eLua running on his mbed, [Karl] downloaded the latest version and plopped it on his mbed. The current version, 0.9, doesn’t have support for an SD card, severely limiting its usefulness. [Karl] got around this by wiring up an SD card to the mbed, giving him gigabytes of space for all his development work.

While the AVRs and PICs of the world are stuck with languages like C or worse, the new ARM boards available are more than capable of running a complete eLua development environment, with everything accessible through a terminal. [Karl] even wrote his own editor for the mbed and he’ll shortly be working on a few dozen embedded projects he has in mind.

An STM32 Processor Powers This PC

This 32-bit computer is a project [Bogdan Marinescu] built as a contest entry. Sadly he didn’t win, but he did do an excellent job of documenting the build. Having seen several other home built PC projects we’re familiar with the challenges that go into such a thing, and he found some great solutions to each of them.

He started with an STM32F103ZET6 chip. This is an ARM Cortex-M3 processor which brings a lot of power to the playing field. That being said, generating a VGA signal would pretty much zap the usefulness of the chip for other processes so he offloaded that work on a separate Propeller chip. A microSD card serves as storage for the machine, which runs eLua (embedded Lua programming language). There is 1 MB of external RAM and a PS/2 port for keyboard interface. The system is networked thanks to an ENC28J60 Ethernet controller. Don’t miss the video after the break where you can see several demos running on the system.

Continue reading “An STM32 Processor Powers This PC”

Using Your Existing Hardware To Automate Scanning And Filing

This one must have been fun to come up with because it’s got it all. There’s hardware, firmware, networking, and server scripts all working together to create a filing, scanning document center for your business. The best part is that [Janis Jakaitis] was tasked to do this as part of his job (we’re sure there’s a bunch of IT guys shaking their heads at this statement, but it sounds like fun to us!).

The goal was to use an existing document scanner to create PDFs which are then stored in a filing system on the network. Of course it needed to be automatic. The first big issue was that the scanner was USB only, and when connected to a USB-to-LAN bridge the buttons on the device no longer functioned. [Janis] put together an Arduino circuit that added that button, as well as a display to show the status of your scan job.

The next issue is getting the filing system to recognize the document as a unique file. The solution here is to generate a unique barcode label that can be affixed to the page before scanning. Since this is a standalone setup, it was tricky to get the label printer to spit out a unique label. He already had the Arduino working with the scanner, so [Janis] decided to use it to drive this barcode job as well. It calls to a Lua script running on the server, which then pushes the next unique code to the printer.

Tie it all together and you get the demo video after the break.

Continue reading “Using Your Existing Hardware To Automate Scanning And Filing”

Boobie Board Powered Twitter Notifier

boobie_board_twitter_notifier

The team over at Archonix frequently challenge themselves to create a full working project in under 20 minutes. [Andrew Armstrong] put together a blog post detailing their most recent “Quickproject” – a simple Twitter notifier built using their Boobie Board.

They started by putting together a small notifier breakout module that could later be attached to their Boobie Board. The module is pretty simple and includes a trio of LEDs to alert you to activity across several online services, though only the Twitter notification module is currently complete. The notifier’s code was written in LUA, and primarily designed to interact with Linux desktops. They do not currently have a Windows compatible version of the code available, but they are more than happy to host it if someone desires to port their code over.

The notifier was put into an old candy tin with a plastic window, which is perfect fit for their project. All in all, the entire thing took them about 40 minutes, with half spent on hardware, half on code. The notifier does just what it was intended to do, but they have a healthy list of improvements that they would like to add, including the use of the other two notifier LEDs.

PSP As A Status Monitor

[Avi] sent in his PSP as a status monitor hack(zip). He’s using Lua on the PSP, so you have to install LuaPlayer. The computer side is written in python, so it should be cross platform. Last time we saw a psp as an extra monitor, it had more capabilities, but it was limited to Windows. You’ll find the Lua script as well as the python in the zip file. It’s a nice use for an extra psp.