The Linux kernel recently added support for loading firmware into an FPGA via the FPGA Manager Framework. [OpenTechLab] has built a driver for the Lattice iCE40 FPGA (same chip used on the iCEStick and other development boards). One attraction to the iCE40 is there is an open source toolchain called iCEStorm.
Even if you aren’t specifically interested in FPGAs, the discussion about Linux device drivers is good background. The principles would apply to other drivers, and would definitely apply if you want to write another FPGA loader.
There’s a stop sign outside [Devin Gaffney]’s house that, apparently, no one actually stops at. In order to avoid the traffic and delays on a major thoroughfare, cars take the road behind [Devin Gaffney]’s house, but he noticed a lot of cars didn’t bother to stop at the stop sign. He had a Raspberry Pi and a camera, so he set them up to detect the violating cars.
His setup is pretty standard – Raspberry Pi and camera pointed outside at the intersection. He’s running OpenCV and using machine learning to detect the cars and determine if they have run the stop sign or not. His website has some nice charts showing when the violations occurred by hour and by day of the week. Also on the site are links that you can use to help train the system in noticing cars, cars that run the stop sign, determining if there’s enough of the video to determine if there’s a violation, and whether or not there’s a car going the wrong way through the intersection.
This is an interesting use of the Pi and OpenCV; there’s no guarantee that this will help the people of [Devin Gaffney]’s neighborhood, but hopefully gives them some ammunition (assuming they want something done about the intersection.) It’s a cheap and easy setup and it’s nice to let the community have a hand in training the system. For more OpenCV, check out this article on taking the perfect jump shot or this one which tries to quantify cloudiness. Cool stuff.
Adulterated food is food that has a substance added to it to save on manufacturing costs. It can have a negative effect, it can reduce the food’s potency or it can have no effect at all. In many cases it’s done illegally. It’s also a widespread problem, one which [G. Vignesh] has decided to take on as his entry for the 2017 Hackaday Prize, an AI Based Adulteration Detector.
On his hackaday.io Project Details page he outlines some existing methods for testing food, some which you can do at home: adulterated sugar may have chalk added to it, so put it in water and the sugar will dissolve while the chalk will not. His approach is to instead take high-definition photos of the food and, on a Raspberry Pi, apply filters to them to reveal various properties such as density, size, color, texture and so on. He also mentions doing image analysis using a deep learning neural network. This project touches us all and we’ll be watching it with interest.
If all this talk of adulterated food makes you nervous about your food supply then consider growing our own, hacker style. One such project we’ve seen here on Hackaday is Farmbot, an open-source CNC farming robot. Another such is MIT’s OpenAg Food Computer, a robotic control and monitoring growing chamber.
[Slider2732] got his Orange Pi Zero working with a 3 watt amplifier, wireless keyboard (with built-in mouse), and car reversing monitor. But he needed a case to house it in. He remembered that he used to make parameters for ghost hunting by filling PC mouse cases with all sorts of electronics. So why not put the Orange Pi Zero in a mouse too? Looking through his mouse collection, he picked out an old Logitech optical mouse and went to work.
We like that the Logitech has transparent bottom halves, perfect for proving to anyone who might be skeptical that the PC really is in the mouse. A great enhancement we think would be to make the mouse actually be the mouse too! But there doesn’t seem to be enough room left for that. What’s smaller than a Pi Zero that will also run the armbian Linux distribution, OpenELEC Mediacenter, Kodi and a bunch of games?
He even set up the wireless networking for watching YouTube videos. Check out the build and demo video after the break.
Part of the problem with having an alarm system is its reliance on land line telephone service. Some of them are getting away from this practice, but there are still many legacy systems out there that require a check to be sent in to Ma Bell every month in addition to the alarm system fees. Like these antiquated systems, [jgyates] was having a similar problem with the generator at his home which could only be monitored with a link to a cell network. Now that there’s a Raspberry Pi in every house, however, [jgyates] has a generator monitor that isn’t beholden to the phone company.
The hardware setup is little more than connecting the communications lines from the generator’s controller (in this case, a Generac Evolution controller) to the serial communications pins on a Raspberry Pi 3. [jgyates] did most of the work in Python, and his code is able to monitor almost every aspect of this generator and report it over WiFi or Ethernet, as well as control the generator settings from anywhere that has an Internet connection.
Even if you don’t have a generator with this particular controller, it will be a good guide for converting a monitor of any type into one that doesn’t require a land line or cell network connection. To that end, there have been lots of projects that convert even simple, old, analog household devices to report data over the LAN.
Looking for something a bit more from your Raspberry Pi? Tired of the usual console and arcade games? Eltech’s Exagear Desktop is a virtual machine that runs on your Raspberry Pi and allows you to run x86 games. [Dmitry]’s done a write-up about running more modern games on your Raspberry Pi.
Up until now, the Pi has been a great platform for retro gaming. By running MAME or EmulationStation, you can play classic arcade games as well as the great console games you played as a kid. Exagear Desktop goes one further, allowing you to use Wine to play more modern PC games on your Raspberry Pi 3.
The Pi 3 is still a bit underpowered for bleeding edge games, but is powerful enough that it can play some of the PC games from a few years ago. [Dmitry]’s example shows how to get Arcanum, Disciples II, and Fallout running on the Raspberry Pi. In the second part of the write-up, [Dmitry] shows you how to get Heroes of Might and Magic 3, Sid Meier’s Alpha Centauri, and Caesar 3 installed and running as well.
Obviously they will always lag behind today’s gaming machines, but the power now available in a computer the size of a credit card is pretty impressive. It’s nice to have a tool that allows one to play more than just the console games from years gone by — this opens up a whole range of great PC games to add to our library. Maybe it’s time to fabricate that new PC game controller. Or, if the Raspberry Pi seems like too much power, you could consider playing retro games on an Arduino.
Ever since the Raspberry Pi was released to an eager public just over five years ago there is one project that seems to have been tackled more frequently than any other using the small computer from Cambridge: that of making a laptop with Pi for brains. Perhaps you feel you have had your fill of Pi laptops both good and bad, but it’s still a project that can bring up some surprises.
[Archie Roques] is a young maker from Norwich, UK, and at the Raspberry Pi birthday party in early March he had rather an unusual laptop. He’d done the usual thing of mating the official Pi screen, a bluetooth keyboard/touchpad, Pi, and battery, but as always it’s the detail that matters. His case is a carefully designed sandwich of laser-cut plastic that somehow manages the impossible task of containing all the laptop internals while not being too bulky.
For power he at first used a 4 AH LiPo cell from a dead tablet with a Pimoroni LiPo power board, but since he hit problems with the Pimoroni board supplying both screen and Pi he’s switched to an off-the-shelf power bank. Unusually this laptop also has built-in audio, using another Pimoroni product, their speaker pHAT.
Where this laptop has a flaw though is in the display hinges. He has plans for a beautifully made 3D printed hinge, but for now he’s using a piece of tape, which though functional does not add to the aesthetic. When we saw it in Cambridge the keyboard was fitting more snugly than it does in the photos on his write-up, so perhaps he’s fixed some of its issues. Despite the in-progress hinge it’s a very usable little Pi laptop, and though (Hint, [Archie]!) he hasn’t yet published the design files for it, we’re sure when he does we’ll see other people building the same machine. They won’t be quite as exclusive as [Archie]’s model though, while he was in Cambridge he managed to get it signed by [Eben Upton], founder of the Raspberry Pi Foundation and judge for the 2017 Hackaday Prize.