The latest gizmo that you can make using the cheap and easy Raspberry Pi is here courtesy of [Mark Williams]. He has hooked up an inertial measurement unit (IMU) to the Pi and built an inclinometer to use to measure the various angles of an off-road vehicle.
This particular guide goes through the setup of SDL to control the video output to a small screen. Then, a function is created to rotate the images based on input from the IMU so that the vehicle position can be shown graphically on the screen. Now, when your truck is about to roll over on a hill, you’ll get advance warning!
Of course, this whole project is predicated on installing the IMU and getting it up and running on the Raspberry Pi in the first place. [Mark] has you covered on a guide for setting that up as well. This delves into setting up the IMU over I2C to get it talking to the Raspberry Pi, and then converting the raw data from the IMU into data that is more usable. Be sure to check out [Mark]’s page for all of the code and details!
Many CPU-usage widgets have stylistically borrowed from vehicles, displaying something mimicking the tachometer found in the dashboard. [Pat] took it a step further and tried his hand at re-borrowing this style. He figured, why not use an actual physical tachometer to display how hard the CPU on his Raspberry Pi was revving?
With the goal of tuning 0-100% CPU usage to 0-8000 RPM on the tach, the first step was diagnosing the range of PWM input frequencies that moved the needle across the tach’s full arc. Using his Tektronix 3252C function generator he quickly determined 0-440 Hz would be needed and graphed a handful of intermediate points. The response curve was not linear, so he drew up some fudging guidelines to make all the datapoints match.
Next, he wrote a few lines of Python (he shared) to make the Pi to poll its CPU usage and translate it to the proper frequency. The Pi makes outputting easy, GPIO pin 11 carried the signal to a 7404 for buffering, then out to the tach. The automotive tach itself ran on 12V, but its input signal required only 5V so he pulled a 7805 from his parts bin.
Once it was all put together it worked beautifully using just the one extra component. Some might see this as more clever than USB dependent or Arduino
bloated based tachometer hacks.
See the video after the break of the tach twitching even when the mouse moved, and pegging the red when opening a browser. No more need to use up valuable screen real-estate (or use a screen at all) if you want to see at a glance when your Pi is putting in work.
Continue reading “Redlining Your CPU via Automotive Tachometer”
For $5, [William] of Toronto’s Hacklab hackerspace got a hold of one of the smallest CRT screens ever made – about the size of a large coin. Over the course of a couple sessions – including a public hack boothside at their Mini Makerfaire – [William], [Igor], and several other members managed to connect it as a monitor directly off a Raspberry Pi. The end-goal is the world’s smallest MAME cabinet (smaller by almost half than this LCD one).
As Canada followed the US and stopped broadcasting analog back in 2011, it became quite a challenge to feed the screen a video source. They disclosed early that the easiest solution would just be an RF transmitter on the Pi and then tune the micro-set to that channel. Too easy. They wanted something elegant and challenging so they went digging into the circuitry to find a place to insert a composite video signal directly.
The real story here is their persistence at reverse engineering. The PCB was folded like a cardboard box to fit in the original case, making large portions of the circuitboard and wiring inaccessible. Even when they managed to trace the signal to what they thought was the appropriate chip (marked C80580), they could not find any information on the 30 year old chip. Noting that every other chip on the board was Panasonic and started with “AN5″, [Igor] suspected the mystery silicon was just renamed and went through every single datasheet he could find with that prefix. Combined with form factor, pin count and purpose, his sleuthing was rewarded with a guess for a match – the AN5715. His hunch was correct – using that datasheet led him to the answers they required.
Then they just had to figure out how get the composite signal the Pi outputted into something the chip would use to display the correct image. There were no shortage of challenges, failures and dead ends here either, but they had help from the rest of their membership.
Their project log is an interesting narrative through the process and in the end of course, it worked. It is displayed beautifully with a clear acrylic case and ready for a cabinet to be built.
HaD reader [Greg] just finished an LCD picture frame project he’s been working on for a while. This is no ordinary photo display. His brother came up with the idea of having a device to display photos that could be changed remotely. [Greg] gave it some thought and came up with a plan; use a Raspi as the brains, connect to the internet via WiFi and display photos stored in a specific Google Drive folder. Any authorized user can upload photos remotely to the frame so the frame-owner has a constant stream of new photos to view.
Of course, using an off-the-shelf picture frame may have been too easy. Instead [Greg] decided to start with an old computer monitor and wrap it in a wooden frame so it looks good. Mounted to the back of the LCD is a Raspberry Pi with a USB WiFi dongle. The monitor runs at 14 VDC and luckily has an external power supply. Since the Pi runs at 5 V, a buck converter taps into the LCD’s input power and outputs a Pi-happy 5 volts.
This project doesn’t stop with displaying photos! The user can also switch to a weather view. The weather image displayed is generated from weather data pulled from the internet in the exact same manor used by folks who make stand-alone weather displays out of old Kindles. Oh yeah, switching between photos and weather is done by wireless remote! On the frame unit itself there is only one button, but it has 3 functions: A quick press turns the screen off, a short hold syncs with Google Drive and a long hold powers off the RaspPi.
If you’d like to make your own frame, [Greg] has graciously made all his scripts available for download…. not to mention his very detailed build log.
[Jeff McGehee] or how he likes to be known, [The Nooganeer] just finished his first big tech project after finishing grad school. It’s a connected thermostat that makes use of his old iPhone 4, and a Raspberry Pi.
Ever since [The Nooganeer] bought his first home with his wife back in the spring of 2014, he’s had ever consuming dream of adding home automation to every appliance. As he puts it…
Home automation has always been a fascination of mine. How much time and irritation would I save if I didn’t have to worry about turning things on and off, or wonder in which state they were left? How much more efficient would my home be? Wouldn’t it be cool to always know the state of every power consumer in my home, and then be able to record and analyze that data as well?
His first challenge was making a smart thermostat — after all, heating and cooling your house typically takes the most energy. Having used a Raspberry Pi before he figured it would be the best brain for his system. After researching a bit about HVAC wiring, [The Nooganeer] settled on a Makeatronics Solid State Relay board to control the HVAC. This allows him to use the GPIO’s on the Raspberry Pi in order to control the furnace and AC unit. Continue reading “Raspberry PiPhone Thermostat Monitors Your Entire House — Or At Least That’s The Plan”
A canceled project left [Craig] with six Raspberry Pi based devices he calls “Minions”. A minion is a Raspberry Pi model A in a small enclosure with an Adafruit 2.2″ 320×240 SPI LCD. The LCD lives in a lollipop style circular housing above the base. [Craig] has found a use for one of his minions as a desktop raytracer.
The Raspberry Pi is quite capable of running Persistance Of Vision Raytracer, or POV-Ray. POV-Ray started life as an early PC based raytracer. Created as a port of an Amiga program called DKBTrace, which was itself a port of a Unix raytracer, POV-Ray first was released in 1987. For the uninitiated, raytracers like POV-Ray literally trace rays from a light source to an image plane. As one would imagine, the Raspberry Pi’s little ARM processor would take quite a bit of time to raytrace a high resolution image. However, when targeting a 320×240 LCD, it’s not half bad.
[Craig’s] minion is running his own software which he calls ArtRays. Based upon a setup file, ArtRays can render images from several sources, including the internet via a WiFi dongle, or a local SD card. Rather than walk through the setup and software install, [Craig] has provided a link to download a full SD card image to build your own Minion. It might be worth experimenting on your own first though, rather than killing his server with a 1GB download.
We’re glad [Craig] has found use for one of his minions, now we have to see what he’s done with the other five!
Experimenting with embedded Linux used to mean reformatting an old PC, or buying an expensive dev board. In February of 2012, the Raspberry Pi was released, and it has proven to be a game changing platform. According to the Raspberry Pi Foundation, over 3.8 million boards have been sold. 3.8 million translates into a lot of great projects. This week’s Hacklet focuses on some of the best Raspberry Pi projects on Hackaday.io!
We start with [richardginus] and the RpiFPV (aka Raspberry Pi First Person View) project. [Richardginus] is trying to build a low latency WiFi streaming camera system for radio-controlled models using a Raspberry Pi and camera. He’s gotten the system down into a respectable 160 milliseconds on the bench, but in the field interference from the 2.4GHz R/C transmitter drives latency way up. To fix this, [Richardginus] is attempting to control the plane over the same WiFi link as the video stream. We’d also recommend checking out some of those “outdated” 72 MHz R/C systems on the used market.
Next up is [James McDuffie] and his RPi Holga. Inspired by [Peter’s] Holga camera project, [James] has stuffed a Raspberry Pi model A, a camera module, and a WiFi adapter into a Holga camera body. The result looks like a stock Holga. We saw this camera up close at the Hackaday 10th Anniversary event, and it fooled us – we thought [James] was just a lomography buff. It was only after seeing his pictures that we realized there was a Pi hiding inside that white plastic body! Definitely check out [James’] instructions as he walks through everything from hardware mods to software installation.
No Raspberry Pi list would be complete without a cluster or two, so we have [Tobias W.] and his 3 Node Raspberry Pi Cluster. The Raspberry Pi makes for a cheap and efficient platform to experiment with cluster computing. [Tobias] did a bit more than just slap a few Pis on a board and call it a day though. He custom machined an aluminum plate to hold his 3 node cluster. This makes wire management a snap. The Pi’s communicate through a four port Ethernet hub and all run from a single power supply. He even added a key switch, just like on the “old iron” mainframes. [Tobias] has been a bit quiet lately, so if you run into him, tell him we’re looking for an update on that cluster!
From [Tim] comes the PIvena, a Raspberry Pi laptop which takes its styling cues from [Bunnie Huang’s] Novena computer. Pivena is a bit smaller though, with a 7” HDMI LCD connected to the Pi. The case is made from laser cut wood and a few 3D printed parts. Everything else is just standard hardware. [Tim] kept the PIvena’s costs down by using a wooden kickstand to hold up the screen rather than Novena’s pneumatic spring system. The base plate of the PIvena includes a grid of mounting holes just like the Novena. There is also plenty of room for batteries to make this a truly portable machine. The end result is a slick setup that would look great at any Hackerspace. We hope [Tim] creates an update to support the new Raspberry Pi B+ boards!
Our Raspberry Pi-based alarm clock is chiming the hour, so that’s about it for this episode of the Hacklet! As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!