Monthly Archives: August 2018

Sufferin’ Summits 2018 – Smoky summits with rain on the side…

 

Exposition

As some of you know, Sufferin’ Summits is a stupid idea I had 4 years ago that I’m still paying for 4 years later… It all started with a simple idea – could I create a ride like Ronde PDX – where “Ronde” means “A dance in which dancers move in a circle”, and PDX refers so a “Private Data Exchange”, a way of exchanging data without being burdened with all of the downsides of the public internet.

Where was I? Oh yeah, the ride. So, anyway, I came up with the outline for a ride, and it was pretty stupid. And then I went out and rode a bunch of hills and figured out a way to make it stupider. It is simply the hilliest ride that I could cram into 55 miles, something around 9000’ of up. And it turns out that it’s worse than Ronde PDX, though they do have a second day (okay, so, technically, there *is* a route for the second day of Sufferin’ Summits, but I am just not quite stupid enough to publish it, let alone ride it the day after).

For the first couple of years I did some light marketing of Sufferin’ Summits to the local community, but now I just kindof let it sit out there, the lesser-known, poorly behaved, and frankly less attractive cousin of Passport2Pain. I tell people that it’s because I want it to have that “underground” mystique, but the reality is that I’ve worked with people who organize big rides and I’m far too lazy to put in that much effort. So, it typically pulls in 20-30 people, and that’s just fine; I get to ride it with a few friends and look publicly stupid to the rest of the cycling population. Win win in my book. The ride is technically unsupported though my lovely wife has hosted a snax table at the halfway point the past two years.

I generally spend quite a bit of time in these hills on the Saturdays during the summer, and I felt pretty good about my fitness this year. But, there were two possible flies in the ointment, chinks in my armor, or bats in my belfry:

The first was that we had been treated to an extended run of “Wildfire Smoke”, and let me be clear that it was it was not the Tony-award-winning production that we had been promised. It was on hiatus Thursday night, but came back for an encore presentation the day of the ride. It was officially in the “unhealthy for sensitive groups” category, which – among other things – says that if you experience shortness of breath or unusual fatigue, you should contact your health provider.

I’m not quite sure how to apply that advice in practice, since “shortness of breath and unusual fatigue” bears an uncanny resemblance to the my written mission statement for the ride…

The secondary issue is that because of the crappy air quality, my training for the past few weeks has been a lot lighter than usual. I’m a fan of a nice taper in general, but two rides in two weeks is a bit extreme.

Anyway, that’s enough foreshadowing for now…

Friday night, we watched the Hawks extend their perfect preseason record, and then I headed to bed. That 5:30 AM alarm was going to come soon enough. And yet, it didn’t. Because I could not get to sleep, and 2 AM found me on the living room couch, reading (“Crash Test Girl” by Mythbusters alumnus Kari Byron is pretty good, and “Year of the Cow” (Stone) is a fun mix of history, science, and cookbook). So, anyway, I got off the couch at 5AM and then proceeded to not make my usual breakfast of bacon, eggs, and berries, because I typically do these rides (mostly) fasted. My food bag has one Honey Stinger “waffle” (mostly emergency carbs), a small bag of cheez-its, and a small bag of extra mixed nuts (that’s what you get if you take mixed nuts and add more nuts, right?). One water bottle has water, the second gets a serving of Biosteel hydration powder mixed into it, which I’ve been experimenting with for electrolytes recently. You know that it’s good because a) it has Calcareous Marine Algae and 2) the “mixed berry” flavor I have tastes remarkably like the cough syrup my parents gave me when I was a kid. On the way out I mix up two scoops of SuperStarch with half a scoop of endurox in a failed bid to make it more palatable; two scoops of highly educated cornstarch in a glass of water tastes exactly like what you think it does.

Oh, and I grab 12.5 macadamia nuts and eat them on the way out of the door because macadamia nuts.

The ride starts at a park in Issaquah, and I expect that the smoke is going to affect the turnout. We end up with 13 of us at the start, which is a few more than I expected. I ask how many people are doing the ride for the first time and then give a quick pre-ride briefing, which mostly consists of an assertion that while experience would lead one to expect that the first half of the ride is worse than the second half, experience would, in this case, be a poor guide.

Did I mention it was cold? Two years ago we started at 9 AM and it was 95 degrees when we finished, so the official (which only means “ride with Eric until you get tired of his slow pace”…) start is now 7AM, and it’s 54 degrees out right now. That is a great temperature for climbing but a crappy one for descending; you will still be sweaty at the top. I’m wearing a jersey (*not* my Sufferin’ Summits jersey) and shorts, plus arm warmers and a vest. We spin out of the starting point across Issaquah, to the first climb, Grand Ridge.

