Hacklet 97 – Camera Projects

We last covered camera projects way back in Hacklet #11. A ton of camera projects have been added to Hackaday.io since then. While the rest of the world is taking selfies, hackers, makers, and engineers have been coming up with new ways to hack their image capture devices. This week on the Hacklet, we’re taking a look at some of the best camera projects on Hackaday.io!

pixelzFirst up is [aleksey.grishchenko] with PiXel camera. PiXel is a camera and a live video display all in one, We wouldn’t exactly call it high-definition though! A Raspberry Pi uses its camera module to capture images of the world. [Aleksey] then processes those images and displays them on a 32 x 32 RGB LED matrix. This matrix is the same kind of tile used in large outdoor LED signs. The result is a surreal low resolution view of the world. Since the Pi, batteries, and camera all hide behind the LED matrix, there is an unobstructed view of the world around you. [Aleksey] used  [Henner Zeller’s] matrix library to make this hack happen.

imagerNext up is [Esben Rossel] with Linear CCD module. [Esben] is building a Raman spectrometer, much like 2014 Hackaday Prize finalist [fl@C@] with his own ramanPi. The heart of a spectrometer is the linear image capture device. Both of these projects use the same TCD1304 linear CCD. Linear Charge Coupled Devices (CCDs) are the same type of device used in flatbed document scanners. The output of the CCD is analog, so an ADC must be used to capture the data. [Esben] is using an STM32F401RE on a Nucleo board as the control logic. The ST’s internal ADC converts the analog signal to digital. From there, it’s time to process all the spectra.

wiimote-cam[Chiprobot] brings the classic Wii remote camera to the internet of things with
ESP8266 meets Wii Mote Camera. The Wii remote uses a camera which doesn’t output images, instead it plots the location of up to four IR LEDs. Normally these LEDs are located in the poorly named sensor bar that is sold with the Wii. Hackers have been using these cameras in projects for years now. [Chiprobot] paired his camera with the modern classic ESP8266 WiFi module. The ‘8266 is programmed to read data from the camera’s I2C bus. It then sends the data as an SVG request to the W3C website. W3C returns a formatted image based on those coordinates. The resulting image is a picture of the IR LEDs seen by the camera. Kind of like sending your negatives out to be developed.

photoboothFinally, we have [GuyisIT] with Raspberry Pi Photobooth. Photo booths are all the rage these days. First it was weddings, but now it seems like every kids party has one. [GuyisIT] didn’t rent a booth for his daughter’s birthday, he built one using his Raspberry Pi and Pi camera. The project is written in python, based upon [John Croucher’s] code. When the kids press a button, the Pi Snaps a series of pictures. The tiny Linux computer then joins and rotates the images while adding in some superhero themed graphics. Finally the Pi prints the image on to a photo printer. The biggest problem with this hack is re-triggering. The kids loved it so much, they kept pressing the big red button!

If you want to see more camera projects, check out our updated camera projects list! If I missed your project, don’t be shy! Just drop me a message on Hackaday.io. That’s it for this week’s Hacklet. As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!

The Challenges Of A Laundry Folding Robot

rosie“This is the year of the general purpose home robot!” “2016 is going to be for robots like 1976 was for the home computer!” The problem with statements like those is the fact that we’ve been hearing them since the 1970’s. General purpose home robots still have a long way to go. Sure, we’ve got Roomba, we’ve even got self-driving cars. But we don’t have Rosie from the Jetsons. And while I don’t think we’re going to get to Rosie for a while, there are some simple challenges that can spur development in that direction. One need look no further than one’s own laundry room.

maytagUsing machines to wash and dry laundry isn’t a new concept. Washers and dryers have become commonplace enough that we don’t think of them as robots. Hamilton Smith patented the rotary washing machine in 1858. Maytag has had home machines available for nearly 100 years. Many of the early machines were powered by gasoline engines, as electricity wasn’t common in rural farmhouses. Things have improved quite a bit since then! From the dryer we transfer our laundry to a basket, where it has to be folded. It is this final step that cries out for a homemaking automaton to take this chore out of Everyman’s hands.

As one can imagine, folding laundry is one of those tasks that is easy for humans, but hard for robots. However, it’s not impossible. The idea of this article is to show what has been done, and get people talking. A project like this would take a person or group of people with skills in mechanics, electronics, machine vision, and software. It would also be sure to place well in the 2016 Hackaday Prize.

