For all their capacity, shutting down a Raspberry Pi can be a bothersome routine depending on how you have it set up — historically and abrupt cut to the power risks corrupting the SD card. [madlab5] had to make a few changes to a Pi running in headless mode, requiring them to access it externally to shut it down to prevent any damage from pulling the plug. So, why not take the opportunity to whip up a soft shut-down switch?
This is a great beginner project to get one accustomed to working with a Pi. With this in mind, [madlab5] went through two revisions of this idea: the simple way, and the fun way. For the simple way just press the button and the Pi activates a script which shuts it down in thirty seconds. Job done. But, realizing there may be a few circumstances where they’d need more functionality, [madlab5] decided to take a second swing at this.
[madlab5]’s fun way involves a button with a built-in LED and a speaker to blare an announcement that the Pi will
self destruct shut down after a short time. Setting the switch up this way takes a little more doing, but you get to add a little more character to your Pi with a custom shutdown report, as well as the option to cancel an accidental button-press.
For any newbies out there, [madlab5] is kind enough to provide their code and diagrams in their blog post. If remotes are more your thing, we have also featured a similar beginner project to shut down your Pi.
We all know feature creep can be a problem in almost any project. A simple idea can often become unusable if a project’s scope isn’t clearly defined in the beginning. However, the opposite problem sometimes presents itself: forgetting to include a key feature. [Zach] had this problem when he built a Raspberry Pi magic mirror and forgot to build a physical reset/shutoff switch. Luckily he had a spare Amazon Dash button and re-purposed it for use with his Pi.
The Raspberry Pi doesn’t include its own on/off switch. Without installing one yourself, the only way to turn off the device (without access to the terminal) is to unplug it, which can easily corrupt data on the SD card. Since [Zach]’s mirror was already complete, he didn’t want to take the entire thing apart just to install a button. There’s already a whole host of applications for the Dash button, so with a little Node.js work on the Raspberry Pi he was able to configure a remote-reset button for his mirror.
This is a similar problem for most Raspberry Pi owners, so if you want to follow [Zach]’s work he has done a great job detailing his process on his project site. If you’re looking for other uses for these convenient network-enabled buttons, he also links to a Github site with lots of other projects. This pizza button is probably our favorite, though.
Wafer level chips are cheap and very tiny, but as [Kevin Darrah] shows, vulnerable to bright light without the protective plastic casings standard on other chip packages.
We covered a similar phenomenon when the Raspberry Pi 2 came out. A user was taking photos of his Pi to document a project. Whenever his camera flash went off, it would reset the board.
[Kevin] got a new Arduino 101 board into his lab. The board has a processor from Intel, an accelerometer, and Bluetooth Low Energy out of the box while staying within the same relative price bracket as the Atmel versions. He was admiring the board, when he noticed that one of the components glittered under the light. Curious, he pulled open the schematic for the board, and found that it was the chip that switched power between the barrel jack and the USB. Not only that, it was a wafer level package.
So, he got out his camera and a laser. Sure enough, both would cause the power to drop off for as long as the package was exposed to the strong light. The Raspberry Pi foundation later wrote about this phenomenon in more detail. They say it won’t affect normal use, but if you’re going to expose your device to high energy light, simply put it inside a case or cover the chip with tape, Sugru, or a non-conductive paint to shield it.
EDIT: [Kevin] also tested it under the sun and found conditions in which it would reset. Videos after the break.
Continue reading “Don’t Take Photos of Your Arduino 101 Either, It’s Light Sensitive”
Many people have their home network setup with a dynamic dns service in order to remote access their files, printers, or Pi based security camera systems. Many people also suffer from less than stellar internet connectivity and find themselves unable to access their home system due to a stalled signal.
netBOOT is an Arduino based device that automatically resets your modem for you, when you are unable to. Core of the system is a standard issue ATMEGA328p based Arduino board combined with a W5100 Ethernet module, and a relay module. The software on the Arduino periodically pings a list of IP addresses and listens for a response. If none is found within 3 tries the relay module, which is connected inline with the DC power of your modem, is clicked open for 10 seconds and then returned closed. Once your modem has rebooted and re-synced everything should be good to go.
We don’t remember seeing this feature in the list of specs for Google’s new OnHub. The ability to reset bad connections seems like a feature that should be built into future-thinking routers, right?
We’ve all have had to reset our routers or modems at some point because they were acting up. The typical scenario is; unplug the device, wait 30 seconds, plug it back in and wait for it to boot back up. While not hard, this can be an annoyance, especially if accessing the router or power cord is inconvenient. [Taylor] wrote in to tell us about his wireless router that seems to need to be reset more than he’d like. Although the simplest solution may be to get a new router, he thought it would be fun to do something a little more exciting by making a wireless reset controller.
[Taylor] started with an ordinary power strip. He spliced in a relay to the hot side of the AC line, connected to the common and normally-closed pins of the relay. That way, when the relay is not activated, the power strip is powered. Next, a wireless doorbell was re-purposed to act as the transmitter and receiver. The speaker was removed and the output lines connected to a mono-stable 555 timer circuit that [Taylor] made. When the circuit receives a signal from the door bell speaker lines, it will activate the relay for about 30 seconds. Since the relay was wired to supply voltage to the power strip when not activated, activating the relay cuts the power for 30 seconds effectively resetting the router. Now, whenever the router needs a reset, doing so is as easy as pushing the door bell button from anywhere in the house.
For the past month, the Raspberry Pi 2 has only been available to the Raspi Foundation, and for about 2 weeks, select members of the media who have worn the Raspi 2 on a necklace like [Flavor Flav] wears a clock. That’s not many people with real, working hardware and when a product is released, the great unwashed masses will find some really, really weird bugs. The first one to crop up is a light-sensitive reset of the Raspberry Pi 2.
[PeterO] on the Raspberry Pi forums took a few pictures – with flash – of a running Raspberry Pi 2. It took a little bit of deduction to realize that a camera flash will either reset or turn the Raspi 2 off. Yes, this is weird, and experiments are ongoing.
A short video from [Mike Redrobe] confirms the finding and a reddit thread offers an explanation. U16, a small chip located in the power supply part of the Raspi 2, is sensitive to light. Putting enough photons will cause the Pi to shut down or restart.
There’s still some research to be done, however, I can confirm a cheap green laser pointer will reset a Raspberry Pi 2 when the beam is directed at the U16 chip. This is the chip that is responsible, and this is not an EMP issue. This is a photon/light issue with the U16 chip. The solution to this bug is to either keep it in a case, or put a tiny amount of electrical tape over the chip.
Thanks [Arko] for staying up until an ungodly hour and sending this to me.
There have been a few people asking us to do our full teardown of a crowdfunding campaign, this time for Bleen. We’ll get to that, but here’s the TL;DR version: 208 people just threw money away, and right now Indiegogo is ~$3000 richer for doing nothing.
Insipired by a Hacklet, [Chris] documented his retro console build. He started out like most people do with a Raspberry Pi, but found emulating newer consoles like the N64 consumed too much processor time. He moved his build over to custom-assembled hardware with an AMD Micro-ATX board, a drive, and a USB gamepad. It’s beautiful, and much, much more powerful than a Raspberry Pi.
SD card in your Pi died? Of course it did. The problem is you’re not shutting down your Pi correctly. [satya] whipped up a quick project to fix that. One button, a bit of Python, and a shell script is all you need for a one-button shutdown for your Raspberry Pi.
A while ago, [Jan] built an ARM-based modeling MIDI synth that sounds a lot like the old Junos of the 80s. It’s build around the one 8-pin DIP ARM that’s being manufactured, placed between a MIDI jack and a 1/4″ jack. That’s pretty much all the components. [Gritty] plugged it into a Teensy that’s connected to a sequencer. It sounds awesome.
Everyone loves the Spark Core – there are a few floating around the office here. Now there’s a new Spark. It’s called the Photon, and they’re packaging it as a module. There’s an STM32F2 microcontroller and a BCM43362 Wi-Fi transceiver packaged in a nice, FCC certified module. Very cool.