Posts with «raspberry pi» label

Adding I/O to the Rasberry Pi Models A & B

The Raspberry Pi has been the basis for many cool projects. Even so, Models A and B have been criticized for having only a handful of GPIO pins available. Sure, the new Model B+ has a 40-pin GPIO header but what if you want to use your old RaspPi with a bunch of in and outputs? [Steve] is one of those guys and has done something about it by creating a pretty neat solution he calls the PiMagic. It’s a Pi Plate that has an on board ATMEGA328 running an Arduino bootloader. The RaspPi and the Arduino communicate via UART as [Steve] felt it was a bit simpler than going the SPI or I2C route.

The RaspPi GPIO’s run on 3.3v and the ATMEGA328’s like 5v. To solve this, the PiMagic has a Level Shifter that keeps the I/O of the two boards happy. Older Pi’s had a problem burning out PCB traces when supplying too much current on the 5v supply line. [Steve] threw in a fuse that will burn out before the Pi does to ensure that no Pi’s were harmed in the making of this project.

Now that a bunch of I/O are available, how do you physically access them? Well, the PiMagic has female headers in the typical Arduino layout. This way any Arduino Shield will plug right in. [Steve] made all his source files available for those who want to make one themselves. Find an assembly video after the break.


Filed under: Raspberry Pi
Hack a Day 09 Sep 09:01

The Counter-Strike Airsoft Robot

[Jon] and his brother converted an RC car into a robot that can fire airsoft pellets into the air. The little motorized vehicle was disassembled and a handheld was attached to the top. A pulling mechanism was put in place and a safety procedure was added to make sure no accidents occurred.

An Arduino was used to get the servo working, and a chassis stand was created to hold the handle. The setup was then tested at this point, and a Raspberry Pi server was configured to install a motion sensing camera that would act as the eyes for the robot. Once everything was in place, the wheels hit the ground and the vehicle was able to move around, positioning itself to aim the servos at a designated target. Footage was transmitted via the web showing what the robot was looking at.

A video of the remote-controlled counter-strike robot can be seen after the break. You could consider this your toy army. That makes this one your toy air force.


Filed under: toy hacks
Hack a Day 24 Aug 15:01

The Fridge Hacking Guide by BrewPi

The team behind BrewPi are at it again! This time they have created an online guide showing how to convert a min-fridge into a Raspberry Pi & Arduino controlled fermentation chamber. In it, they describe 3 possible options:

  • Option 1: Make a simple switched power cord, without hacking into the fridge electronics.
  • Option 2: Make a switched power cord, but also override or remove the thermostat.
  • Option 3: Rip out the thermostat and fully integrate the SSRs into your fridge (which is what [Koen] and [Elco] did).

First things first though. They had to clean the fridge. And depending on they got it or how long it has been unplugged for, the inside might have been pretty rank and disgusting from mold growing out of every corner. This took a good hour or so to clean properly lest the brewing process get infected with external grossness. This is all worth it because a well-controlled fermentation chamber results in a superior batch of beer.

With cleaning behind them the team added some temperature sensors to measure the beer and fridge levels. [Koen] and [Elco] suggest using the OneWire distribution board that comes with their BrewPi kit for this. Then, the cables were routed through the fridge and take control of the compressor.

Because [Koen] and [Elco] decided to go with the SSR method, the good news was: they didn’t need to hack into the start relay, and just left it as it is. But, they did need to gain access to the compressor and make a few changes. For one, the two SSR’s will be added with one of the AC terminals connected to LIVE (brown) and the other to the heater and the compressor.

No matter which method is chosen though, the end product will allow anyone to monitor and easily control the temperature range of your micro-brew, along with being able to log data and produce web-embedded graphs like the one shown below. It works by using the Arduino attached to run the temperature control algorithm autonomously. And, the Raspberry Pi adds stability.


Filed under: Beer Hacks

Ode to the Gameboy: 10 Projects Based on the Iconic Portable Nintendo

When the Nintendo Gameboy was first released in 1989, it was a tremendous commercial success. Gameboy developed a following among gamers that is in many ways still alive to this day. Here are 10 awesome projects inspired by the venerable Gameboy. Some merge the latest maker electronics with late-80s Gameboy […]

Read more on MAKE

Microsoft and Intel's latest development board will cost you $300

Intel may reign supreme in the desktop and laptop space, but ARM is eating its lunch almost everywhere else. That's not something the chipmaker can ignore, which is why it's having another crack at the hobby / developer market with Sharks Cove. The board, designed with Microsoft, has the stated aim of helping developers build apps and drivers for Windows and Android devices that use Intel chips. Since it's also available for everyone else to buy, it could also be quietly positioned as a more powerful alternative to boards like Arduino and Raspberry Pi. Unfortunately, as with the NUC, there's a catch: the board will retail for $300.

Filed under: Desktops, Microsoft, Intel

Comments

Via: Ars Technica, Gizmodo

Source: MSDN, Mouser, SharksCove

Making Fun: Kid’s Room Spacecraft

I built a spaceship for my four-year-old's room. It has a control panel full of interesting displays and whiz-bang space sounds. A joystick controls lights and sounds for the engine and thrusters. The payload bay has a motorized hatch and and contains a robot arm for deploying payloads like toy satellites. Headsets provide an audio link between the spacecraft and the Mission Control desk in the other son's room.

Read more on MAKE

A Tweeting Litter Box

