DigitalMisery.com

Stuff we made, or attempted to...

  • Projects
    • Altimeter Stick
    • Arduemetry
    • ColorNode
    • Halloween
      • Coffin Corpse
      • EL Ladder
      • Halloween Tree
      • Rocker Granny
      • Spider Infestation
    • Valentine’s Day
      • 24 Hours of Love
      • Valentine Love Light
    • Wireless Wii Nunchuck
  • About
  • Contact

Keeping Sensors In The Dark

Posted by Paul on 5 June 2013
Posted in: AltStick, Notes, Projects. 2 comments

My AltStick rocket altimeter is designed around a digital absolute pressure sensor from Freescale – MPL3115A.  I chose this part because 1. it’s small 2. it’s low power and 3. it outputs readings in height (meters) or pressure.  The previous generation part, MPL115A, only provided pressure outputs.  They are both the same size and about the same power, but I really liked the fact that I didn’t have to do any additional calculations in my software to get a height reading.  It wouldn’t have been difficult but it just comes for free with the MPL3115A. The data sheet states that the accuracy could be as good as 0.3 meter or about 1 foot, so I wanted to see if that could be achieved.  Unfortunately, I was never able to get close to that – readings were all over the place most of the time – so I thought I was using it wrong.  Then a discovery was made today…

I was at the Sensors Expo and Freescale had a booth there.  They are featuring the MPL3115A on just about every development kit and eval board now.  I noticed that one of these boards had black fabric over the top.  I thought it might have had to do with this pressure sensor and I was right but for the wrong reason.  Absolute pressure sensors like the ones from Freescale and other suppliers typically have a small port or opening in the top of the device where the sensor element can sense the ambient air.  I had seen people use foam or other material over the top of such sensors to help prevent erroneous readings from turbulent air, say on a quadcopter, for example.  However, when I asked about the fabric I was told it was instead to keep the light out of the sensor. “What does light have to do with it?” I asked.  Well, apparently the sensor die is light sensitive as are those for other sensors like accelerometers, I was told.  The difference is that the pressure sensors have a hole to let air/light in while the accelerometers are completely encapsulated. Now, this would not normally be an issue since they expect the sensor to be embedded within an end-item, say a cell phone.  However, in my case, I have be experimenting and testing with the board out in the open, mainly so I can access the buttons easily. I was assured that this was a well-known characteristic of these types of sensors but I’ve read the MPL3115A datasheet back and forth many many times and I know I didn’t see any mentions about light.

After the show I dug out the datasheet and searched for the word “light” – nothing.  It does refer to an App Note which talks about handling and soldering their pressure sensors but it had really no relevance to this part and again had no mention about precautions with light exposure.  I then went to the other similar part – MPL115A – and searched through that datasheet.  Lo and behold it did mention the light precaution: The sensor die is sensitive to light exposure. Direct light exposure through the port hole can lead to varied accuracy of pressure measurement. Avoid such exposure to the port during normal operation. So it is true!  However, my complaint is that, had I never known about that other part or had the helpful people at the Freescale booth not informed me of this, how would I know about the light sensitivity? On top of that, for design engineers who are using Freescale’s Xtrinsic Freedom development platforms that feature the MPL3115A (totally exposed, by the way), they may not be aware of this.  If you are wondering, I have already mentioned this to the Freescale reps and they are going to see about updating the documentation.

Now that I am aware of the light-sensitive nature, I did find another (brief) mention of it in a presentation about this sensor (a really good read, by the way, if you are interested in this device, along with the Pressure Altimetry App Note).  I also went ahead and covered my sensor on the AltStick with a small piece of foam as you can see in the picture below.  It sufficiently blocks out light without preventing the sensor from measuring the ambient pressure.  Again, this really wouldn’t be an issue when the board is enclosed or contained within a rocket. I had planned on using heat shrink or some other material before using it in a rocket anyway to protect it against hot ejection gasses and landing impact.  The great news is that, after over a dozen ground-based tests, I am now reliably getting +/- 1 foot accuracy – achievement unlocked! Thank you Freescale for making such a great part! I think it is finally time for me to do some test launches to learn more about how this board holds up and what sort of measurements I can get from a much more dynamic environment.

Foam placed on pressure sensor to keep out light

Foam placed on pressure sensor to keep out light

DIY Homebrew Kegerator Thermostat

