01/17/2015 at 20:53 •
I was a little overwhelmed at all the variables involved in using a piezo buzzer for a vibration/leak sensor so I bought a raspberry pi and played around with it for a while. One of the coolest things you can do with it is make it a web server and control switching lights or whatever with your phone. I started getting into Flask, but after a while I started to miss the real low level programming.
So I revisited the newLeak program and found a much better way to record the water flow and got way better results: 1floz per sec as opposed to 2 cups! It turns out I was using the interrupt pin as an interrupt and as input which gave me inaccurate readings. Here's the revised code: newLeak2.asm
So I'm back in it and next up is integrating the leak code with the bluetooth code. :]
12/31/2014 at 18:52 •
This week I was able to test the water flow meter I got from Adafruit. Here's a link to the code if you want to check it out: newLeak.asm
Unfortunately, the flow meter only starts registering at about 80 ticks per second, which I think is too much for a slow leak.
So I decided to play around with sensing vibration from a leak using a piezo buzzer. Here is the code I adapted from Elliot Williams 'Foot Detector' program in AVR-Programming. piezoLeak.asm Interesting data to play with.
12/23/2014 at 23:50 •
Today I was able to successfully flash an atmega168 with an assembly program that sent setup commands and broadcasting commands to the Adafruit/Nordic Bluetooth module nRF8001. I wrote a quick Cocoa program to confirm the device was indeed broadcasting the right data. And sure enough, success!
Super stoked so I started this web log to share my progress!