Saturday, September 17, 2016

Backyard Landscaping - Grass Almost There


Looking pretty good, eh?  Looking at the last photo from about six weeks ago, its starting to look like a real lawn; I even mowed for the first time this morning. Even without zooming in, you can see some bare spots and I re-seeded two weeks ago to try to fill those in. When I look closely, I can seem some of those seeds have sprouted but not near as many as I had hoped. I'll probably have to seed and fertilize again in the spring. At least we won't have a mud pit for the summer.

And there's more to my life than this lawn, I promise. Hopefully some of that will show up here soon.

Tuesday, August 23, 2016

Backyard Landscaping - Growing Grass Still


I don't know what to say other than this blog, as of late, is literally as exciting as watching grass grow.

And it will continue to be that way as it is clear from the photo above that I will need to add some seed in the coming weeks. The grass I planted doesn't grow super well in the heat and its just now cooling off from the summer. I'm hoping the second seeding will fill things in well enough that we can avoid mud for the winter.

Wednesday, August 03, 2016

Backyard Landscaping - Growing Grass

I know, I know. So many of you have been asking, "Whatever happened to that grass you planted?"
Here's a not-very-good picture taken after the sun had gone down this evening of this little guys getting going. I have no idea why they are popping up in such a patchy manner; I might have to re-seed in the fall before the water is turned off.


Sunday, July 24, 2016

Backyard Landscaping - Dirt In and Grass Planted

While I was out of town this past week, my sister and her husband came to help visit and assist my wife with all the running of the house and caring for our son. And while they were at it, they moved the rest of the dirt in. Last night I planted the grass and tonight, when our irrigation water returned, I started watering. Let's hope our recently spotty irrigation water holds up for a week or two so the seed can germinate.



The lighter spot in the lower left is not covered by the sprinkler head very well. Though they claim to spread the water uniformly, that is clearly not the case.  I'll be able to cover it decently with water from another zone.

Sunday, July 17, 2016

Backyard Landscaping - Smoothing the Fill Dirt

The dirt is definitely smoother but this photo is deceiving. There's still much more to move in and a lot of smoothing still to go.


Newberry National Volcanic Monument