Continue reading “The Challenges Of A Laundry Folding Robot”

Hacklet 96 – Pi Zero Contest Projects Week 3

The calendar is rolling through the third week of the house that Hackaday and Adafruit built: The Raspberry Pi Zero Contest. We’re nearly at 100 entries! Each project is competing for one of 10 Raspberry Pi Zeros, and one of three $100 gift certificates to The Hackaday Store. This week on The Hacklet, we’re going to take a look at a few more contest entries.

tizen[Phil “RzR” Coval] is trying to Port Tizen to the Raspberry Pi Zero. For those not in the know, Tizen is an open source operating system for everything. Billed as a go-to OS for everything from wearables to tablets to smartphones to in-vehicle entertainment systems, Tizen is managed by the Linux Foundation and a the Tizen Association. While Tizen works on a lot of devices, the Raspberry Pi and Pi 2 are still considered “works in progress”. Folks are having trouble just getting a pre-built binary to run. [Phil] is taking the source and porting it to the limited Pi Zero platform. So far he’s gotten the Yocto-based build to run, and the system starts to boot. Unfortunately, the Pi crashes before the boot is complete. We’re hoping [Phil] keeps at it and gets Tizen up and running on the Pi Zero!

harmNext up is [shlonkin] with Classroom music teaching aid. Guitar Hero has taught a generation of kids to translate flashing lights to playing notes on toy instruments. [Shlonkin] is using similar ideas to teach students how to play real music on a harmonica. The Pi Zero will control a large display model of a harmonica at the front of the classroom. Each hole will light up when that note is to be played. Harmonica’s have two notes per hole. [Shlonkin] worked around this with color. Red LEDs mean blow (exhale), and Blue LEDs mean draw (inhale). The Pi Zero can do plenty more than blink LEDs and play music, so [shlonkin] plans to have the board analyze the notes played by the students. With a bit of software magic, this teaching tool can provide real-time feedback as the students play.

retro[Spencer] is putting the Pi Zero to work as a $5 Graphics Card For Homebrew Z80. The Z80 in this case is RC2014, his DIY retro computer. RC2014 was built as part of the 2014 RetroChallenge. While the computer works, it only has an RS-232 serial port for communication to the outside world. Unless you have a PC running terminal software nearby, the RC2014 isn’t very useful. [Spencer] is fixing that by using the Pi Zero as a front end for his retro battle station. The Pi handles USB keyboard input, translates to serial for the RC2014, and then displays the output via HDMI or the composite video connection. The final design fits into the RC2014 backplane through a custom PCB [Spencer] created with a little help from kicad and OSHPark.

brambleFinally we have [txdo.msk] with 8 Leaf Pi Zero Bramble. At $5 each, people are scrambling to build massively parallel supercomputers using the Raspberry Pi Zero. Sure, these aren’t practical machines, but they are a great way to learn parallel computing fundamentals. It only takes a couple of connectors to get the Pi Zero up and running. However, 8 interconnected boards quickly makes for a messy desk. [Txdo.msk] is designing a 3D printed modular case to hold each of the leaves. The leaves slip into a bramble box which keeps everything from shorting out. [Txdo.msk] has gone through several iterations already. We hope he has enough PLA stocked up to print his final design!

If you want to see more entrants to Hackaday and Adafruit’s Pi Zero contest, check out the submissions list! If you don’t see your project on that list, you don’t have to contact me, just submit it to the Pi Zero Contest! That’s it for this week’s Hacklet. As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!

Where Are All The Camless Engines?

Electric cars are all the rage lately, but let’s not forget about the old standby – internal combustion. The modern internal combustion engine is a marvel of engineering. Today’s engines and surrounding systems have better power, greater fuel economy, and lower emissions than anything that has come before. Centuries’ worth of engineering hours have gone into improving every aspect of the engine – with one notable exception. No automotive manufacturer has been able to eliminate the engine’s camshaft in a piston powered-production vehicle. The irony here is that camless engines are relatively easy to build. The average hacker could modify a small four-stroke engine for camless operation in their workshop. While it wouldn’t be a practical device, it would be a great test bed for experimentation and learning.

Suck, Squeeze, Bang, Blow