How can you not be interested in a project that uses load cells, Bluetooth, a Raspberry Pi, and Twitter. Even for those of our readers without a cat, [Scott's] tweeting litter box is worth the read.

Each aspect of this project can be re-purposed for almost any application. The inexpensive load cells, which available from eBay and other retailers, is used to sense when a cat is inside the litter box. Typically sensors like the load cell (that contain a strain gauge) this use a Wheatstone bridge, which is very important for maximizing the sensitivity of resistive sensor. The output then goes to a HX711, which is an ADC specifically built for load cells. A simple alternative would be using an instrumentation amplifier and the built-in ADC of the Arduino. Now, the magic happens. The weight reading is transmitted via an HC-06 Bluetooth module to a Raspberry Pi. Using a simple Perl script, the excreted weight, duration, and the cat’s resulting body weight is then tweeted!

Very nice work! This is a well thought out project that we could see being expanded to recognize the difference between multiple cats (or any other animal that goes inside).


Filed under: Arduino Hacks, Raspberry Pi, wireless hacks

HAL is Duct Tape for Home Automation

When it comes to home automation, there are a lot of different products out there that all do different things. Many of them are made by different companies, and they don’t often play very well together. This frustration ultimately led [Daniel] to develop his own Python based middleware solution to get these various components to work as a single cohesive system. What exactly did [Daniel] want to control?

First up was the door lock. [Daniel] lives in an apartment building, so there are actually two locks. First, a visitor must be allowed into the building by pressing a button on the intercom system in the apartment. Second, the apartment door has its own dead bolt lock that needs to be opened and closed. [Daniel] was able to control the building’s front door using just a transistor hooked up to an Arduino to simulate the press of the physical button. The original button remains in tact so [Daniel] can still easily “buzz” in a visitor.

The apartment’s dead bolt was a bit trickier. There are off-the-shelf solutions to control a dead bolt, but they are often expensive. [Daniel] built his own solution using a simple servo motor bolted to the door. The servo is controlled by the Arduino which is in turn controlled via two broken intercom buttons that already existed within the apartment. The buttons were originally used to either speak to or listen to a visitor before buzzing them into the building. They had never worked for [Daniel] so he re-purposed them for his own project. The whole DIY door locker is enclosed in a custom-made laser cut wooden box.

Click past the break for the rest of [Daniel's] story.

When it comes to lighting, [Daniel] has a couple of different brands of automated light bulbs in his apartment. One brand has bulbs that are controlled by a radio frequency signal. That brand comes with a converter box that can accept lighting commands via WiFi. It also uses a simple API that allowed [Daniel] to easily control all of the bulbs from his Python code. The second brand of light bulb did not have a simple API. After some searching around, [Daniel] found an open source project called ouimeaux. Ouimeaux is a Python library that allows you to control this particular brand of automated light bulbs. This was perfect for [Daniel] since he was already using Python in his project. With this library it was trivial for him to control the lights from his web interface.

As a proof of concept, [Daniel] also built a custom WiFi enabled power outlet using a SparkCore module. He has an entire separate post dedicated to that project.

For the brain of the system, [Daniel] chose to use a Raspberry Pi. The Pi runs a web server with a Flask based back-end system. Flask allows him to code the website in Python, which meant he could easily write a website that can interact with the various automation components. The Pi can directly communicate with all of the off-the-shelf components using the various Python libraries. For the door lock, the Pi communicates with the Arduino via pySerial. [Daniel] also used Flask OAuth to limit access to the system to only authorized users. Now whenever [Daniel] wants to turn the lights on or unlock the door for a visitor, all he has to do is press a button on a web page.

[via Reddit]


Filed under: home hacks

The Story of OpenSprinkler: an Open-Source Web-Based Sprinkler Controller

Learning Arduino inspired me to invent the OpenSprinkler.

Read more on MAKE

Hackaday Links: April 27, 2014

 

The HackFFM hackerspace in Frankfurt finally got their CO2 laser up and running, and the folks there were looking for something to engrave. They realized the labels on IC packages are commonly laser engraved, so they made a DIP-sized Arduino. The pins are labelled just as they would be on an Arduino, and a few SMD components dead bugged onto the pins provide all the required circuitry. Video here.

A few years ago, we heard [David Mellis] built a DIY cell phone for an MIT Media Lab thingy. Apparently it’s making the blog rounds again thanks to the Raspi cell phone we featured yesterday. Here’s the Arduino cell phone again. Honestly we’d prefer the minimalist DIY Nokia inspired version.

The Raspberry Pi is now a form factor, with the HummingBoard, a Freescale i.MX6-powered clone, being released soon. There’s another form factor compatible platform out there, the Banana Pi, and you can actually buy it now. It’s an ARM A20 dual core running at 1GHz, Gig of RAM, and Gigabit Ethernet for about $60. That SATA port is really, really cool, too.

[Richard] has been working on a solar-powered sun jar this winter and now he’s done. The design uses two small solar panels to charge up two 500F (!) supercapacitors. There’s a very cool and very small supercap charging circuit in there, and unless this thing is placed in a very dark closet, it’ll probably keep running forever. Or until something breaks.

Here’s something awesome for the synth heads out there: it’s an analog modeling synthesizer currently on Indiegogo. Three DCOs, 18dB lowpass filter, 2 envelopes and an LFO, for all that classic Moog, Oberheim, and Roland goodness. It’s also pretty cheap at $120 USD. We really don’t get enough synth and musical builds here at Hackaday, so if you’re working on something, send it in.

A glass-based PCB? Sure. Here’s [Masataka Joei] put gold and silver on a piece of glass, masked off a few decorative shapes, and sandblasted the excess electrum away. [Masataka] is using it for jewelery, but the mind races once you realize you could solder stuff to it.


Filed under: Hackaday links