Rising Action

Grand Ridge is really a warmup, it’s mostly not that hard. On the first climb, the fast group rides ahead, and I expect not to see them for the rest of the day. We head through the “Little Red Riding Hood” forest path, where the part of the wolf is ably portrayed by two short but nasty 20% climbs near the top of the section. Eventually we top out, and are rewarded by a non-existent view. We’re up around 1000’ now, and on a decent day you can see Bellevue, Seattle, and the Olympics, but we can’t even really see our next climb. My descent karma fails and I get stuck behind a car driving 5 miles under the speed limit, but eventually we get on the main drag and descend down into Issaquah proper.

Squak Mountain is next. The bottom half has a series of rollers where the steep parts are 16% or so, then we turn onto the top section. I’m climbing okay, and looking at my stats, it took me 11:05 to climb the 940’ of the main climb. That’s only about a minute over my PR, so, pretty good. The data shows I climbed at 760 meters (2500’) per hour, also decent, though my legs are only feeling average. We top out there, avoid incidents on the sharp turns of the descent, and ride over to Telus.

We go up the Telus North climb, which hits about 18% immediately, eases a bit in the middle, flattens out in the neighborhoods, has a mercifully short 24% (!) section, and then finally tops out. It’s only about 450’ total, thankfully, but it gets my attention. We head to the other end of the development, pick up a few more feet of vertical, and then descend back down. This time it’s a Hyundai driving 18 MPH in a 25 zone.

Which brings us to hill #4, Zoo hill. In previous years the route has used a convoluted route to pick up a particularly nasty climb, but I’ve switched back to the classic climb. The very bottom part is newly repaved but the crappy middle part is still it’s crappy self, the rollers are still soul-sucking, and the climb to the water tank and radio towers is its usual cantankerous self. My legs really don’t feel very good on this part, but Strava says that I pulled a PR on it by 44 seconds on the lower 2/3 of the climb. I am skeptical, given that I’m only pushing 200 watts and my heart rate is about 20 beats below my max. I’m spending a little time tacking back and forth across the hill because my legs feel weak. There’s no reason to take pictures at the top because you cannot see a damn thing, and I get cold as soon as we stop. I do note that the smoke hasn’t really been that much of an issue; it seems that once we get above the first 200-300 feet, the air is a bit cleaner. We descend down, climb up Pinnacles, descend a bit more, climb up Belvedere, and then head down and up a short and easy hill to get to Lewis Creek Park. My lovely wife is waiting there with snax, I mix another bottle of blue steel and eat a few nuts.

Climax or Turning Point

Then it’s off to hill 5. Which is really a side hill that we will climb 3 times. We start on “The Widowmaker”, which is really nasty 494’ climb; it starts at 18%, flattens a bit, and then has a full 300’ of 20% or more. At the worst, I’m riding 3MPH and 44 RPM and pushing 275 watts. It’s the “Coffin Corner” of climbs; I can’t really slow down without falling over and if I push harder I’ll burn my legs worse and may run out of aerobic capacity (ref. “Falling over”). After 10 minutes and 28 seconds of enjoyment, I top out, meet the rest of the group waiting for me, and we descend. Only to repeat the pattern; we ride up the West Summit climb, descend, ride up a short unnamed hill, then finally up the Summit climb to the top. I’m in little danger of setting PRs on these, but I am climbing at over 800 meters per hour (10.9 fathoms/moment), which is okay. My legs are really tired; not hurting, but really tired. As we reach the top of the climb, we get a change in the weather; the smoke blows away and we can see the top of the smoke across the whole region. Glorious.

Not really, we still can’t see a damn thing. What really happens is it starts to rain. And I whine about my legs, though technically speaking I’ve been doing that for the last hour, so that’s not a new thing. I make some noise about maybe being done so that the other riders with me have an “out” to quit without losing face. I pull out my stuffable vest, put it on (you probably figured that part out on your own), and we start the descent. It’s a nice 500’ descent on a mostly straight road with mostly good pavement, but a fast cold descent with wet pavement is not my preference.

At the bottom the four of us discuss what we are going to do:

Protagonist (me): Guys, my legs are cooked and I’m too cold. I’m going to bail and ride back to the start before it gets any wetter.

