Google Analytics

Monday, March 12, 2012

Saturday, March 10, 2012

Banjo - On Controlling Remotes


We've been married for 36 years. Thankfully, they've been wonderful years!
There was a time when I couldn't imagine being 30, let alone being married more than 30 years. 
I wanted to impart some of the wisdom I've discovered that have helped make this feat possible.
The most important thing in a marriage, as we all know (at least those that have been married more than two years), is … who controls the remote. It's popularly known as the 'remote control.' That's not entirely correct – it's actually the 'who controls the remote' remote-thingie.
When we were first married, we didn't even have a remote. I had seen remotes; I even had an uncle that owned a furniture store, and who actually owned a remote control, back in the 60s. This was a big, heavy thing made by Zenith. It was gold colored, and had a wire-grill on the front where the radio waves would emerge to turn the channel.  To change the channel, you pointed it at the TV and pushed the 'up channel' button or the 'down channel' button - there was no way to select individual channels. But that was OK, because there was only three channels anyway, and you were never more than two clicks up or down ever.  And it changed the channel by this little motor on the TV; it would go, sorta slow-like: 'ca-didge, ca-didge, ca-dige', and you had just gone through all three channels. 
Well, we didn't have a Zenith remote control, and we sure didn't have a furniture store either, so we made do.
What we made-do with was a black-and-white TV that I had 'repaired' by replacing the 'on/off' button. Only I couldn't find an 'on/off' button that looked like the one that was already on the TV, so I had to make do with what I could find. And what I could find was this BIG RED (that's in caps because it was BIG and it was REAL RED) that I mounted on the top of the TV.  If there's another one of these out there anywhere, it's probably on the TV set of Larry The Cable Guy.  
That wasn't just an ordinary BIG RED switch either; it was PUSH-BUTTON!  The way I figured it, that put us somewhere ahead of the rest of the people that made do with some sort of BIG RED TOGGLE SWITCH.  It worked great, but you were never quite sure, when you pushed it, if the TV was going to come on or you were going to launch!
We didn't realize it, but we were actually quite ahead for our times – this was not only a TV with a big RED launch button, but it was also an e-x-e-r-c-i-s-e machine! It was a simple exercise machine; the idea was, you waited around long enough until something came on you didn't want to watch, then you jumped up, ran the eight feet across our 'big' living room, and you CHANGED THE CHANNEL by twirling a knob; then you twirled another knob to 'fine tune it'. Then you sort of swaggered back to your seat on the couch, to gratitude from your mate. YOU were the channel-changer-remote-thingie, not some dumb plastic thing that only offers impersonal service; this was 'husband-to-go' and TV remote all rolled into one.
But. That's not what I learned that I'm trying to teach you about being married for a while.
What I learned is: how to tell how long a couple has been married.  And you don't have to be an anthropologist to do it.  
It appears that marriages start out where she's changing the channels for the two of you, and she does it with a smile ;-) too!
Then it becomes, he's changing the channels for the two of you, and he'd better do it with a smile :-O too!
Then technology advances; if you are lucky, you get a new remote; if not, you get divorced!
We were lucky; we got a new COLOR TV because I wanted to GRAPH MATH FUNCTIONS and see them in color on a friend's Apple II!
Yup, that actually pretty much sums me up – I bought our first color TV because I wanted to be able to see different equations in different colors. Since this was pre-computer monitors, this meant a color TV. And, since we were living in the future now, with computers and cassette players, that TV came with a remote! Best of all, you didn't have to own a furniture store to get one!
But I've been wandering around without getting to the point. So let me see if I can get back to the point.
When the marriage starts out (in the old days before Facebook), each one of the young marrieds gets up to change the channel.
Then, when you get the new color TV (were talking tubes here, not LCD or Plasma), and it comes with the remote, the guy takes charge of the remote.  I know some of you are busting-a-gut over that wording, but that's pretty much it.
The lasts until about the time the kids graduate from high school. Once those kids are gone, there's a new power structure – suddenly, the wife is in charge of the remote!  I think, best I can figure out, is that this is probably the first time she's had to actually sit down to watch TV since the children have been born, and by golly - she's dang-sure going to watch what she wants to watch!  
Fair enough. 
So, I'm sitting here tonight watching reruns of Everybody Loves Ramon, which was shown new in 2004. I'm watching it because I don't have charge of the remote. Of course, I could get up to change the TV manually, but first, I'd have to get up. Second, those little dim gray-on-black buttons that are flush on my TV – I can't see them without a flashlight. That's OK, because the price of those new LED flashlights has dropped so much, I get a pack of three every time I go to Fry's. I have one in my pocket still from last night's storms in case we lost power – they are just the thing to see those dim buttons.  But, as I said, I'd have to get up.  
So, what's a guy to do? She's got the remote.  She's in charge of the remote.  I read sometimes where guys say they've got charge of the remote, but either they are single, newly wed, or just a short-step away from divorse, if the kids are gon; if the kids are still home, there still some time left to pretend.  
It may be that she's got it because she's the only one that can find anything – I'm always setting something down and dang-it, where did I leave that? But she knows, or maybe she's hiding it, but anyway, she can find it so she's in charge of it.
For a guy like me, that's keen on technology, in addition to math equations, that means just one thing: I'm building my own remote control using an Arduino, and I'm going to mount it to my belt buckle. And, I'm going to make sure mine has brighter LEDs, so I can override hers!  And, if we don't get a sun-tan or convulsions when I stobe it, we may just be watching Nova next!

