The Raspberry Pi Zero W is a great platform for IoT projects, with a smattering of GPIO and onboard WiFi. However, security is an important consideration when it comes to the Internet of Things and it can be beneficial to keep your IoT devices on a separate network for safety’s sake. [Albert] wanted to do this all on board the Pi Zero W, and figured out how to get it acting as an access point and a client all at the same time.
[Albert] starts off with a fresh install of Raspbian Stretch, and sets the Pi up in OTG mode. This allows access to the Pi over a USB serial terminal. This is great for productivity when working on headless networking projects, as it can be frustrating trying to work with an SSH session that keeps dropping out when you change settings.
After creating a second named device (ap0) to go along with the one created automatically by the kernal (wlan0), DNSmasq is installed to act as a DHCP server for the AP. Hostapd is then installed to control the AP settings. Following this, like anything in Linux, a flurry of configuration files are edited to get everything humming along and starting up automatically after a reboot. For some reason, things don’t start up smoothly, so [Albert] has a cron job that fires 30 seconds after bootup and toggles the interfaces off and on again, and that’s done the trick.
It’s a useful hack, as it allows the Pi Zero to act as a hub for IoT devices, while also creating a bridge between them and the internet. Traffic can be managed to stop random internet users flicking your lights on and off and overspeeding your dishwasher.
We’ve seen the Pi Zero used for just about everything under the sun so far. If you’re just starting your own IoT build, perhaps you’d like to use the Pi Zero as a streaming camera?
Only about two percent of the blind or visually impaired work with guide animals and assistive canes have their own limitations. There are wearable devices out there that take sensor data and turn the world into something a visually impaired person can understand, but these are expensive. The Visioneer is a wearable device that was intended as a sensor package for the benefit of visually impaired persons. The key feature: it’s really inexpensive.
The Visioneer consists of a pair of sunglasses, two cameras, sensors, a Pi Zero, and bone conduction transducers for audio and vibration feedback. The Pi listens to a 3-axis accelerometer and gyroscope, a laser proximity sensor for obstacle detection within 6.5ft, and a pair of NOIR cameras. This data is processed by neural nets and OpenCV, giving the wearer motion detection and object recognition. A 2200mA battery powers it all.
When the accelerometer determines that the person is walking, the software switches into obstacle avoidance mode. However, if the wearer is standing still, the Visioneer assumes you’re looking to interact with nearby objects, leveraging object recognition software and haptic/audio cues to relay the information. It’s a great device, and unlike most commercial versions of ‘glasses-based object detection’ devices, the BOM cost on this project is only about $100. Even if you double or triple that (as you should), that’s still almost an order of magnitude of cost reduction.
For several years, [Ray] and [Anna], the team behind ElectroSmash, have been smashing audio electronics and churning out some sweet DIY audio gear. This time around, they’ve built Pedal-Pi — a simple programmable guitar pedal based around the Raspberry-Pi Zero. It is aimed at hackers, programmers and musicians who want to experiment with sounds and learn about digital audio. A lot of effort has gone in to documenting the whole project. Circuit analysis, a detailed BoM, programming, assembly and background information on related topics are all covered on their Forum.
The hardware is split in to three parts. On the input, a MCP6002 rail-to-rail op-amp amplifies and filters the analog waveform and then a MCP3202 ADC digitizes it to a 12-bit signal. The Pi-Zero then does all of the DSP, creating effects such as distortion, fuzz, delay, echo and tremolo among others. The Pi-Zero generates a dual PWM signal, which is combined and filtered before being presented at the output. The design is all through hole and the handy assembly guide can be useful for novices during assembly. The code examples include a large number of pedal effects, and if you are familiar with C, then there’s enough information available to help you write your own effects.
Even if you don’t plan on building one, technical background such as the Basics of Audio DSP in C for Raspberry Pi Zero, Using MCP3202 ADC with Raspberry Pi Zero and PWM Audio on Raspberry Pi Zero ought to make for interesting reading. Check out the video after the break detailing the build.
If you’d like to check out some of their earlier work, check out 1WAMP, an Open Hardware Guitar Amplifier and pedalSHIELD, an opensource Arduino Guitar Pedal.
Continue reading “Pedal-Pi, simple programmable guitar pedal”
It’s high time us Muggles got our hands on the hardware used to take Magical Photographs as seen in The Daily Prophet. The first pioneering step in that direction has been taken by [Abhishek] who built this moving picture taking polaroid-ish camera, which he’s calling the “Instagif NextStep”. It’s a camera that records a short, three second video, converts it to GIF and ejects a little cartridge which displays the animated photo.
This amazing piece of hardware has been painstakingly built, and the finished product looks great. The nice thing about building such projects, in [Abhishek]’s own words, is that “it involves a bunch of different skill sets and disciplines – hardware, software, 3D modeling, 3D printing, circuit design, mechanical/electrical engineering, design, fabrication etc that need to be integrated for it to work seamlessly.”
Continue reading “Stunning Fake Polaroid Camera Performs Magic”
The Raspberry Pi Zero is a beautiful piece of hardware, fitting an entire Linux computer into a package the size of a pack of gum (don’t chew it, though). However, this size comes with limited IO options, which can be a complication for some projects. In this case, [Hugatry] wanted extra storage, and devised a smart method to add a second SD card to the Pi Zero.
The problem with the Pi Zero is that with only a single USB port, it’s difficult to add any other storage to the device without making things bulkier with hubs or other work arounds. Additionally, the main SD card can’t be removed while the Pi is running, so it makes sense to add an easy-to-use removable storage option to the Pi Zero.
It’s quite a simple hack – all that’s required to pull it off is a few resistors, an SD card connector, and some jumper wires. With everything hooked up, a small configuration change enables the operating system to recognise the new card.
Overall it’s great to see hacks that add further functionality to an already great platform. If you find it’s not powerful enough, you can always try overclocking one.
Continue reading “Add a Second SD Card to the Pi Zero”
Do your Mark 1 Eyeballs no longer hold their own when it comes to fine work close up? Soldering can be a literal pain under such conditions, and even for the Elf-eyed among us, dealing with pads at a 0.4-mm pitch is probably best tackled with a little optical assistance. When the times comes for a little help, consider building a soldering microscope from a Pi Zero and a few bits and bobs from around the shop.
Affordable commercial soldering scopes aren’t terribly hard to come by, but [magkopian] decided to roll his own by taking advantage of the streaming capabilities of the Raspberry Pi platform, not to mention its affordability. This is a really simple hack — nothing is 3D-printed or custom milled. The stage base is a simple aluminum project box for heat resistance and extra weight, and the arm is a cheap plastic dial caliper. The PiCam is mounted to the sliding jaw of the caliper on a scrap of plastic ruler. The lens assembly of the camera needs to be hacked a little to change the focal length to work within 10 centimeters or so; alternatively, you could splurge and get a camera module with an adjustable lens. The Pi is set up for streaming, and your work area is presented in glorious, lag-free HDMI video.
Is [magkopian]’s scope going to give you the depth perception of a stereo microscope? Of course not. But for most jobs, it’ll probably be enough, and the fact that it can be built on the cheap makes it a great hack in our book.
Continue reading “Get Up Close to your Soldering with a Pi Zero Microscope”
What makes [mwagner1]’s Raspberry Pi Zero-based WiFi camera project noteworthy isn’t so much the fact that he’s used the hardware to make a streaming camera, but that he’s taken care to document every step in the process from soldering to software installation. Having everything in one place makes it easier for curious hobbyists to get those Pi units out of a drawer and into a project. In fact, with the release of the Pi Zero W, [mwagner1]’s guide has become even simpler since the Pi Zero W now includes WiFi.
Using a Raspberry Pi as the basis for a WiFi camera isn’t new, but it is a project that combines many different areas of knowledge that can be easy for more experienced people to take for granted. That’s what makes it a good candidate for a step-by-step guide; a hobbyist looking to use their Pi Zero in a project may have incomplete knowledge of any number of the different elements involved in embedding a Pi such as basic soldering, how to provide appropriate battery power, or how to install and configure the required software. [mwagner1] plans to use the camera as part of a home security system, so stay tuned.
If Pi Zero camera projects catch your interest but you want something more involved, be sure to check out the PolaPi project for a fun, well-designed take on a Pi Zero based Polaroid-inspired camera.