The Proper Way To Put An Arduino In A Raspberry Pi

For all their hoopla, the GPIO pins on the Raspberry Pi aren’t terribly useful on their own. Sure, you can output digital data, but our world is analog and there just isn’t any ADCs or DACs on these magical Raspi pins.

The AlaMode, a project designed by [Kevin], [Anool], and [Justin] over at the Wyolum OSHW collaborative aims to fix this. They developed a stackable Arduino-compatable board for the Raspberry Pi.

Right off the bat, the AlaMode plugs directly into the GPIO pins of the Raspberry Pi. From there, communication with the ATMega of the Arduino is enabled, allowing you to send and receive data just as you would with an Arduino. There’s a real-time clock, servo headers, plenty of ways to power the board, and even a breakout for this GPS module.

A lot of unnecessary cruft is done away with in the AlaMode; There’s no USB port, but it can be programmed directly over the GPIO pins of the Raspberry Pi. Pretty neat, and we can’t wait to grab one for our Raspi.

Using An IR Remote With Your Arduino

If you’ve ever needed a short-range remote control for a project, [firestorm] is here to help you out. He put up a great tutorial on using an IR remote to do just about anything with everyone’s favorite microcontroller platform.

[firestorm] used the Arduino IRremote library to decode the button presses on his remote. After uploading the IR receive demo included in the library, the Arduino spit out hex codes of what the IR receiver was seeing. [firestorm] wrote these down, and was able to program his Arduino to respond to each individual button press.

After figuring out the IR codes for his remote, [firestorm] threw a shift register into his bread board and attached a seven-segment LED. Since [firestorm] knows the codes for the number buttons on his remote, it’s very easy to have the LED display flash a number when the corresponding button on the remote is pressed.

A single seven-segment display might not be extremely useful, but with [firestorm]’s tutorial, it’s easy to give your Arduino some remote control capabilities with a simple IR receiver. Not bad for a few dollars in parts.

Task Scheduler For Arduino

For their recent high altitude balloon project LVL1 member [Brad] programmed a pretty complicated brain based on an Arduino. It was responsible for collecting data from all of the sensors, and reporting back in a few different ways. One of the things he did to simplify the project was develop a task scheduler for the Arduino board. It lets you add functions to a queue of jobs, along with data about when they should be run.

The task scheduler does make coding a bit easier, but where it really shines is in situations like this where you don’t have access to the hardware if there’s a problem. In his description of the scheduler [Brad] mentions the possibility that one of the sensors could fail as the cold of the upper atmosphere takes its toll. This could leave the whole system stuck in a subroutine, and therefore it will stop sending reports back to the team on the ground. Since he was using the task scheduler it was a snap to add watchdog timer servicing to the mix. Now if program execution gets stuck the watchdog will reset the chip and all is not lost.

[Thanks  JAC_101]

Kegerator Tallies Your Pints On Untappd While You Sit Back With A Cold One

untappd-auto-checkin

[Jeff] admits that he’s pretty well addicted to Untappd, a site he describes as a Foursquare for beer. Like his fellow beer nerds, he enjoys reporting the pints he’s had, even if they happen to be from his own stash of homebrew kegs. Untappd certainly supports this level of dedication, but it seemed silly to [Jeff] that he needed to grab his phone each time he poured himself a cold one in the comfort of his own home.

He took a look around the room and spied an Arduino doing a whole lot of nothing, so he set off to build a system that would allow him to automatically record his drinking habits without the use of his smartphone. The system is not overly complex, and measures pours using flow sensors, uploading the results to Untappd using their “check-in” API. [Jeff] was sure to include several other useful features into his build, including a lockout timer that prevents multiple check-ins when simply topping off a pint, as well as “neighbor mode” which lets you pour a round for friends without recording the pour.

Be sure to check out the build in its entirety on [Jeff’s] site, and let us know if you’re doing something equally cool with your keg setup at home.

Red Bull Dispenser Includes Smokey Presentation And Rejects Inferior Drinks

The Eugene Maker Space’s entry in the Red Bull Creation contest dispenses cans in a mysterious fog through an iris opening. But it’s also capable of disposing of the Red Bull cans… and only those cans. If you try to put a different soda in it will violently reject it!

First off we must applaud the Eugene Makers for their prolific documentation of the project. There’s a day or two worth of fun reading/watching on that page so make sure you save the bookmark (and learn from their example!). Inside the mysterious waist-high enclosure there’s a hopper to store the energy-drink reservoir. As a can is dispensed its barcode is scanned to ensure this is an approved beverage. At this point the can is elevated through an iris in the case of the enclosure, al0ng with a theatrically timed puff of fog. The parts of the iris were printed on paper and used to cut out wooden pieces using a scroll saw. The fog blast is from an inverted duster can with a 3d printed nozzle that helps make it Bullduino controlled.

When done with your beverage the can can be placed back in the opening, where it is again scanned before going into the recycling bin. But as you can see in the clip after the break, trying to sneak a soda can into the machine will launch the empty right back at you!

Continue reading “Red Bull Dispenser Includes Smokey Presentation And Rejects Inferior Drinks”

PhilRobokit Anito Is Not An Arduino

A few people over at the Philippine hackerspace PhilRobotics a PIC-based dev board that takes a lot of cues from ‘the microcontroller board everyone loves to hate,’ the Arduino.

There are a few differences between the PIC16F877a used in the Anito and the ATMega328 used in the Arduino: The PIC has a little less than half the Flash memory of the ‘Mega and less RAM, but has a slightly higher clock rate. It would have been nice to have a dev board with Arduino style headers powered by one of those new PIC32MX chips, if only because of a few really, really awesome projects we’ve seen. We’ll take whatever we can get, though, even if it provides a little more ammo for the PIC/AVR holy war.

One really interesting aspect of the Anito is the IDE. Written in Python, the PhilRoboKit IDE has all the features of everyone’s favorite IDE that is written in Wiring, plus a few extra features: autocomplete is a huge bonus, as is the ability to upload programs over Pickit2 ISP header. The IDE is available for Windows and Linux (no Mac port yet), and should be enough to get you off the ground in the PIC dev world.

Reading Bar Codes With Arduino And Unaltered CueCat

[Damcave] decided to try out some bar code reader projects. He got his hands on a CueCat years ago. The problem is that it outputs encrypted character sets instead of a clear text string. To get around this he used his Arduino to decrypt the CueCat’s data output.

Originally you could get you hands on a CueCat for free. It was meant to work like QR codes do now — you see a bar code, you scan it to get to a web address. It never really took off but you can still get your hands on one for about twelve clams. We’ve seen projects that clip a pin on the processor to disable to encryption. But [Damcave] didn’t want to mess with the hardware. Instead he connected the Arduino via the PS/2 connector and used software to translate the data. The encryption format has long been know so it was just a matter of translating the steps into an Arduino function.