Banjo - Regarding the Arduino


I'm pretty serious about BBQ. It represents one of those things the South is known for, and it can also taste great, if you are lucky enough to find a restaurant, or friend, that is skilled at making it.
When I was first starting out making BBQ, I didn't have a clue where to start (see this previous articleon BBQ for more insight), which certainly made for interesting dinners! However, with a patient wife and smart children, we all benefited – although the suffering endured may have been a little intense.
At some point, I realized the main ingredient was missing. No, I'm not talking pork here. I'm talking about information. That was the key ingredient that was missing. With no mentors nearby, and with it being pre-Internet, information was hard to come by. So that meant one thing: tests.
Cooking BBQ means you are dealing with several things, all of which will affect the outcome:
  1. Temperature of the cooking chamber (oven) – influences time
  2. Time at temperature – influences temperature
  3. Size of the meat (weight, dimensions) – influences time
  4. Source of heat (wood, gas, electric) – influences flavor
The two that I was struggling with the most were: time and temperature.
So, if I was going to run tests to collect information, then I was going to focus on time and temperature. The time was pretty easy to keep track of, but the temperature was a little more difficult. In your typical home-style offset smoker, it has two chambers – the combustion-chamber (the firebox), and the smoke-chamber (the oven). There were several temperatures of interest: there was the temperature of the combustion-chamber, the temperature of the smoke-chamber (and this could be different in different areas), the temperature of the meat, and outside air temperature. In other words, a lot of temperatures!
At first I tried just plugging a big meat thermometer into the meat and leaving it in, where I would occasionally reach in and take a temperature reading. But this was problematic – it let heat out of the smoke-chamber, the face of the dial became black and difficult to see as smoke residue built up on it, and I wasn't too sure that the metal probe wasn't conducting enough heat, over time, to influence the meat temperature near the probe. Because of these issues, I also tried an 'instant read' thermometer. But that didn't work too well – it still let heat out of the oven, and the placement of the probe was never consistent, so I could never be sure I was getting an accurate reading - since heat migrates into meat from the outside in to the middle, the portion of the meat closest to the outside will be the hottest, while that in the middle will be the coolest – at least until all the moisture has cooked out; a dried, hard piece of meat will have a consistent temperature throughout.
What I needed was some sort of device could take all of the different temperatures and then record each of these different temperatures for me.
I knew from my work in process control at nuclear plants that thermocouples were a good choice for obtaining the temperatures: they were accurate enough, they were robust enough to take the combustion-chamber temperatures, and they could all be collected together outside of the cooking environment, which meant I didn't have to place the recorder into the smoker.
However, thermocouples can't be used directly; they require an amplifier, and another device to measure the ambient temperature in order to derive the temperature under sample.
At first, I thought the most obvious solution was to buy something that would plug into my computer that was capable of taking the temperature samples and then recording them in my computer. Not a bad idea, but it turned out that this was way-too-expensive for a hobby!
Researching led me to microcontrollers. In particular, Atmel's AVR line of microcontrollers. A microcontroller is an integrated circuit – popularly known as a 'chip'.
A microcontroller is an interesting thing. It can be programmed, so it has the benefit of being capable of running software. Nothing much new there, except the software is all in the chip, instead of being on a hard disk, like it is on your computer, which is then transferred into your computers memory before being read into your computer's CPU. The microcontroller also has direct capabilities to interface with the physical world, in the form of sensing voltages, and can also send out voltages, on different pins on the chip. This meant it could interface with a thermocouple. It can also communicate directly with another computer, which meant it could send the data to the computer where it could be recorded.
So, I built a multi-channel temperature sensor and data logger, using one of Atmel's microcontrollers. It was a little bit of a challenge, but the results gave me data on all of the items I was interested in, at a sample rate of once-per-minute. I could have gotten more samples (e.g, one per second), but this seemed enough. I programmed a small dedicated web-server that would display time and temperature on the internet so I could pull it up at work to see if I needed to head home over lunch to make any adjustments. And, once you've got all of this, you may as well hang an inlet-air valve on the smoker and controller the smoke-chamber temperature with the microcontroller so you can do something else all night, like sleep!
A lot of time and effort went into this – but not much money, as all of the items were inexpensive. The effort was in acquiring the knowledge to put everything together. I was fortunate, in that I already had an extensive electronics background, as well as an extensive software programming background, but even then it took a while.
Which leads me, after a long segue, to the Arduino.
There is some confusion as to what an Arduino actually is, so I'm first going to explain it. It is an open-source hardware electronic board. Being open-sourced, it can be manufactured by many companies, or even yourself. It comes with various chips on it and hardware connections to make it easier to interface into the real world, for everyday hobbyist. There are different boards available, but one of the newest is the Arduino UNO. The main chip on the board is an Atmel ATMEGA328P – this is the microcontroller. It also has a voltage regulator, a couple of LEDs (light emitting diodes), and places where different devices can be plugged in. This board runs around $30.
The Arduino is also a software programming environment, known as an IDE (Integrated Development Environment), that runs on your computer. This part if free. (www.arduino.cc)
The Arduino was developed with the objective of making microcontrollers available to artists, fashion designers (clothing like the lighted cloths worn at this year's Super Bowl half-time show), and everyday hobbyist. Therefore, a lot of the things that I struggled with (above) have been simplified, with the result that whole companies (www.adafruit.com, www.sparkfun.com) are now up and running to supply items that can plug into this Arduino (known as 'shields'). One of those shields available, for about $20 from adafruit and/or sparkfun, is a thermocouple reader. This means, for about $50, any hobbyist can make a small investment in time, and have a BBQ Temperature Sensor and Data Logger!
An Arduino is a perfect solution for taking BBQ temperature data from tests run, among other things. It has program memory, for the software, and data memory (for the data), all on the chip. This means the data is stored directly in the Atmel chip. It also means it's directly available to transfer into a computer for graphing or other use. And, again, it can also be programmed to interface with an inlet air valve to control the smoke-chamber temperature, while you do something more constructive, like sleep.
Well, once you've got an Arduino, that old saying comes into play: to a boy with a hammer, the whole world is a nail! Well, to someone with an Arduino, the whole world, every device, seems like it needs one!
Here's how I'm currently using Arduino's around our house (a link to my Sous Vide Controller for crock-pot):
  • A thermostat to control the gas heater on our porch, without interfering with any of the heater's built in safety devices.
  • A precise crock-pot temperature controller. Want to use a crock-pot as a small, inexpensive, Sous Vide device? No problem!
  • Run time vs. temperature tests on meat in Sous Vide
  • Automatic watch winder. Did you know these things are $100 - $3000!
And here's what I've got under development :
  • 4 or 8 channel thermocouple datalogger to 4 GB SD card.
  • Better watch winder. This sounds so easy, but the issue is that each watch manufacturer has different criteria on how to wind their watch. Rolex requires about 600 revolutions per day, alternating clockwise and counterclockwise; Breitling requires abpit 800 revolutions per day, all clockwise. For the Breitling, that's about 1 revolution every 15 seconds, followed by a pause of about 1.5 minutes.
  • Inlet air valve for large smokers.
If you've got a teenager that needs an interesting activity, have a look at Arduinos. They are inexpensive, fun to work with, and very educational. In the Alpharetta area, both Fry's and Radio Shack carry Arduinos.
I'll be writing more about this interesting device in the future.
Here's some interesting links:

I MacGyvered it!



The new patio heater's pilot light just wouldn't stay lit.

I was doing everything that should be done; I was holding in the throttle valve while striking the lighter.  It would light; it just wouldn't stay lit.

I held it in for 30 seconds per the manual.  Didn't stay lit when I released the valve.

I held it in for 1 minute.  Didn't stay lit then either.

Held it until dooms day; still didn't stay lit.

What's a Banjo man gonna do?  His wife had SPECIFICALLY said her shoulders were hurting from working on the roses in the garden, and SHE WANTED SOME HEAT from that patio heater we had bought to pour down on her shoulders.

Damn thing just would not stay lit.

So I gave up on the BS technology safety features that were built into this device, and I MACGYVERED IT!

I BYPASSED that SOB that was causing all the problems.

YEAH!

Now, we're listening to some Blues!  And feeling some HEAT!

Righteous!  Knowledge of Electronics Rules!

Thursday, March 8, 2012

Banjo on - Discovery Channel's lack of Science

A couple of things really bug me, and when it occurs on the Science Channel or Discovery Channel, it bugs me even more.  The fact that it happens on the Daily Show isn't a surprise at all.  And of course, all channels are guilty - it just seems to me that those channels that infer they pertain to science, should make a better attempt to do so.

Here they are:
 1 - When showing a sunrise and/or sunset in the Northern Hemisphere, they show the sun rising/setting at the wrong angle.  Here's what I mean by that: In the Northern Hemisphere, on every day of the year, a picture of sunrise will show the sun traversing at an angle to the right.  Sort of like this ___/ ___  , where I'm trying to show, by the '/' the correct angle the sun takes as it rises above the horizon.  If you are watching some dumb show and it shows sunrise like this ___\___ (traversing to the left) then you know they don't know their butt from a hole in the ground.  Conversely, when they show a sunset like this ___/___, instead of the correct setting angle of ___\___, then again they don't know their butt from a hole in the ground.  What they are doing is being lazy.  They don't want to get up and set up early enough to show a real sunrise, so they film a sunset and run it in reverse, and they are either too stupid to realize there's a difference, or else they think you are too stupid to notice.  In either case, they are pushing inaccurate information at you.

2. On the daily show, and occasionally on other shows as well, they show the earth rotating in the wrong direction.  When you look at the typical globe (and as done on the Daily Show), the Northern Hemisphere is shown at the top of the globe (note that in space, if you were looking at the earth, depending on where your head and feet were, either pole could be at the top, so the Northern Hemisphere is shown at the top by convention).  So, with that in mind, if you were oriented in space and looking at the earth so the North Pole is at the top, then locations on the earth will appear to you to be moving from the left to the right.  If you were looking down on the earth from directly above the North Pole, then the earth would appear to be turning counterclockwise.  The Daily Show opening has the earth spinning clockwise, and moving from right to left.  So, is this a political statement from the Daily Show, where they show everything moving from the right to the left, instead of the accurate movement from left to right?  Or are they simply too stupid and too lazy to check it out before publishing it in front of millions?