Antagonist: My legs are cramping and I don’t have a jacket. I’ll ride back with you.

Non Sequitur: Guys, there’s a car behind us. We should move out of the way.

Antithesis: I’m going to head down and do at least one more hill.

Consonance: I’ll join you as long as it doesn’t get too wet.

Resolution

So, we split into two groups, and Mike and I spend 10 minutes getting cold and getting back to the starting point.

Analysis

The following questions probe the heart of what we are learning:

  • Are you an insider or and outsider to the culture of this ride report?
  • What did the author want me to get out of this ride report?
  • How would the ride report be perceived in its own time period?
  • What text – exact words, phrases, or passages – causes in you a strong emotional response?

Appendix

  • 38.87 miles
  • 3:45:12
  • 2:24:50 climbing
  • 6,165’ of up
  • 10.4 mi/h average
  • 2,109 kJ
  • Strava activity

Philtrum

Eric uses: Specialized Roubaix expert, S-Works shoes, Pioneer power meter, Garmin 705 GPS, Pearl Izumi shorts, Giro helmet/gloves, and a random assortment of jerseys he’s picked up over the years.



Backyard controller design

I’ve done a lot more work on the backyard controller design and things have firmed up.

Here’s what it looks like.

First, I don’t think the 100 watt power supply I bought is going to cut it; I have 36 watts on the ground and 40 watts on the house, and we’ve added tree accent lighting, fountain accent lighting, and I think I’m going to include some existing stair lighting on this. Oh, and some umbrella lighting. That would put me close or slightly over 100 watts, and that doesn’t leave any margin for losses in the wiring or a power supply that doesn’t quite do what I think it’s going to do.

The project is going to be split into two modules.

The first will live in the duplex outlet and will consist of the SSRs to drive the pump and the power supply and a 5V power supply for the NodeMcu. I have some nice thin 2 amp SSRs that will do nicely for those two loads and I’ve verified that they work fine on 3 volts (they worked okay on 2 volts in my tests), and my current plan is to hot glue them to the back of a split duplex outlet. One outlet will be used to plug the 12V power supply into, and the other will be back wired to connect to wiring that goes to the outlet next to the water feature. I *might* go hunting for some beefier SSRS, but the good ones are unfortunately expensive and the cheap ones have a bad reputation.  So, we’ll see. The ones I have are fine for those applications but if somebody plugs something beefier things will not work well.

The 5V power supply will be just enough to run the ESP; an amp will be fine. And yes, I’m going to break code and mix high and low voltage in the same box, but I will do my best to do it sanely.

From that box I’ll run some 4-conductor cable out. It will have:

  • +5V
  • GND
  • PUMP ON
  • 12V ON

That cable will run to the second box mounted up underneath the deck. It has the following inputs:

  • 12V power (from the power supply)
  • 12V power (from the existing stair lights)
  • +5V / GND

And the following outputs:

  • 12V stair lights
  • 12V bed lights
  • 12V house lights
  • PUMP ON
  • 12V ON

Maybe I’ll add in the under-umbrella lights as a separate circuit; the extra components are cheap and it would be nice to have separate control there.

My current stair lights are controlled by a switch in the garage and a power supply there. I originally thought I’d use a 12V relay to either power them from the garage or this controller, but it’s easier to just sense the 12V in the new controller and power all of them from the new power supply.

The MOSFETS I have are IRLB8721PbF, which are reputed to be decent for logic-level switching… Let’s take a look at the data sheet:

image

What I’m trying to figure out is what sort of current I can expect if I drive them from the ESP8266 pins. My drain to source voltage is 12 volts, so I’m looking at the right side of the curve, and I’ll pick the 3.0 V curve to be conservative. And that shows me that I can get around 10 Amps, which would be 120 watts. With 200 watts planned, I’d only pull 100 watts or so, so it looks like I’m close but okay.

But… Take a look carefully at that graph. See where it says “Tj = 175 C”. Yeah, that’s hot, and it’s the absolute maximum temperature, which means I’d really need some heatsinking or other cooling. The whole point of a nice power MOSFET is that they have low R(DS) resistances and therefore don’t get very hot. Which is not true if you are only driving it with 3V. This is the “if you’re stupid” graph.

There’s another graph in the datasheet:

image

Notice this one says that it has a junction temperature of 25 degrees centigrade. Which isn’t even body temperature. But, to get that from a 3 volt drive, I can only pull 3 amps.

What that really means is that I could easily build a test circuit and have it work great with my test loads of 30 watts or so, and then install it and hook it up to a 100 watt load and it will melt. Which would be bad.