dohcA multi-cylinder gasoline engine is a complex dance. Hundreds of parts must move in synchronicity. Valves open and close, injectors mist fuel, spark plugs fire, and pistons move up and down. All follow the four-stroke “Intake, Compression, Combustion, Exhaust” Otto cycle. The camshaft controls much of this by opening and closing the engine’s spring-loaded intake and exhaust valves. Lobes on the shaft press on tappets which then move the valve stems and the valves themselves. The camshaft itself is driven at half the speed of the crankshaft through timing gears, chains, or a belt. Some valve trains are relatively simple – such as overhead cam engines. Others, such as the cam-in-block design, are more complex, with pushrods, rockers, and other parts required to translate the movement of the cam lobe to movement at the valve.

Exactly when, and how fast a valve opens is determined by the profile of the cam lobe. Auto racing and performance enthusiasts often change camshafts to those with more aggressive profiles and different timing offsets depending on the engine’s requirements. Everything comes at a cost though. A camshaft machined for maximum power generally won’t idle well and will make the engine harder to start. Too aggressive a lobe profile can lead to valve float, where the valves never fully seat at high RPM.

Myriad Solutions

vanosEngine manufacturers have spent years working around the limitations of the camshaft. The results are myriad proprietary solutions. Honda has VTEC, short for Variable Valve Timing and Lift Electronic Control. Toyota has VVT-i. BMW has VANOS, Ford has VCT. All these systems provide ways to adjust the valve action to some degree. VANOS works by allowing the camshaft to slightly rotate a few degrees relative to its normal timing, similar to moving a tooth or two on the timing chain. While these systems do work, they tend to be mechanically complex, and expensive to repair.

The simple solution would be to go with a camless engine. This would mean eliminating the camshaft, timing belt, and most of the associated hardware. Solenoids or hydraulic actuators open and close the valves in an infinitely variable number of ways. Valves can even be held open indefinitely, effectively shutting down a cylinder when max power isn’t necessary.

So why aren’t we all driving camless engines? There are a few reasons. The advantages of camless engines to camshaft engines are analogous to the advantages of electronic fuel injection (EFI) vs carburetors. At the core, a fuel injector is a solenoid controlled valve. The fuel pump provides constant pressure. The engine control unit (ECU) fires the injectors at just the right time to inject fuel into the cylinders.The computer also leaves the valves open long enough so that the right amount of fuel is injected for the current throttle position. Electronically this is very similar to what would be required for a camless engine. So what gives?

22R-e, an early EFI engine
Toyota’s celebrated 22R-E, an early EFI engine

Hackers in their 30’s and beyond will remember that until the late 1970’s and early 1980’s, the carburetor was king. Companies had been experimenting with EFI since the 1950’s. The system didn’t become mainstream until the stiff pollution laws of the 70’s came into effect. Making a clean, fuel-efficient carbureted engine was possible, but there were so many mechanical and electronic actuators required that the EFI was a better alternative. So the laws of the 70’s effectively regulated carburetors out of existence. We’re looking at much the same thing with camless engines. What’s missing are the regulations to force the issue.

All the big manufacturers have experimented with the camless concept. The best effort to date has been from Freevalve, a subsidiary of Koenigsegg. They have a prototype engine running in a Saab. LaunchPoint Technologies have uploaded videos showing some impressive actuator designs LaunchPoint is working with voice coils, the same technology which moves the heads in your hard drive.
None of this means that you can’t have a camless engine now – companies like Wärtsilä and Man have engines commercially available. However, these are giant diesel engines used to drive large ships or generate power. Not exactly what you’d want to put in a your subcompact car! For the hacker set, the best way to get your hands on a camless engine today is to hack one yourself.

Ladies and gentlemen, start hack your engines!

cam1Simple, single-cylinder camless engines are relatively easy to build. Start with a four stroke overhead valve engine from a snowblower, scooter, or the like. Make sure the engine is a non-interference model. This means that it is physically impossible for the valves to crash into the pistons. Add a power source and some solenoids. From there it’s just a matter of creating a control system. Examples are all over the internet. [Sukhjit Singh Banga] built this engine as part of a college project. The control system is a mechanical wheel with electric contacts, similar to a distributor cap and rotor system. [bbaldwin1987’s] Camless Engine Capstone project at West Virginia University uses a microcontroller to operate the solenoids. Note that this project uses two solenoids – one to open and one to close the valve. The engine doesn’t need to rely on a spring for closure. [Brian Miller] also built a camless engine for college, in this case Brigham Young University Idaho Camless Engine. [Brian’s] engine uses hall effect sensors on the original camshaft to fire the solenoids. This route is an excellent stepping stone before making the jump to full electronic control.