Posted by Paul on 8 May 2013
Posted in: News. 1 comment
Homebrew (hardware and beer) Kegerator Thermostat

Homebrew (hardware and beer) Kegerator Thermostat

Here’s a picture of a project I recently completed: a thermostat for controlling the temperature in a homebrew kegerator. I am using a small chest freezer which can hold two cornelius kegs and associated CO2 tank. I could have spent the $ to just buy a nice digital one (from my favorite homebrew supply shop, Chicago Brew Werks), but I had some parts on hand and picked up a few parts from Adafruit and pieced it all together for much less. The main switch is a 25A solid state relay (a bit over-kill for the 1.5A compressor…) which is controlled by a spare ColorNode board I had laying around (eventually I’ll use the transceiver to let me monitor/control the temperature wirelessly). The design uses the Maxim 1-Wire DS18B20 for temperature measurement (accurate to ~1°F with ~0.1° resolution), white I2C seven-segment display, round tactile buttons for adjusting temperature settings (high/low turn on/off points) and enabling the temperature control, and cable glands to hold the input/output power cords securely in place (not necessarily for water proofing).  The electronics are powered from the AC line input using a miniature AC/DC converter which supplies 5V @ 1W. The temperature sensor is attached via some speaker wire and encapsulated in Sugru on one end and the other end terminates at a 1/8″ stereo plug. The enclosure is a Radio Shack plastic project box into which I cut holes for the display, buttons, ON LED, power cables, and temperature probe jack. The display and buttons (and a bunch of wires) are soldered to a protoboard and mounted via standoffs to the box lid. The height of the buttons and the display almost matched up perfectly to each other when mounted on the board. I made sure to isolate the AC line wiring from the DC control wiring to make sure it would be safe to use. Overall it turned out really well and I’m looking forward to having cold homebrew on tap!

Valentine’s Day Projects

Posted by Paul on 13 February 2013
Posted in: News. Leave a Comment


Love is in the air around here as we have been working on Valentine’s Day projects for each other.  I made a Valentine Love Light for my wife and she went all out and created 24 Hours of Love. Our child is even being crafty and making cool Dr. Who Valentine’s cards for friends, complete with tins of Jelly Babies:


Tardis Valentine Card

Tardis Valentine Card

Dalek Valentine Card

Dalek Valentine Card



HexBright FLEX Arrived

Posted by Paul on 20 December 2012
Posted in: News. Leave a Comment

So if you hadn’t heard, there was a Kickstarter project called HexBright. Check it out or see the main website for more info. I pre-ordered one because I thought the idea of a super bright flashlight built on open-source hardware was too good to pass up. Well it came this week and it lives up to my expectations.  I’ve included some pictures below and also check out my GitHub repository where I’m keeping my software modifications.

Great mechanical design and ergonomics.
Great mechanical design and ergonomics.
500 Lumens is punishingly bright.
500 Lumens is punishingly bright.
Custom protected Li-Ion battery is held securely in place.
Custom protected Li-Ion battery is held securely in place.

Nice circuit layout and assembly.
Nice circuit layout and assembly.
Activation Button at back even has the HexBright logo.
Activation Button at back even has the HexBright logo.
The business end of this torch - so much from such a little thing.
The business end of this torch – so much from such a little thing.


Posts navigation

← Older Entries
  • Search for stuff:

  • Recent Tweets

    • Testing out an @adafruit NeoPixel RGB LED strip & Teensy 3.0 powered by 4400mAh Li-Ion pack. Wow are these bright! http://t.co/bR3i5FTY8b 17 days ago

    Follow Me on Twitter

    Powered by Twitter Tools

  • Tech Links

    • PartSim PartSim
  • Tags

    Accelerometer amateur radio APRS Arduino BOM code conservation DIY Electronics For Sale geekdad GPS LED library Open Source outdoors pcb power review Telemetry Wii Wireless XBee
  • Recent Comments

    • Jim on Best Slip ‘n Slide Ever from @WiredGeekDad
    • mikerankin on Keeping Sensors In The Dark
    • mikerankin on Keeping Sensors In The Dark
    • Crafty Central » Best Outdoor Games {Life-Sized Edition}! on Best Slip ‘n Slide Ever from @WiredGeekDad
    • 20 Fun Things To Do During a Homeschooling Summer | TheHomeSchoolMom.com on Best Slip ‘n Slide Ever from @WiredGeekDad
Proudly powered by WordPress Theme: Parament by Automattic.