Emulating ARM On An 8-pin AVR

Falling on the heels of some fabulous ‘lets see what we can emulate on an AVR’ builds we’ve seen, [Dimitri] emulated an ARM Cortex-M0 on an 8-pin ATtiny85.

The emulator is written entirely in AVR assembly. Unfortunately, the instruction set of ATtinys don’t have a multiply instruction, so that had to emulated in a separate piece of code. Even with this addition, the emulator is very small; the core is just over 1300 instructions and small enough to fit on the Flash of the very small ‘tiny85.

Unlike the ATMega running Linux we saw last month, [Dimitri] won’t be doing anything crazy like making the tiniest and worst Linux computer ever. The Cortex-M0 doesn’t have a MMU, so Linux is out of the question. [Dimitri] could go with μCLinux, with the addition of a I2C EEPROM and RAM, but don’t expect a speed demon for an emulated ARM running at 200kHz.

[Dimitri] put all the code up on his webpage, and the installation is just running ‘make.’  It looks easy enough to get up and running very quickly, so we’re sure some bored hardware guru will come up with something interesting to do with this code.

Motorcycle Lighting Upgrade Ensures Other Drivers Know You’re There

led-brake-lights

[Pete Mills] recently bought himself a motorcycle, and as people are known to do, they start trying to scare him with gruesome stories of cycling accidents once they hear about his purchase. While he tries to shrug them off as people simply not minding their own business, something must have resonated with him, because he started tinkering with the bike’s taillight in order to ensure he was always seen by other drivers.

He swapped out his motorcycle’s incandescent taillight for a smart LED-based lamp that he constructed using perfboard. Not only does his new brake light feature ultra bright LEDs, but the onboard ATtiny85 rapidly flashes the lights each time he hits the brakes, making his presence impossible to miss. Before everyone starts with the claims of, “Flashing red lights are illegal!”, let’s all take a deep breath and read on.

We’ve seen these sorts of lights on the back of motorcycles for years, though being a careful guy, [Pete] wrote to the state of Michigan in order to ensure that his modifications won’t get him pulled over. He has yet to hear back, but in the meantime, he merely needs to start the bike with the brakes applied to trigger the ATtiny85 to run the lights in “normal mode.”

Continue reading to see a short demo video of his brake light mod in action.

Continue reading “Motorcycle Lighting Upgrade Ensures Other Drivers Know You’re There”

Poking Machine

We may be showing our age here, but we have no idea what a ‘poke’ on Facebook actually means. Whether it’s the passive-aggressive manifestations of online stalkers or an extension of  the ‘like’ button, all we know is [Jasper] and [Bartholomäus] built a machine that translates virtual pokes into our analog world.

The “Poking Machine” as [Jasper] and [Bart] call it, syncs to your phone over a Bluetooth connection. The build is incredibly simple: just an ATtiny running Arduino for ATtiny, a Bluetooth controller (possibly this one from Sparkfun), and a servo. When the Facebook app on [Jasper] and [Bart]’s phone receives notification of a ‘poke’, the servo is powered and gently taps the wearer on the arm.

One thing we really like about this project is the case made of several layers of laser-cut acrylic bolted together. This case offers a very clean look even if it is a bit ungainly. We suppose the guys could have used a simple vibration/pager motor for this build, but it wouldn’t exactly be a poking machine at that point. Check out the build video after the break.

Continue reading “Poking Machine”

USB Controlled SPÖKA Night Light

usb-controlled-spoka-nightlight

[wejp] picked up an IKEA SPÖKA night light, but he wasn’t entirely impressed with its functionality. Pressing the top of the ghost’s head causes it to cycle through a few colors, and pressing it a second time locks it into displaying the current color until its tapped again. Inspired by this SPÖKA hack which used a different version of the night light, he tore his down to see what he could do with it.

Upon stripping off the outer cover, he found that the internals were considerably different than those found in its glowing brethren, though they were perfect for what [wejp] had in mind. He removed the rechargeable battery pack as well as the controller board, which sits on a PCB separate from the LEDs. He replaced the stock micro with an ATtiny25, which he uses to give himself a bit more control over the light display.

He couldn’t quite cram all the functionality he desired into the ATtiny, but he planned on powering the light using his computer anyhow, so he installed a small USB port in the back. When connected to his PC, the SPÖKA can be controlled more precisely than when it operates alone.

Unfortunately there’s no video available of the SPÖKA light in action, but there are plenty of images available on his site.

USB Dongle Generates And Enters Your Passwords So You Don’t Have To

usb-password-dongle

Like many businesses out there, [Joonas Pihlajamaa’s] employer requires him to change his password every few months. Instead of coming up with a complex, yet easy to remember password again and again, he built a small USB device to do the work for him.

He dismantled an old USB memory stick, fitting it with an ATtiny85 with its required components on a small piece of perfboard. Using the knowledge he gleaned from his previous USB HID tinkering, he programmed the ATtiny to act as a USB keyboard which enters his password for him whenever he plugs it in.

The USB dongle not only types his password in for him, it can generate a new password with a few simple keystrokes whenever he desires. Obviously it merely takes someone getting their hands on his USB stick to compromise security, but it does beat a Post-It under the keyboard any day.

Continue reading to see a short video of his USB password dongle in action, and be sure to swing by his site for more details on how it was all put together.

Continue reading “USB Dongle Generates And Enters Your Passwords So You Don’t Have To”

BB313 Breadboard Platform Makes ATtiny Prototyping Painless

Johngineer's BB313

[John De Cristofaro aka Johngineer] uses various ATmega microcontrollers in his electronics projects, but he finds himself reaching for an ATtiny2313 or ATtiny4313 more often than not. He got tired of having to wire up pin headers, capacitors, and the like each time he started a project, so he spent some time designing an easy to use breadboard platform around the chips.

Inspired by LadyAda’s Boarduino, his BB313 board features FTDI pin headers, an ISP programming header, a reset button, along with breakout pins that plug directly into any breadboard. Aside from sharing a similar layout, [John] says that the similarities end there. His board is designed for designers who program in C or C++, so Arduino code won’t run without some substantial modification.

The board looks like a pretty handy benchtop tool, and we’re pretty sure it would be a big time saver for anyone who uses these chips with any frequency. [John] says that the board cost about $6.50 to make when he put it together, but that prices might vary slightly depending on where you have your PCBs made.

Be sure to swing by his site if the design looks like it might be helpful. He has made the schematics, a bill of materials, and all the rest available for the taking.

[via Adafruit blog]

Playing Video Games For A College Application

As a senior in high school, [Owen] has been waiting to hear from the colleges he applied to for months now. Some of his applications wanted a mid-year report to see if he didn’t come down with senioritis. [Owen] realized these colleges allowed additional materials beyond a high school transcript, so he built a tiny video game that shows his electrical and programming skills.

The Demomite, as [Owen] calls his build, is an amazing piece of work. The entire system is based around an ATtiny2313 with a measly 2kB of program memory. Aside from a graphic LCD from Sparkfun and a repurposed NES controller, there isn’t much else to the build. As a study in minimalism and simplicity, [Owen] gets a big congrats from us.

The entire game fits in the 2kB of flash on the ATtiny, mostly due to coding the entire thing in assembly. You can check out [Owen]’s time-lapse construction video, software demo, and the video he sent to colleges after the break.

Continue reading “Playing Video Games For A College Application”