It wouldn’t take much work to expand these projects to a multi-cylinder engine. All we’re waiting for is the right hacker to take up the challenge!

Hacklet 95 – More Pi Zero Contest Entries

We’re well into the second week of the Hackaday and Adafruit ultimate team-up: The Raspberry Pi Zero Contest. The entries have been flying in! As of Thursday evening, we have 70 projects vying for one of 10 Raspberry Pi Zeros, and one of three $100 gift certificates to The Hackaday Store. This week on The Hacklet, we’re going to take a look at a few more contest entries.

blueberryWe start with [Sean Hodgins] and Blueberry Zero – Keep your Pi in your Pocket. [Sean] can’t leave home without his Raspberry Pi Zero. Carrying all the cables, adapters, and accessories required to power up a tiny Linux computer can be a chore though. He’s created a solution to simplify all that with Blueberry Zero. This custom PCB hat contains an HC-05 style Bluetooth module connected to the Pi’s console port. Serial alone doesn’t make for a standalone Pi, so [Sean] added a LiPo battery and charger chip. A switching power supply boosts the 4.2 V LiPo output up to the 5 V required for the Pi. Now when [Sean] just has to hack out some python code, all he needs to do is open a Bluetooth connection from a cell phone, tablet, or computer.

pcpower[Doihaveto] is using his Pi Zero to manage a desktop PC. PC Power allows him to not only turn his computer on or off, but to disconnect the mains power completely. [Doihaveto’s] PC does have Wake On Lan, but he’s run into problems when the system has failed. His Pi provides an extra layer of protection in case things don’t wake up as expected. The board contains two optoisolated connections to a host PC. One is the power switch output, the other is the power LED input. If all else fails, PC Power also can control a solid state relay to completely isolate the computer from mains power. PC Power uses a web interface created with Python using the flask web framework.

pifoldNext up is [tomwsmf] with PiFold. Like [Sean] up above, [tomwsmf] can’t leave home without his Pi Zero. Rather than hacking code though, [tomwsmf] is serving up media. PiFold is a wallet containing a Pi Zero powered server. The Anyfesto software package runs on the Pi, serving up songs and files via WiFi. Audio is also transmitted on 88.1 MHz FM via PiFM. A 2500 mAh battery pack coupled with a boost converter keeps PiFold humming away. When the battery needs a charge, [tomwsmf] can use a small solar panel to top up the battery while staying green.

 

 

retrorobotFinally, we have [Fredrik J] with Retrofit Robot. The 1980’s were a golden age of toy robots from Japan. Tomy, Nikko, and a few other companies created devices like Omnibot, which were ahead of their time. [Fredrick] still has his vintage Nikko RC-ROBOT, but it has long since ceased to function. The Pi Zero presents a perfect opportunity to give the little guy a new lease on life. [Fredrik’s] goal is to keep the RC-ROBOT’s original look while giving him new functions. The old DC motors are being replaced with closed loop servos. The servos will be controlled by an Adafruit 16 channel servo driver board. The next step for Retrofit Robot is a big 6000 mAh battery. We can’t wait to see how this one turns out!

If you want to see more entrants to Hackaday and Adafruit’s Pi Zero contest, check out the submissions list! If you don’t see your project on that list, you don’t have to contact me, just submit it to the Pi Zero Contest! That’s it for this week’s Hacklet. As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!

Dry Ice Is Nice For Separating Broken Phone Screens

Smartphones are the opium of the people. If you need proof, just watch the average person’s reaction when they break “their precious”. Repairing smartphones has become a huge business. The most often broken item on phones is of course the front glass. In most cases, the screen itself doesn’t break. On newer smartphones, even the touchscreen is safe. The front glass is only a protective lens.