The graph gives a really simple solution; instead of driving it with 3 volts, I need to drive it with something high. Like – I don’t know – maybe the 12 volts that I already have in the circuit. The graph only goes to 10 but if it went to 12 (insert Spinal Tap reference here), we’d expect that it’s pretty much the same. And it shows that we could do upwards of 100 amps from this device in that situation.

We can’t; the maximum continuous is 62 amps, but we can easily pull the 10 amps that we need. And the datasheet also tells us that at 10V(GS), the R(DS) is 8.7 milliohms. So, at a 10 amp current, that means the voltage across the MOSFET will be 0.087 volts, and it will dissipate 0.87 watts. A bipolar transistor here would drop 0.6 volts and dissipate 6 watts, which you would definitely need a good heatsink for.

MOSFETS do see increases in R(DS) as they get warmer. I am *probably* okay, but I’ll also probably put a small heatsink on the MOSFETS anyway and do a little testing overnight to see how they are pushing that much current. Or I could do the thermal calculations to see how much junction temperature rise I can expect.

Or… I might get lazy, and run two of them in parallel. Another nice thing that you can do with MOSFETS that is problematic with bipolar transistors. Bipolars have positive thermal coefficient, so if one gets hotter it pulls more current and things rapidly go downhill. MOSFETs does the offset, so you can generally put them in parallel with no problems.

So, how do we switch it with 12V? There are numerous MOSFET gate drivers out there that are designed not only to use a higher voltage but push enough current to be able to switch quickly; MOSFETS do not technically draw current but they do have gate capacitance so you need to pull some current to get them to switch quickly. That’s really important if you are building something like a switching power supply that you are switching at a relatively high frequency, but for my application, all I need is on and off and it doesn’t have to switch particularly quickly.

So, I’m going to go old school and use a small signal bipolar transistor to switch the gate.

image

The schematic comes from here. It’s really simple; when the logic input is low, the transistor won’t be conducting and the pull-up resistor will pull the gate high, turning on the MOSFET. Turn the transistor on by flipping the logic input high, it pulls the gate to ground (well, to 0.6 volts, which is close enough), and the MOSFET will turn off. It does invert the signal, which is a bit inconvenient but not really problematic in this case, as the 12V is only there is the power supply is turned on.

Pretty much any NPN transistor will do; I have some metal cased 2n2222s in my box, so that’s what I will use.

The only remaining part of the hardware is the sensing circuit for the 12V coming from the current stair light power supply. That’s pretty simple; take the 12 volts in, run it through a simple voltage divider, and I’ll get 3 volts to feed to the ESP.

All this is going to get hand-wired on a breadboard; there’s no reason to do a PC board for this application. I think the connections will all be screw-terminal barrier strips as they work well with the beefy 12 gauge wire for the low voltage lights.

I’m also going to build a small remote that you can use inside so you don’t need your phone to do the switching.

Software

The software will be based on the ESP8266WebServer class, with a simple method to query the current state and separate methods to do the switching. I’ll do turn on, turn off, and toggle methods to provide some flexibility.

I recently switched to VS Code and Platform IO; it took some futzing to get it working, but the experience is so much better than the arduino IDE, and it knows how to create an ESP project that works out of the box. I have the bare-bones http server running for this; I don’t expect the full code is more than a day’s work if that. Oh, and I’ll do a web-page interface as long as I’m doing it.

I haven’t done anything on implementing the advanced functions based on sunset times etc., though I will probably implement auto-off for both the fountain and the lights.


Top 10 reasons Jury Duty is like High School

10. Stuck with a group of people chosen by random chance

9. No talking

8. Note taking required

7. Really uncomfortable chairs

6. Courtroom built in the 1940s

5. Recess

4. No leaving until the judge gives you permission

3. Learning a bunch of stuff you will never need to know later

2. There is a major group project at the end

1. Early dismissal on a sunny afternoon makes everybody smile


Backyard controller requirements…

We’re in the process of doing some new landscaping in our back yard, and that involves a small fountain and some landscape lighting. Which of course brings up the question obvious question:

How are you going to control the fountain and the lighting?

