Ever have that strange feeling that somebody is breaking into your workshop? Well, Hackaday.io user [Kenny] has whipped up a tutorial on how to scratch that itch by turning a spare Raspberry Pi you may have kicking around into a security camera system that notifies you at a moment’s notice.
The system works like this: a Raspberry Pi 3 and connected camera module remain vigilant, constantly scanning for motion and recording video. If motion is detected, it immediately snaps and sends a picture to the user’s mobile via PushBullet, then begins recording video. If there is still movement after a few seconds, the process repeats until the area is once again devoid of motion. This also permits a two-way communication with your Pi security system, so you can check in on the live feed whenever you feel the urge.
To get this working for you — assuming that your Pi has been recently updated — setup requires setting up a PushBullet account as well as installing it on your mobile and linking it with an API. For your Pi, you can go ahead with setting up some Python PushBullet libraries, installing FFmpeg, Pi Camera Notifier, and others. Or, install the ready-to-go image [Kenny] has prepared. He gets into the nitty-gritty of the code in his guide, so check that out or watch the tutorial video after the break.
Continue reading “Sneak Thieves Beware: A Pi Watcheth”
If you need a sensor to detect gasses of some sort, you’ll probably be looking at the MQ series of gas sensors. These small metal cylinders contain a heater and some electrochemical sensor. Wire the heater up to a voltage, and connect one end of the resistor to an ADC, and you have a sensor for alcohol vapors, hydrogen sulfide, carbon monoxide, or ozone, depending on which model of sensor you’ve picked up.
These are simple analog devices, and as you would expect they’re sensitive to both temperature and humidity. [Davide Gironi] wanted a more accurate gas sensor, so he’s diving into a bit of overengineering and correlating the output of these sensors against temperature and humidity.
There’s a difference between accuracy and precision, and if you want to calibrate gas sensors, you’ll need to calibrate them against something. Instead of digging out a gas sensor of known precision, [Davide] took the easy way out: he graphed the curves on the datasheets for these sensors. It’s brilliant in its simplicity.
These numbers were thrown into R, and with a bit of work, [Davide] had a look up table of various concentrations of gasses plotted against certain resistances. In testing these sensors, he found a higher correlation between humidity and temperature and gas concentrations, which one would expect.
The files for these sensors are available on [Davide]’s website, and he included a neat little video showing everyone what went into these calculations. You can check that out below.
Continue reading “Improving The Accuracy Of Gas Sensors”
People who know about bearings go through a phase of bemusement with regards to fidget spinners. We say something like, “man, I got a whole box of bearings in the basement.” Then we go through a “OK, I’ll make one” phase and print one out of PLA.
[fishpepper] took that sentiment a step further. After being forced to print spinners for his kids, he got jealous and decided to make his own—but his spinner would be a version for engineers. [fishpepper]’s ginormous spinner consists of five bearings superglued inside each other, with the grease cleaned out of the insides to make them spin faster. The inner two sets are doubled up bearings, 6 mm x 17 mm x 6 mm and 17 mm x 30 mm x 7 mm. The middle bearing measures 30 mm x 55 mm x 13 mm, and the fourth bearing 55 mm x 90 mm x 18 mm.
If you want to stop here, it’s a good size, around two inches across. However, [fishpepper] took it a step further, adding a fifth bearing, a 90 mm x 140 mm x 24 mm monster weighing in at 1 kg by itself. The total weight comes to 1.588 kg with the 3D-printed hub included. If you want to make one yourself, check out [fishpepper’s] bearing-in-bearing spinner tutorial which guides you through the various steps.
Hackaday likes fidget spinners so much you’d think we were in 6th grade: we’ve published posts on the three-magnet spinner hack, a fidget-spinning robot, and teaching STEAM with fidget spinners.
Continue reading “Bearing-in-Bearing Fidget Spinner Taken To The Max”
While DNA is a reasonably good storage medium, it’s not particularly fast, cheap, or convenient to read and write to.
What if living cells could simplify that by recording useful data into their own DNA for later analysis? At Harvard Medical School, scientists are working towards this goal by using CRISPR to encode and retrieve a short video in bacterial cells.
CRISPR is part of the immune system of many bacteria, and works by storing sequences of viral DNA in a specific location to identify and eliminate viral infections. As a tool for genetic engineering, it’s cheaper and has fewer drawbacks than previous techniques.
Besides generating living rickrolls and DMCA violations, what is this good for? Cheap, self-replicating sensors. [Seth Shipman], part of the team of scientists at Harvard, explains in an interview below a number of possible applications. His focus is engineering cells to act as a noninvasive data acquisition tool to study neurobiology, for example by using engineered neurons to record their developmental history.
It’s possible to see how this technique can be used more broadly and outside an academic context. Presently, biosensors generally use electric or fluorescent transducers to relay a detection event. By recording data over time in the DNA of living cells, biosensors could become much cheaper and contain intrinsic datalogging. Possible applications could include long-term metabolite (e.g. glucose) monitors, chemical detectors, and quality control.
It’s worth noting that this technique is only at the proof of concept stage. Data was recorded and retrieved manually by the scientists into the bacterial genome with 90% accuracy, demonstrating that if cells can be engineered to record data themselves, accuracy and capacity are high enough for practical applications.
That being said, if anyone is working on a MEncoder or ffmpeg command line option for this, let us know in the comments.
Continue reading “Movie Encoded In DNA Is The First Step Toward Datalogging With Living Cells”
As the world’s population continues to increase, more food will be needed for all the extra mouths to feed. Unfortunately, there’s not a whole lot of untapped available farmland. To produce extra food, crop yields need to increase. [Vignesh Ravichandran] is tackling this with the Farmcorder – a device for detecting crop nutrition levels.
The device centers around using spectroscopy to measure the chlorophyll content of leaves. This information can then be used to make educated decisions on the fertilizer required to maximize plant yield. In the past, this has been achieved with expensive bespoke devices, or, at the other end of the spectrum, simple paper color charts.
[Vignesh]’s project takes this to the next level, integrating a spectroscopy package with a GPS and logging over the GSM mobile network. This would allow farmers to easily take measurements out in the field and log them by location, allowing fertilizer application to be dialed in on a per-location basis. The leaf sensor package is particularly impressive. Relying on a TSL2561 sensor IC, the samples are lit with 650nm and 940nm LEDs. The sensor readings can then be used to calculate the chlorophyll levels in the leaves.
It’s a project that sets out to tackle a serious world problem and uses off-the-shelf parts and some hacker know-how to do so. We hope to see this hardware on farms across the world in the near future!
If you have ever visited London as a tourist, what memories did you take away as iconic of the British capital city? The sound of Big Ben sounding the hour in the Elizabeth Tower of the Palace of Westminster perhaps, the Yeoman Warders at the Tower of London, or maybe the guardsmen at Buckingham Palace. Or how about the red double-decker buses? They’re something that, while not unique to the city, have certainly become part of its public image in a way that perhaps the public transport of other capitals hasn’t.
A city the size of London has many thousands of buses in the fleet required to provide transport to its sprawling suburbs. Until a few years ago the majority of these machines were built to a series of standard designs under the London Transport banner, so a Londoner with an eye for buses could have seen near-identical vehicles in any corner of the city. Each of these buses would have carried millions of passengers over hundreds of thousands of miles in a typical year, so many in fact that every few years they would have required a complete overhaul. For that task, London Transport maintained a dedicated factory capable of overhauling hundreds of buses simultaneously, and this factory is our subject today.
The overhaul works at Aldenham was the subject of a 1957 British Transport Films picture, Overhaul, in which we follow a bus in its journey through the system from tired-out to brand-new. We see the bus given a thorough inspection before being stripped of its upholstery and then having its body separated from its chassis and cleaned, then we see each part being refurbished. Along the way we gain a fascinating insight into the construction of a mid-century passenger transport vehicle, with its wooden frame and aluminium exterior panels being refurbished and rebuilt where necessary, before the camera. Meanwhile we see the chassis, with its separate gearbox in the centre of the vehicle, before it is painted to resist more years of road grime and reunited with a bus body. The completed vehicle is then taken for a test run before being sent to the paint shop for a coat of that iconic London Transport red. Enjoy the film in its entirety below the break.
The buses in the film are the AEC/London Transport “RT” vehicles, which entered service in the late 1930s and last ran in the 1970s. Their replacement, the visually similar “Routemaster” had only started to appear the previous year, and continued in regular service until 2005. Meanwhile the Aldenham bus overhaul works survived until its closure in 1986 due to the appearance of a range of new buses in the capital that did not conform to the standard design that it had been designed to serve.
Continue reading “Retrotechtacular: London Bus Overhaul”
Feel like breaking out of your streaming-induced vegetative state but can’t seem to break the binge-watching cycle? Maybe you’re a candidate for this exercise bike that controls how much Netflix you watch.
The concept behind [Roboro]’s anti-couch potato build is simple — just keep pedaling and you get to keep watching. The details are pretty simple too and start with an Arduino monitoring the signal coming from a jack thoughtfully provided by the manufacturer of his exercise bike. The frequency of the square wave is translated into a speed which a Python script on a PC reads over USB. Once a Netflix stream is started, dropping below the user-defined speed pauses the movie. The video below shows it doing its thing.
Improvements readily spring to mind, like adding a speed buffer so that pedaling faster lets you bank some streaming time and earn a rest. Maybe it could somehow integrate with these Netflix-enabled socks, or even with the Netflix and Chill button. But those sort of defeat the purpose a bit.
Continue reading “Shed Pounds And Inches While Binge Watching Netflix”