So, before we begin with the pictures, the difference between a National Park and a National Monument in the United States has only to do with how they are created and who ends up responsible. National Parks must be created by Congress, National Monuments can be created by the President or Congress. (And I guess if there was ever a lawsuit about the status of such a site the Supreme Court would get in on the action? I wouldn't want them to be left out.) The Park Service runs the National Parks and some other agency ends up running the National Monuments.

Why do I bring this up? Because this past week I visited Newberry National Volcanic Monument, managed by the US Forest Service and I saw no difference between it and a National Park (except maybe for the fishing in the lakes). I feel like this is an indicator of the disfunction and cost of politics, that we need two mechanisms to essentially do the same thing because sometimes, one of them isn't working. I as an engineer I should appreciate the redundancy but it seems like redundancy in governance commonly goes by the name "waste". At least they all figured out having a common location to reserve campsites is a good idea.

OK, let's not dwell on such things any longer.

Last week we went camping! It was mostly wonderful aside from being very cold at night. Our one year old end up sleeping with us and with a cap on his head, he slept through the night like a champ. Being an outdoor boy, he loved having ready access to sticks, dirt and rocks.



My big event for the trip was a hike to a local peak. It was the most ambitious hike since injuring my foot with a 1400 foot increase in elevation and a total length of around seven miles round trip. I was hauling my son in a baby-carrier backback most of the way and I paid for a bit the next day but it was worth it. A view from along the way, showing the two lakes in the Newberry volcano caldera:



When we got to the top we found that there is a road that allows mere mortals to drive directly to the peak. The next morning, when our son woke early with the sun, being a mere mortal at that hour of the day, I drove up with him to get some sunrise pictures. The mountains you see are Mt. Bachelor and the Three Sisters.



The only other hiking we did was a short mile or so to the Pauline Falls; here's the view from the lower observation platform.


Sunday, July 10, 2016

Backyard Landscaping - Moving the Fill Dirt

Starting to move the pile of dirt in the drive to hole in the backyard.  Here's how the pile looked as left by the dump trucks. The dirt on the right is fill dirt and the that on the left is nutrient-rich topsoil.


I did a little work on Thursday but the majority of the action was yesterday with the help of my wonderful friend SamHam.


Here's how those piles looked after few hours of labor:


And the backyard:


I count roughly fifty wheelbarrow trips to get to this point but its a little tricky to tell because, as I was using the wheelbarrow, SamHam was carrying five gallon buckets of dirt and filling in some of the gaps I was leaving.  You know, just carrying big buckets of dirt like he did this everyday.

We made a good dent in the pile and I'm sure we'll have more to move. The next step will be smoothing out those piles and compacting them so I can get a good idea how much more of the lighter-colored fill dirt needs to be moved before we start moving in the darker-colored topsoil and plant the grass.

Thursday, July 07, 2016

Backyard Landscaping - Bermuda Grass Barrier Installed

Finished last night:


Bermuda grass, the type of grass that pretty much covers our back yard because it does so well in the hot and dry climate we have here, had begun to chip away at the edges of our basketball court before this renovation. The asphalt was thin enough and the gras strong enough that it was actually growing underneath and then breaking through and apart the asphalt.

To help prevent that, I've installed a five-inch plastic barrier around the edge of what we retained of the court. I don't know how effective it will be but it was inexpensive and didn't take much labor to put into place. What you see above is my use of bricks to hold it flush to the asphalt; I'm hoping the sun will help relax the plastic from its rolled-up state into something straighter and I'll be using some tar-ish roofing adhesive/sealant along the top edge to help to stick to the asphalt.

At the two corners I've installed two notched PVC pipes to protect both the asphalt and help provide a stronger connection point for the barrier. Again, the roofing adhesive will be applied liberally to help secure the entire thing.

Again, I don't have high expectations but I wanted to try something to keep the Bermuda at bay.

Monday, July 04, 2016

Backyard Landscaping - Temporary Sprinkler System Install Complete-ish

Two trips to the home improvement store later, the temporary sprinkler system is in place.


Four heads at the corner of the court. The front edge of the asphalt has a plastic barrier I'm going to try using to keep the grass from being able to grow under the court and break it up, as it was doing at the edges of the original court. I'm skeptical of how effective it will be but I figure its worth a little extra cost and effort.

Backyard Landscaping - Beginning Sprinkler System Install

Completed last night and photographed this morning:


The trench on the left side is to support two new sprinkler heads placed at the corners of the court. There will be a parallel trench and sprinklers on the other side as well. The water for both of these will come from an existing line with three heads running along the back fence. Eventually there won't be any grass back there thus my choice to repurpose the line.

Saturday, June 25, 2016

Backyard Landscaping - Gravel Removal Complete

I finished this up a few days ago after the sun had gone down and thus had to wait to get the picture.


Next up, hack in a few extra sprinkler heads to kind of get some water in the now removed court. This is going to be temporary as I'm planning to redo the sprinkler system as a whole but that won't be for a while.

Tuesday, June 21, 2016

Backyard Landscaping - Gravel Removal

Progress from last nights efforts. You can take pictures like this at 9pm in the evening when you live up north. Also, you can stay up later to work as well. I guess that's a bit of a two-edged sword.


Maybe another hour or two and I'll have it all out.

Saturday, June 18, 2016

Backyard Landscaping - Basketball Court Asphalt Removal

When we purchased this house, the backyard was mostly a basketball court. Wanting to have more than asphalt to enjoy in the summer, we have been planning on how to improve things. A few weeks ago, that process began.

First, here's a very mediocre picture of what we were starting with.



I was getting some help with the asphalt (and gravel) removal and wanted to estimate how long I thought the job would take so I marked off a small fraction of the court and timed how long it took me to get it done. Verdict, 24 man-hours of labor to removal the full 30' x 40' court.



The help came and over the course of two evenings we got all the asphalt up; they weren't interested in sticking around for the gravel so that's what I've been working on infrequently over the past week or two.


We decided to keep a key-sized piece of the asphalt along with the fancy, very sturdy, and expensive basketball hoop. As I've been removing the several inches gravel that was laid beneath the asphalt I've been piling it in the key for use later in the project. The area on the left that is mostly brown has had the gravel removed (more or less); the area on the right that is gray has yet to be addressed.  I'm guessing is will be another two hours to get it done.

Stay tuned for further pictures of the yard as the project slowly evolves.

Thursday, May 19, 2016

Canonical OK Go Videos

You know OK Go; they're the band that does the creative and adventurous music videos. I've linked to their videos in the past and I will do so again but this time in a much more rigorous manner. Which is to say I intend to provide a chronological and canonical list of their videos. Note that this list will not include all of the music videos attributed to them, just the real ones, if you know what I mean.

A Million Ways


Here it Goes Again


This Too Shall Pass (Marching Band)


This Too Shall Pass (Rube Goldberg)



End Love



White Knuckles



Last Leaf

All is Not Lost



Needing/Getting

The Writing's on the Wall


I Won't Let You Down


Upside Down & Inside Out









Saturday, April 16, 2016

Status Light

When moving into our new building at work, we were all given little status lights to place on the top of our cubicle walls; they looked like this:


You plug on end into your computer and it looks at your Lync status to determine if you are available, busy, or away from your computer. They are a handy way to determine at a glance if somebody is available for an impromptu meeting.

And they only work on Windows' computers. Having a Mac, I've been out of luck.

Recently fed up with the performance of Lync as my softphone, I requested a desk phone and the one I got (Polycom CX600) logs into Lync from the phone. Furthermore, it has a little circling arrow icon on the phone that lights up with the appropriate status color. 

And that's when I decided to make my own version of the status light.

In what is surely the least attractive way of doing this, I've mounted a color sensor over that double-arrow icon and use it to determine my current status. With that information, I drive a string of RGB LEDs to the appropriate color. My cube looks something like this and I've installed the LEDs so they shine on frosted glass above my desk.

Details:

  • Color sensor is TCS230. You toggle two control (S2 and S3) pins to select the color to measure and it varies the frequency of a square wave depending on the intensity of that light. You can reduce the overall frequency of the device (pins S0 and S1) to a few different levels and I choose the lowest scale to help make the measurement easier. Measuring frequency is done by...
  • ... Arduino's have a pulseIn function that can be used to measure the length of half a period of the output frequency. When a given color is very dark the output frequency is low and the pulse length is long. When the color being measured is bright, the frequency is high and the pulse length is short. Based on these measurements, I can classify the input color as red, green, or yellow and set the output PWM period of three transistor driving those colors on..
  • ... two meters of RGB LEDs. These are 12V LEDs and they are all one color, different than those that I used for my Lorenz project. I used some higher-power transistors I have laying around MPT16N25E to drive them.  Maximum current for these lights is 2A which is being split across three transistors. That current would only show up for maximum bright "white" light (full red, green, and blue power) so I don't really have much to worry about. 
  •  I used a a 250V 2A polyfuse for protection on the 12V supply. The power supply plugs into the Ardiuno barrel jack and then I tap the "Vin" pin for the 12V I need for the LEDs. The on-board polyfuse protects the Arduino but not the transistors and LED string. 
The system has been running for a week or two without much incident. The only tricky part was getting the sensor firmly attach to the light on the phone so the color measurements were consistent. I've been getting good feedback from my co-workers, especially those that realized it was more than decoration. Overall, I think we could call this a success.


Here's the schematic, picture of the board as completed, and source code:

   
 // Used to measure the status light color off a Lync-enabled desk phone and drive RGB LEDs to the same color  
 // 2016 Trevor Hardy  
   
 const int pinTCS230_S2 = 3;  
 const int pinTCS230_S3 = 4;  
 const int pinTCS230_Out = 2;  
 const int pinRedLed = 9;   
 const int pinGreenLed = 10;  
 const int pinBlueLed = 11;  
   
 const unsigned int max_width = 65000; //determined experimentally.  
 unsigned int PW_divisor = 0;  
 unsigned int pulseWidth = 0;  
   
 int TCS230_red = 0;  
 int TCS230_green = 0;  
 int TCS230_blue = 0;  
   
 int red_out = 0;  
 int blue_out = 0;  
 int green_out = 0;  
   
 // the setup routine runs once when you press reset:  
 void setup() {  
  Serial.begin(250000);  
  // declare pin 9 to be an output:  
  pinMode(pinRedLed, OUTPUT);  
  pinMode(pinGreenLed, OUTPUT);  
  pinMode(pinBlueLed, OUTPUT);  
  pinMode(pinTCS230_S2, OUTPUT);  
  pinMode(pinTCS230_S3, OUTPUT);  
  pinMode(pinTCS230_Out, INPUT);  
   
  PW_divisor = max_width/256;  
 }  
   
   
 // the loop routine runs over and over again forever:  
 void loop() {  
    
  read_TCS230();  
    
  Serial.print("Red: ");  
  Serial.println(TCS230_red);  
  Serial.print("Green: ");  
  Serial.println(TCS230_green);  
  Serial.print("Blue: ");  
  Serial.println(TCS230_blue);  
    
   
  if ( TCS230_red > 200){  
   //Red  
   red_out = 127;  
   green_out = 0;  
   blue_out = 0;  
   Serial.println("Red\n");  
  }  
  else if (TCS230_green > 120 && TCS230_red < 120 ){  
   //Green  
   red_out = 0;  
   green_out = 127;  
   blue_out = 0;  
   Serial.println("Green\n");  
  }  
  else if (TCS230_red > 150 && TCS230_green > 150){  
   //Amber  
   red_out =200;  
   green_out = 63;  
   blue_out = 0;  
   Serial.println("Amber\n");   
  }  
  else {  
   red_out = 0;  
   green_out = 0;  
   blue_out = 0;  
   Serial.println("Off\n");   
     
  }  
    
  analogWrite(pinRedLed, red_out);  
  analogWrite(pinGreenLed, green_out);  
  analogWrite(pinBlueLed, blue_out);  
  //delay(1000);  
 }  
   
 void read_TCS230()   
 {    
  digitalWrite(pinTCS230_S2, LOW);   
  digitalWrite(pinTCS230_S3, LOW);   
    
    
  //pulseWidth = pulseIn(pinTCS230_Out, digitalRead(pinTCS230_Out) == HIGH ? LOW : HIGH);   
  pulseWidth = pulseIn(pinTCS230_Out, LOW);  
  if (pulseWidth == 0){  
   pulseWidth = max_width;  
  }  
  //Serial.print("Red pulsewidth: ");  
  //Serial.println(pulseWidth);  
  TCS230_red = 255 - (pulseWidth/PW_divisor - 1);  
    
    
    
  digitalWrite(pinTCS230_S2, HIGH);   
  digitalWrite(pinTCS230_S3, HIGH);  
  pulseWidth = pulseIn(pinTCS230_Out, LOW);  
  if (pulseWidth == 0){  
   pulseWidth = max_width;  
  }  
  //Serial.print("Green pulsewidth: ");  
  //Serial.println(pulseWidth);  
  TCS230_green = 255 - (pulseWidth/PW_divisor - 1);  
   
    
  digitalWrite(pinTCS230_S2, LOW);   
  digitalWrite(pinTCS230_S3, HIGH);  
  pulseWidth = pulseIn(pinTCS230_Out, LOW);  
   if (pulseWidth == 0){  
   pulseWidth = max_width;  
  }  
  Serial.print("Blue pulsewidth: ");  
  Serial.println(pulseWidth);  
  TCS230_blue = 255 - (pulseWidth/PW_divisor - 1);  
    
 }  

Tuesday, March 15, 2016

Antenna Pre-amp - Part 3 - Switch Board and Antenna Jacks

Last time I left-off having built a second version of the pre-amp proper using the designers suggested layout and the circuit worked much better (as measured by the steady-state current).  Now onto the rest of the pre-amp box.

Again, taking cues from the original design, I decided to include attenuators, both before and after the amplifier. To do this, I used one of many calculators online to calculate the resistors for a T-style attenuator. The resistors were ordered as a part of the original pre-amp parts order. Metal film, 1%, still pennies a piece. I also decided to include an antenna switch in the design.

When it came to construction, wary of my previous inattentiveness to layout, I wanted to do the best I could to keep the leads short and provide a solid ground plane, even just for the attenuators. I decided to use a strip of PCB scrap as the common ground throughout the signal path. I also decided, in what is likely an abundance of caution, to use RG-316 coax between the attenuators.

The attenuators would be switched, and I used the leads of the switch as mounting points for the resistors. The switches were DPDT, bypassing the attenuator in one position and routing through it in another. Only the signal side of the attenuator was switched, the ground side was directly connected to the PCB strip.

Using an existing enclosure needing to finally have a project to house, I prepped the front plate for mounting the switches, punching guide holes for all the switches and drilling them out with a hand drill. The results were not the prettiest but most of the failings in my handiwork are hidden by the switches mounting hardware.

Here are the results as seen from the inside of the enclosure.





The back side of the enclosure was used to mount the three input antenna jacks, the output jack, and the power jack.  This was all much simpler; just drilling holes and mounting the hardware; the coax connections come later.



The final step comes next, completing the final assembly.

Saturday, January 16, 2016

Fixing the Vacuum Cleaner

Our vacuum cleaner stopped running for more than a second or two at a time so I tried fixing it.



After all of this work, I determined the motor was overheating for unknown reasons, even when no external load was being applied. Verdict: dead vacuum cleaner.

And I don't even get any spare parts out of this mess, just a pile of plastic to put in the trash.

Sunday, December 13, 2015

Antenna Pre-amp - Part 2 - Second Attempt

As I noted in my last post, I was fairly sure my pre-amp was not working correctly and I was going to try to recommended layouts from the designer (as indicated by another hobbyist who drew up the layout and posted it here). Here are the two layouts, side by side:

My layout (1st attempt)
Designer's layout (2nd attempt)
The big difference between the two designs is the amount of ground plane on the top layer. Both designs have the entire backplane acting as a ground and I mistakenly thought this would be enough. The designer's layout has most of the top layer also acting as ground. And as you might suspect, it made a world of difference. 80mA steady-state current (both with and without input and output termination) and cool to the touch with a nice, big heat-sink.



Its amazing to think that layout made that much difference but this is the world of RF where crazy things happen all the time.

Saturday, December 05, 2015

Rental Beast

I had a business trip last week to Seattle and due to my route cutting through the mountains in winter, I asked for an all-wheel drive rental car.  What I got was a beast.



Aside from needing to get over the mountains, this was exactly the wrong car to drive in a dense urban area, park in a garage with narrow spots, and try to make get back home through rush hour traffic.

But this is not a story about the mismatch between large vehicles and Seattle. This is a story about buttons.





I have never been a car with so many buttons. Quick, think of a feature a "fancy" car might have.

I'm not talking about things like powered seats, sunroof, and Sirrus/XM radio. Or even things like heated leather seats, built in GPS, back-up camera, push-button start or triple-zone climate control.

I'm talking about dynamic cylinder shut-down to increase fuel economy (we got over 19 MPG on the highway), cooled leather seats, and automatic windshield wipers that figured out how often they needed to swipe on their own.

And a vault hide your phone and connect to the media system while your in the store? It had that too.




Friday, November 20, 2015

Air Conditioner Measurement - Part 1 - First Cut


I was getting ready to update the hardware on my air-conditioner measurement system when I realized that I had never written about the initial set-up. So, several months after the fact, here's what I've been doing.

In my previous temperature measurement system, I was able to fairly easily measure the air-conditioner state by tapping into the relay that activated the central circulation fan. In this new house, that was not going to be so easy so I decided to try something more direct: measuring the condenser fan in the outdoor unit. I thought about tapping into the relay on that fan unit but that relay switches 240V and I didn't want to have to worry about making sure the wiring was properly protected for that higher voltage. Instead, I decided to measure the air pressure change caused by the fan turning on.

To do that I employed a BMP180 which measures both pressure and temperature.  I was able to get the sensor mounted on a little PCB and strap down an old milk jug to catch some of the air when the fan turns on, making a little pocket of slightly higher-pressure air. I wasn't sure if this was work but testing revealed the pressure increase was high enough for the sensor to clearly detect.


Air pressure capture for the fan. I've pulled the system for maintenance and it isn't shown.


I wanted to try to make correlations between outdoor temperature and air-conditioner run-time under the assumption that the air-conditioner would run longer when the outdoor temperature was higher. To do that, I employed one of the temperature sensors I previously used for indoor temperature measurement. Not being weather proof at all, I stuck it under the out-cropping on our house under, behind the air-conditioner. This is not ideal as it is very close to the ground (less than 6 inches of clearance) and natural air circulation is likely to not be very high. Its not great but it is out of the rain and is better than nothing. (I'm not able to use the BMP180's temperature sensor because the air blown by the air-conditioner fan will be hotter than ambient. The whole point of the outdoor half of an air-conditioner is to cool the hot coolant as a part of the thermal cycle.)

Since I don't have a real-time measurement system up and running to record the data collected, I decided to use an SD card logger commonly available for the Arduino platform. It is fairly easy to write specific values to the card and it includes a real-time clock to time-stamp each log entry. With this I measured the BMP180 pressure and temperature (the later just for fun), and the TMP36 outdoor temperature. I did this every 15 seconds and, through the use of an extension cord, was able to leave the unit plugged in, running indefinitely.

Here's the final schematic:

The two LEDs are diagnostic lights. The red one flashes every time the SD card is being written to and the green one is lit up when the system is powered.

Here's the hardware, pulled out for maintenance:
From left to right: Interface PCB for LEDs and TMP36 module, BMP180 module, SD card logger on top of an Arduino Uno, and TMP36 module.

And here's the code. Not all of it is working at present, such as the time measurement, but the core measurement functionality has been working great.