Here are some initial requirements:

  1. There are three separate circuits of control; one for the fountain, one for the landscape lighting in the main beds, and one for the new general purpose lighting that will be mounted under the second floor eaves (the current lighting is big floodlights that provide really harsh illumination.
  2. The fountain is 120VAC; the landscape lighting is going to be low voltage.
  3. We need an easy way to turn each of them on and off.
  4. We would like to be able to have them function automatically on some sort of schedule.
  5. It would be nice if the schedule is tied into our light dark cycle automatically; I am far too lazy to remember to adjust them by hand.

The main controller will be based on a – no surprises here – an ESP8266 NodeMCU controller running a hacked-up variant of my animation software. The landscape lighting is going to be LED, which gives the following control requirements:

  • Two AC circuits – one to control the fountain, and one to control the power supply for the landscape lights.
  • Two DC circuits to control the two landscape light circuits independently.

The AC control will be done with a couple of solid state relays that I salvaged out of earlier holiday light projects. The DC control will be done with some nice power mosfets. I should be able to drive both directly from the controller.

All of this needs to fit in one half of an outlet box. I’m not sure the form factor; I’m thinking that I’m going to 3D print a box for the electronics, but how it fits into the duplex box is tbd. I *might* put override switches on the box so that if you want to you can just press a button to turn the lights on for an hour.

And you can take the underground conduit for the pump outlet and the wire for the landscape beds as “already implemented”.

Here are the parts that have already shown up:

A 100 watt 12V DC power supply. It claims to be IP67 waterproof. The “6” means that it is “Dust Tight – No ingress of dust; complete protection against contact”. The “7” means “immersion up to 1m – ingress of water in harmful quantity shall not be possible when the enclosure is immersed in water under defined conditions of pressure and time (up to 1 m of submersion)”.

IP67 rating is impressively good. If it were true, I could drop this puppy into the fountain reservoir and it would keep running…

Alas, it is unlikely to be true; the ratings for much of the stuff out of China are hit and miss, with a bit more on the “miss” side of things. Which is why it’s going to be mounted up under the kitchen deck where water won’t be able to get to it.

I should call these “ubiquitous 10 watt low voltage LED lights”. I have a bunch of these at my cabin, and they are pretty well made; nice heavy aluminum housings to get rid of the heat, decent mounting options. This go about 18’ up in the eaves to project a nice smooth light down on the yard. I bought 4 of them.

Image result for leonlite pathway garden light

These are the pathway lights. I spent a lot of time trolling the chinese marketplace sites (aliexpress/alibaba etc.) looking for some decent lights that were cheap. What I found is that you can either buy high end lights that are $45 each, or you can buy part of an endless supply of really cheap and crappy solar lights, but nothing in between. So I settled for these from Amazon. The Amazon product is not linked because it has changed underneath to some other lights; suffice it to say that I bought 12 of these for about $13 each. These will be spaced out in the beds to make them look all pretty-like.

Astute readers will note that I’m using 36 watts for the pathway lights and 40 watts for the floods (or only 30 if I only put up three). That leaves me about 25 watts to spare. Some may go to accent lights on the north fence, and others might go for some lighting to help get to the hot tub. If I was smart, I would have gone bigger than 100 watts, but that can be replaced if necessary later on.

This is a nice little power MOSFET that will be switching the landscape light circuits. Why this MOSFET? Well, let’s look at the datasheet.

First off, MOSFETS are far nicer to use to switch loads than bipolar transistors. Bipolar transistors have significant downsides; you need quite a bit of current to switch big loads (the overhead lights will be about 3 amps) or you need darlington transistors, and because of the fixed collector/emitter voltage drop, you lose a lot of energy in the transistors, and they get hot.

This little MOSFET will happily switch 44 amps @ 10 volts and 100 degrees C, which is *way* more than it will ever see. It will switch 3 amps with 3 volts on the gate and 11 amps at 3.5 volts; the ESP runs at 3.3 volts so it will be enough to switch the current I need (if I needed big current, I’d need a bipolar driver in front to push the voltage higher). And – like most power MOSFETS – it has very low resistance between the drain and source (8.7 milliOhms with 10 volts on the gate). What that means is that it dissipates almost no energy as heat when on, and I can run it without a heat sink; it will at most get very slightly warm. And it also means I’ll send a full 12 volts out to the lights.

I guess I could also show the big 200’ roll of landscape cable. In the old world of incandescent lights, I would have needed to power these lights with a loop or maybe multiple wiring runs; in this world, the floods have their own power supplies so the voltage to them isn’t critical and the path lights don’t pull enough power to result in much voltage drop.

For the box connections, I’m thinking I will probably go with some molex connectors; that gives me a fairly safe way to hook up the AC to the power source and that way I can disconnect the whole module.