Random Photos

I had a 24-led NeoPixel ring lying around being useless, so I decided to make it do something less useless. As is typical, it became a clock. Not an original idea, sure. But these rings are well-suited for clockification. The blue ‘seconds’ lights will fade around the ring once per minute. There’s some mapping logic to determine where the green ‘minutes’ light should go. Hours is straightforward enough if the clock is showing 24hr time.

NeoPixelRingClock

 

I found this low-power ATTiny85 example circuit in my travels and since I have a few ideas for low-power digital circuits, I decided to throw this together. It just blinks the LED once every 4 seconds. Nothing fancy, but the goodness is in the code in how the chip is put into deep sleep and only woken up when it’s time to blink. Also, those ideas I mentioned involve dead-bug construction. With that 500 mAh battery, it should run for … a really long time.

LowPowerATTiny85Test

 

So when you have access to a 3D printer, making tabletop siege weaponry is part of the natural progression of things. These parts are part of a game called Seej. There’s a whole bunch of obstacles, fortifications, and siege weapons that can be printed. Good fun. We found that printing on a higher detail level than “lowest of the low” might be a good idea since some of the tolerances are tight.

PlayinSeej

 

That’s all for today. Thanks for visiting!

 

Fun with the MSGEQ7 Graphic Equalizer Chip

Not much today. Just a pair of videos from some testing I’ve been doing with the MSGEQ7 Graphic Equalizer Display Filter chip. The first one shows the waveform of the analog output of the chip.

 

The second video shows what happens when you take that output and parse it out to a bunch of LPD8806 lights.

 

If these experiments go any further, I’ll do a more in-depth post with code and schematics and stuff. If you have any questions, please let me know in the comments below :)

Neon Lamp Logic Nixie Clock




Now this is just plain cool. And insane. Every once in a while I see a project that really makes me question how much I know about electronics design and this is certainly one of them. Instead of a microprocessor, or even plain-old discrete transistors, all of the logic of this clock is accomplished with nothing more than neon lamps. Whaaaat? I won’t even try to explain, but let the designer explain over on his site.

Source: HackADay

Raspberry Pi QuadTempProbe: Temperature Measurement and Logging

A friend asked me a few days ago if I knew of a way to remotely monitor multiple different points of temperature, log the data, and generate an email alert if  sensor reading went out of bounds. Since I happened to have a ‘project-in-progress’ with just that goal, I decided I should finish it. Or, rather, get it to a working state.

QTP_Complete

Hardware:
Software:

To make installation easier, I built a custom…whatever they call things that attach to the Pi (“plates”?). It uses a ZVNL110A N-Channel MOSFET to do the level conversion for the sensors. They will actually work at 3.3V, but I wanted to use higher voltage due to the length of the wires (~20′), just to be on the safe side. Other than the MOSFET, the board has the 4.7K resistor for the sensors and 4 3-pin JST connections. I’ve included a schematic below that shows how all of this is wired up. Note that the JST connectors aren’t entirely necessary, but they do make installation/re-configuring/removal easier. You could always hard-wire the sensors to the board.QTP_BoardBottomQTP_BoardTopQTP_BoardCompleteQTP_Schematic

 

I used the DS18B20 digital temperature sensors for this project, and will probably use them again for similar projects. These things are awesome. No messing around with analog conversions, or having to worry about longer probe lines messing up the readings. And there’s a Pi library already built for them. All the sensors need to function is power and one resistor on the data line for all sensors (they can be wired up in parallel). They use some weird digital protocol to send data, but since it’s digital, there’s no big worries about line noise (there are limits, obviously). Each has it’s own unique ID hard-coded, so you can tell which sensor is reading which temperature.

 

To extend the reach of the sensors, I used about 20′ of telephone wire for each. I was able to find a 1000′ spool of the stuff on the cheap a while ago, and it’s perfect for this application. It’s flat and flexible, making it great for use in a refrigerator/chest freezer or closed in a door/window. There are 4 conductors, so for the 3-pin sensors, I just twisted two of the wires together on each end. I found that using small scraps of protoboard made the soldering MUCH easier, and added some additional strength to the connections. Judicious application of electrical tape and heat-shrink tubing should make them fairly weather-resistant, but some other sealing method might be preferred (keeping in mind not to interfere too much with the sensors).

 

QTP_ProbeQTP_Probe_CompleteQTP_ProbeConnectorQTP_ProbeConnectorComplete
So that’s all well and good, but what to do with the measurements? In short, I have a cron job running every 5 minutes that executes the script to poll each sensor and sends the data to a data.sparkfun.com stream. Also in that script, there are toggles and thresholds for alerts on each sensor. If the alert is enabled, an email will be sent to a defined address whenever the corresponding sensor reading goes above the defined temperature. My friend was looking to monitor a chest freezer that was suspected to be faulty. Having a “too warm” alert would indicate a possible failure of the cooling system and potentially give enough advanced warning to save the food inside.

 

To configure cron to run the python script:
sudo crontab -e -u root

 

Add the following line to the end of the file to run the script every 5 minutes
*/5 * * * * sudo python /home/pi/quadtemp.py

 

And that’s pretty much it. As with most of my projects, I plan on putting more polish on this one in the future. I’d like to design an actual PCB, as opposed to using protoboard and a bunch of wires. When I get that put together, I’ll post about it. If you have any questions or suggestions, let me know.

FG085 MiniDDS Function Generator Build Pics

Not much for today, just a few pics from my build of this nifty kit from Sparkfun: FG085 MiniDDS Function Generator. I figure an inexpensive function generator would be a good idea to buy first and see how much I actually use it before sinking bigger bucks into a piece of full-on test gear. Overall, I’m happy with this kit, aside from a few minor quirks here and there. No show-stoppers though.

FG085_inprogress

FG085_buttons

FG085_Testing

FG085_functioning