The easiest way to repair a broken front glass is to swap the entire LCD assembly. For an iPhone 6 plus, this will run upwards of $120 USD. However, the glass lens alone is just $10. The problem is that the LCD, digitizer and front glass are a laminated package. Removing them without breaking the wafer thin LCD glass requires great care. The hardest part is breaking down the optical glue securing the glass to the LCD. In the past that has been done with heat. More recently, companies from China have been selling liquid-nitrogen-based machines that cool the assembly. Now immersing a phone screen in -196° C liquid nitrogen would probably destroy the LCD. However, these machines use a temperature controller to keep a surface at -140° C. Just enough to cause the glue to become brittle, but not kill the LCD.

[JerryRigEverything] doesn’t have several thousand dollars for a liquid nitrogen machine, but he does have a $5 block of dry ice. Dry ice runs at -78.5°C. Balmy compared to liquid nitrogen, but still plenty cold. After laying the phone screens down on the ice for a few minutes, [Jerry] was able to chip away the glass. It definitely takes more work than the nitrogen method. Still, if you’re not opening your own phone repair shop, we think this is the way to go.

Broken phones are a cheap and easy way to get high-resolution LCD screens for your projects. The problem is driving them. [Twl] has an awesome project on Hackaday.io for driving phone screens using an FPGA. We haven’t seen it done with iPhone 6 yet though. Anyone up for the challenge?

Continue reading “Dry Ice Is Nice For Separating Broken Phone Screens”

Hacklet 94 – Pi Zero Contest Entries

Hackaday and Adafruit have joined forces to present the Raspberry Pi Zero Contest. A great contest is nothing without entries though. This is where the Hackaday.io community is proving once again that they’re the best in the world. The contest is less than a week old, yet as of this Thursday evening, we’re already up to 33 entrants! You should submit your own project ideas now for a chance at one of the many prizes. This week on The Hacklet, we’re going to take a look at a few of these early entrants!

controllerWe start with [usedbytes] and Zero Entertainment System [usedbytes] has crammed an entire emulator into a classic Nintendo Entertainment System control pad thanks to the Raspberry Pi Zero. Zero Entertainment System also has something the original NES couldn’t dream of having: An HDMI output. The emulator uses the popular RetroPie front end. We’re happy to say that [usedbytes] knew that hacking up a real Nintendo controller would be sacrilegious, so they grabbed a low-cost USB clone from the far East. A bit of creative parts-stuffing and point-to-point wiring later, ZES was ready to meet the world!

wsprNext up is [Jenny List] with The Australia Project. [Jenny] is a hacker from Europe. She’s hoping to use a Pi Zero to talk to Australia. “Talk” may be pushing it a bit though. The Australia Project will use the Weak Signal Propagation Reporter (WSPR) network to transmit RF straight out of the Pi’s GPIO ports. All that is required is a good filter, an antenna, and a balun. The filter in this case is a 7-pole Chebyshev low-pass filter. The filter keeps the Pi’s harmonic filled square waves from messing up every band from DC to light. [Jenny] normally sells these filters as a kit, but she’s made a special version specifically for the Pi Zero.

tote0[Radomir Dopieralski] has brought his signature walking robots to the Pi Zero world with Tote Zero. Tote Zero is a quadruped walking robot built mainly from 9 gram servos. [Radomir’s] custom tote board interfaces the servos to the Pi Zero itself. The Pi Zero opens all sorts of doors for sensors, vision, and advanced processing. The Arduino board on the original Tote would have been hard pressed to pull that off. Tote is programmed in Python, which will make the code quick and easy to develop. Tote Zero just took its first steps a few days ago, so follow along as a new robot is born!

 

ethernetpoFinally we have [julien] with PoEPi: Pi Zero Power over Ethernet with PHY. The Raspberry Pi Zero is so tiny, that it’s easy to forget it needs a fair amount of power to run. [Julien] is giving us a way to connect our Pi to a network while ditching the USB power supply using Power Over Ethernet (PoE). PoE has been powering devices like IP cameras for years now. It’s become a standard way of transmitting power and data. For the Ethernet physical interface, [Julien] is using Microchip’s ENC28J60, which has a handy SPI interface. Linux already has drivers in place for the device, so it’s a slam dunk. The “power” part of this system comes with the help of an LTC4267 PoE interface chip, which has a built-in switching regulator.

If you want to see more entrants to Hackaday and Adafruit’s Pi Zero contest, check out the submissions list! If you don’t see your project on that list, you don’t even have to contact me, just submit it to the Pi Zero Contest! That’s it for this week’s Hacklet. As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!