A mobile charging cradle for the Xperia Z

This is an extension of a previous project, a charging station for the Xperia Z. I decided it would be nice to have hassle-free charging in the car, as well as a base to hold the phone in a favorable position for seeing navigation.

The design in CAD software
The design in CAD software

The new design was made to partially enclose the phone (with its protective case) and have two pogo pins to hit the charging contacts on the side, making it virtually effortless to hop in the car and charge the phone without plugging anything in.

Instead of designing the dock with a specific car or mounting system in mind, I placed two holes matched to the diameter of a wire coat hanger. This allows a mount to be created and modified after the fact, and makes it possible to use the dock in another car without printing another one.

Also this time, instead of using a USB breakout board, I hacked the end off a USB cable, made a channel for the cable in the design, and used a knot in the cable as a strain relief.

Bottom view

Top view

With bracket

The quality of the print was much higher due to using a well-tuned Ultimaker instead of the aging Makerbot used for the last print.

Files for this project: SolidWorks file, PDF Drawing, STL file.

WiFi PIR Sensor

What IoT (“internet of things”) setup would be complete without the wireless PIR (passive infrared) motion sensor? And anyway, at this pace of ESP8266 projects, soon everything in my house will have an IP address.

This sensor is the next in a series, intended to fulfill a purpose, provide a general template for device-to-internet communication, and aid in me figuring out better and more compact ways to build these devices.

Generic input sensor interface
Generic input sensor interface

Continue reading WiFi PIR Sensor

A notch filter to detect a smoke alarm

Here’s another class project from this past spring semester, this time from Introduction to Circuit Analysis class.

Background: There are already devices that detect a smoke detector beeping and do something with it. These range from inexpensive (Life+Gear Fire Safety Night Light, $8) to capitalize-on-the-disabled expensive (SafeAwake Fire Alarm Aid with Bed Shaker, $250), and all rely on a similar premise: Identify the temporal pattern of a smoke detector beeping, and do something useful with it.

Needing to design any kind of filter for ENGR 240 class, why not select a smoke detector’s ~3200Hz? Continue reading A notch filter to detect a smoke alarm

Exporting a gmusicbrowser queue

I was looking to brush up on my C and C++ skills and become acquainted with the GNU GCC compiler, and this was one of the first topics I chose.

The idea is, take the queue of songs from gmusicbrowser and write a shell script to copy each music file to the current directory, prepending the number position in queue to the file name.

This permits the user to place all the files on a thumb drive or other device, and have them play in the same order, when the playing device plays in order of an alphabetical sorting of the directory. Two examples of devices that do this are an Onkyo TX-8050 receiver and a Kenwood DPX-500BT head unit. Continue reading Exporting a gmusicbrowser queue

3D printing a charging cradle for a Sony Xperia Z

This is a recap of a term project of sorts in Solidworks class last spring. We had to pick something to design (printing it was optional).

My latest smart phone is a Sony Xperia Z, a cheap enough out-of-pocket expense to replace a cracked Nexus 4. The new phone is water-resistant, but I found pulling the cover off the charging port every night was a pain. They do sell a charging cradle, though its poor design means it will not work with as phone case.

Copyright Sony
Copyright Sony

Considering the Xperia Z is so thin I can barely pick the phone up off a table without a case, and considering the school having a 3D printer, I found my design project. This post outlines the topics covered in my class presentation.

Appearances can be deceiving - this alarm clock has an IP address.
The finished print

Continue reading 3D printing a charging cradle for a Sony Xperia Z

Adding WiFi to an alarm clock for the hearing impaired

Introduction: The ClearSounds SW200 (motto: “shakeup to wakeup”) is an $80 alarm clock designed for those of us with hearing loss. It has hearing impairment-friendly features such as the ability to flash lights, an adjustable-frequency tone, and a bed shaker.

This is an older version
This is an older version

I’ve found the bed shaker is really effective – even when I had perfect hearing, the loudest screeching alarm sometimes wouldn’t roust me, but any sort of movement or vibration wakes me up immediately. Continue reading Adding WiFi to an alarm clock for the hearing impaired

ESP8266 Arduino SMTP Server part 3

This is a continuation of part 2, and expands to use the solution developed in this post, along with the latest findings about the specific DVR I’m using.

After creating the linux service described in one of the above links – which received a packet and plays a doorbell sound – the ESP server was modified to relay this signal. Continue reading ESP8266 Arduino SMTP Server part 3

UDP answerer and notifier

Goal: On receiving a packet, pause the music and play a notification sound.

Background: When I have headphones on, I am oblivious to someone at the door, or other potential things that are good to be aware of. Being able to accept a usable network signal and turning it into a noticeable alarm would be useful to use in certain applications. Continue reading UDP answerer and notifier

ESP8266 Arduino SMTP Server part 2

This is a continuation of the first miserable attempt at having an ESP8266 receive a signal from a DVR. Click here for part 1. This is continued in part 3.

Goal: Have a CK-PA9604 H.264 CCTV DVR send a signal on motion detected, to an arduino-programmed ESP8266 Wifi SMTP server, to sound a chime in a separate location.

The finished product
The finished product

Background: This specific 4-channel DVR can be set to detect motion in a defined area, and on detection either sound a (really annoying) 5-second beep, or send an email. Using an ESP8266 to detect the beep was considered and almost resorted to, but I’m a really determined programmer and in this instance was dedicated to learning how to execute a synchronous TCP handshake (SMTP) to achieve the goal.

The desired result is first and foremost, have the chime be more pleasant, and second, have the option of relaying the signal to a computer or smartphone or other device (and learn something new!) Continue reading ESP8266 Arduino SMTP Server part 2