Since some time my fridge’s thermostat started to work erratically, so I decided to replace it. But, you know, do it in a normal way: go to the spare store, buy a new one, and replace it (2 hours top) it’s not an option for a geek. So choose the hard (and long way): make a new one. Course it should be much better than the old one, so I designed it with some features I want it:
- Configurable “on temperature”, and “off temperature” (hysteresis)
- A configurable minimum off time, to allow defrost.
- A configurable maximum on time, to allow defrost also, and to cool down the compressor if something happens (a door left open)
- An automatic backup if something fails (a mechanical thermostat is not prone to fail like an electronic)
My thermostat while I was testing it
So with all this a made a simple program in a PIC16F88, a use a LM335 for temperature sensing and two relay: one for the thermostat and another one (using an NC contact) to put in parallel the old thermostat in case of power fail (my PIC power source) or a cut in the sensor cable (implemented by software).
As I don’t wanted to deal with buttons, displays and so, I use a piece of code from other project: a home network over RS485. I’ll write some day about it, but basically I designed (from the ground) a communication protocol between several slaves (pic’s) and one host (a PC). I plan to use it to automate my future home, but so far I have three devices in my network, one of them: my fridge. So, with commands, from my PC I can change temperatures , times and turn on and off the fridge. And everything without any button or display. But also I can log the temperature over the time.
Temperature over time. The two anomalies where the door opening (dinner 10pm, a coke 1.30am)
I plan to use that (objective) information to make some investigations regarding how the fridge performance is related to: refrigerant pressure, insulation, distance from the wall, room temperature, etc. And also, to find the right mass to the sensor, because it’s not a good idea to leave the sensor naked to the air, because if you do it that way when you open the door the temperature will raise (temporary) and the fridge compressor will start. But what is important is the food temperature. So I think that the mass of the sensor should be equal to the less massive peace of food that is sensitive to temperature. But that’s theory… I’m not sure yet.
I have a really long wish list (It’s incredible how many things I would like to add to my fridge if I had the time) But so far I ‘m very happy with my fridge with RS485 interface ;)
“Religion is dangerous because it allows human beings who don’t have all the answers to think that they do”
I use to grow some plants (wink, wink), sometimes from seeds, sometimes cloning. To make a clone basically you cut a branch, put in water and wait until it grow roots. Because during the process the plant doesn’t have roots you have to minimize the water loss. There are a lots of ways, but all of them uses the same principle: put the leaves in high humidity environment; you know, if there is a 100% relative humidity the water won’t evaporate, so the plant won’t lose it. For example I use two half bottoms of coke bottles to make a sealed container.
But well, I used to do it, so when I buy basil or parsley, I put it in water, and I covert it with a plastic bag, I do it automatically. But I didn’t realize that most people doesn’t know that.
Hacking a plant this way you will have a fresh and crunchy leaves for many days, even eventually they will grow roots and won’t needed the bag anymore.
Great night!… I just finished the first integration test of my High Altitude Balloon project, and worked perfect!
This afternoon a put all pieces together (well… if we can say that), and test almost everything but get a GPS lock.
Because I live in an apartment in the middle of Buenos Aires it’s nearly impossible to get a lock from here. So I went to the roof and I left “the thing” (I have to think in a name) with a Gel Battery, and come back to my apartment. Wasn’t easy, I left alone a lot of work, and imagine that thing with a Gel Battery, and three or four leds blinking… in the state of social paranoia we are living, just one led blinking is enough: a bomb about to explode.
But well, once in my apartment I stared the screen for 10 minutes until I get 4 satellites and a lock!
<- My custom telemetry soft ;)
In the next post I’ll will write about the technical details of… the thing. Now I’ll celebrate.
I think my high altitude balloon is consuming a lot of (my) resources. But well… another hack related to the same project.
My primary communication channel is over UHF, modulating in FSK. But I cant rely in just one communication channel. So I think in a cellphone. A typical implementation is to send a SMS over the phone with the coordinates. But that means to deal with some obscure and undocumented commands and interfaces. Not to mention: to have the right cellphone.
So I have another idea: why not to call the cellphone and receive the FSK modulation over the line?. For that I needed to things:
- A way to power up the phone when I energize it
- A way to answer the call
Yes, I could use a μC, but I think in a simpler way. To power up the phone I used a capacitor in parallel with the Power key. So, when I energize the phone * the capacitor will be a short until it charges. Playing with the capacitor value I can change the “button pressing time”. And a resistor in parallel will discharge the capacitor for a next power up.
And to answer the call automatically I use a NPN transistor to short the Answer button, and the base that transistor connected to the vibrator output, so when I call, I close the circuit and answer automatically.
*You may be wonder why instead of energized the phone not to press the power button. Well, during the fly I’ll power up the phone several times (mostly to save energy, because in at some highs there is no signal and when that happens the phone increase the tx power, consuming a lot on energy). So, with this configuration when I energize the phone I’m sure it is power on, and when I de-energize it I’m sure it’s off and not consuming energy. In short: I can control the phone without any feedback, and I can be pretty sure it is in the state I want it.
I like photography, and as geek a like to take “tech” photographs. High Speed Photography is one of those. A classic is water balloon exploding, but to freeze the moment when the balloon is exploding we need to understand the timing. All action happen in, lets say, 5mS. Very little time. But the main problem is when to shoot. Yes, you can do it manually trying many times, until you get the shot. Or you can do it right. A typical DSLR camera has a delay of ~100mS from the time you press the shutter (or remote shutter). So if we detect the balloon exploding and we send a signal to the camera shutter we will take a shoot of… nothing, we’ll miss the action for 95mS. So we have to use another technique: we will arrange everything in a dark room, we open the shutter (bulb mode), and when the balloon explodes we… well, some electronic device, fires the flash. A flash has nearly no delay and a duration of (depend of the power) ~0.1mS. It’s perfect!
We juts need some way to detect the balloon exploding and fire the flash. First I use a mic with an amplifier + a comparator.
And worked very well… but the flash fires when the action started, and I want to see what happen after. So I made a “delayer” with a PIC microprocessor in order to add a variable delay to the signal.
Sorry, I don’t have the schematics, I made it on the fly. But it’s very simple.
And was amazing!… I could get the exact moment I wanted.
More pictures here
And a picture of my bathroom (sorry) with all the setup. You can see the camera, the flash, the “delayer” and the mic (near to the balloon).
My high altitude balloon needed a reliable and lightweight device to release the balloon in the case it remained neutrally buoyant.
I saw some implementations with a nichrome wire (melting the rope), but I don’t like it: too much current, big MOSFET, another battery pack. And let’s say it: not enough spectacular, and dangerous ;) So I decided to make my own pyrotechnic device.
For the fuse I used a very thin wire from a regular kitchen steel wool. With just 200mA it start to melt and burn. I put the fuse in one end of a plastic tube (from a ball-pen tank) and just a wire loop in the other. And YES!… black powder in the middle. Guaranteed an spectacular balloon release with very little power!