Posts Tagged ‘gadgets’

h1

I have an idea

August 13, 2012

About a decade ago, I had the idea to create a data logger, it would write data from a serial port to a USB thumb drive. I'd worked on a lot of devices that had serial output for their main interface or for debugging purposes. Normally, to get data, I'd have to hook a computer up to the gadget, hoping that the laptop batteries didn't die, that Windows didn't go to sleep, and that I didn't need to timestamp anything to greater than 4ms granularity (Window limitation). The ability to store days or weeks of data would be fabulous.

I chose the processor because it had the bare minimum I needed and a USB device. I got a wonderful and generous EE to help me choose the other components and make a schematic. I paid for it to get laid out, ordered all the parts, built kits, got boards fabbed, bought cases, worked with a model shop to get the cases cut for the boards. I learned a whole heck of a lot. The boards came in and came up ok but the vendor's USB library worked with only one or two thumb drives. I worked with the vendor to expand their library. Then I got a full time position and the frustrations of dealing with the vendor… well, I just finally got rid of the boards and cases recently (though not the completed one, there on the left of the pic). About two years ago, someone else built a data logger, one that I could just buy and it would do what I wanted.

About six years ago, I saw a product design contest and entered it with a neat new idea. I wanted microcontrolled Christmas lights, ones that I could put up and never take down because they'd change color to match the upcoming holiday. With a marketing VP friend, I wrote a complete business plan (summary: holiday decoration is a huge market). The software was easy to explain and the market was there but the hardware was difficult. The way the lights were to be controlled led them to have an unwieldy cable, making them expensive and essentially unmarketable.

Two years ago, GE came out with individually addressable LED strands (on the right in the pic). A hacker worked out the control protocol shortly thereafter. Anyone who wants to make my holiday lighting needs the $50-80 light strand, a $30 Arduino controller, and freely available program. Ok, so it is still expensive but it isn't impossible anymore. After I (and another wonderful EE) presented how to put this together at this spring's Embedded Systems Conference, I was accosted by an engineer for a lighting company asking if I had patented the idea (no, I just wanted someone to build it for me, I didn't want to block development). After a bit of searching, a generous patent agent friend found that Philips had patented “LED as applied to…” well, anything… including the “tidy bowl” application.

About three, maybe four, years ago, I got an idea for a video game called Shoe Shopping Adventure. The player would make life choices (i.e. career, friends vs. work) and that would translate into their need for different varieties of shoes, their available funds, and their time allotted for shopping. I learned a bit about iPhone programming, drawing shoes, and designing games. I tried to get Zappos involved because I was thinking that one way to avoid doing a lot of UI design is to use actual pictures of actual shoes. And as a revenue source, people who bought shoes in the game might want to see those same shoes for themselves later. Anyway, I only bugged one software friend and she mostly just had to listen to me babble one afternoon. Well, and my husband who has been supportive through all of these. So far, no one has made this game for me (yet) but I stopped development because it is a heck of a lot of work (and because I started writing Making Embedded Systems).

It isn't that I don't finish things. I do. I mean, I wrote a book (two, actually!). And I've shipped tens of products. But those have been for other people, for the companies that I've been employed by. The book was for myself but I had some external impetus there.

So it is with some trepidation that I say, once again, I have an idea. I wonder if I'm ready. And what I'll learn.

 

h1

6:45am at the zoo

May 10, 2012

At the zoo? Yes! Chicago was awesome in lots of ways but this is was the best. And if you are going to skip this post, go down to the bottom and watch the video. I promise, totally worth it.

Anyway, we stayed across the street from Lincoln Park in Chicago, a huge lakeside park, filled with ponds, wildlife, a conservatory, a farm, a large number of dogs and a zoo. We walked around last night, saw lots of things in the ponds and the sun falling on the skyline. The zoo was closed, of course, so was the conservatory and somehow we circumnavigated the farm without ever seeing it (well, C mentioned seeing a red barn but I figured that was a restaurant). We walked through the Lily Pad garden, visiting a family of ducks, worried they’d close the wrought iron gates on us since we were a little after the posted closing time (they didn’t).

So I got up for my morning walkies this morning. It was bright, really bright. But my sunglasses were far and the elevators a bit slow. At 6:30am, it wasn’t that bad. And I was groggy since I haven’t adjusted to the new time zone (Central). Sun was going to be a good thing.

20120510-202833.jpg

I walked around the nature boardwalk. I casually snuck up on a dog owner with a beagle and gave it a quick cuddle (happy it was a friendly one instead of some aloof ones I could name, it was totally a good one).  But the nature walk went on and one, paralleling and crossing over a stream. I got to a point there I wasn’t sure which was I should go so I went through some wrought iron gates, they were open and maybe led to a new garden.

Not so much. Instead it led to animals! I kept thinking someone would kick me out but joggers kept jogging by, unconcerned. So I stopped my furtive picture taking and started to really enjoy the zoo. The free zoo. The free zoo nearly devoid of people and full of animals enjoying the early morning sunshine.

Ok, so I saw some white lipped deer, a giant goat (takin), some trumpter swans, and some camels. Also, a ton of ducks, geese, squirrels, sparrows, and robins.

And then there were kangaroos. Bouncing kangaroos. Oh my goodness, they look ridiculous. And somehow I recorded them upsidedown? Ok, I’ll leave it here, turn your head or something…

One jogger stopped, kind of suddenly, and said, “I lived in Australia for six months and I never saw a kangaroo hop.”

That made me feel a little better when the ‘roos were eating and rolling on their backs, showing their fuzzy tummies, when I got C (but I spent more than an hour before I met up with him).

There were plenty of exhibits that weren’t open or had animals that weren’t visit. The zebras were a bit of a disappointment because I could see one’s back end in the doorway at the back of the enclosure. It surprised me when I continued to walk, and there were a bunch more. The funny thing was when C came and we re-covered the ground, nearly the same thing happened to him.

20120510-203107.jpg

As he was admiring the stripey-ness, I looked around and saw something dark, in a display I hadn’t even noticed in my earlier tour. OMG, a great apt! I actually clapped my hands and giggled in excitement. It took awhile to get a good picture but I loved watching him move around, surveying his territory.

He was so close. Though there was a thick window between us. Chris showed me an article about giving ipads to apes to help them communicate and how incredibly effective it was, especially for the younger, tech savvy animals. I was flabbergasted until I got to the line about the zookeeper “letting the orangutans use iPads last summer, based on the suggestion of someone who had used the devices with dolphins”. Whaaaaat?!? That is so very cool. But how to the dolphins keep the ipad dry? And what is in their Netflix queue? The questions are endless.

Ok, back before C got there, I had seen the lion. He was so cool. I mean, really, really cool. Alpha predators are just energizing, you know? When C got there, he was mostly asleep. But one thing we both noticed, the lion moves and acts like a cat. I mean, like our house cats. The tail flick, the glare of derision, the plotting to kill you right after this nap, it was all there. I could see how people forget they are dangerous animals who could eat you as a snack.

20120510-203322.jpg

C also missed the wolves. They were in the kids area. Which was empty, except for me and the wolves. They were behind a fence so the pics aren’t very good. Like the lion, though, they reminded me very strongly of the the pets. One of them scritched behind its ear with precisely the same canine enjoyment that Bear (the 8lb malti-poo). And the sign’s puppy made me think of Zoe when she howled along with me as I sang Happy Birthday to C one year.

20120510-203437.jpg

Some of the animals seem to have escaped their cages. I don’t think this belonged right outside one of the bear exhibits. Whascally Whabbit!

20120510-203508.jpg

C didn’t get to see the wolves but I almost didn’t walk  by the rhinos again. But I would have been wrong. The rhinos had just gotten fed!

20120510-203534.jpg

Ok, I’m almost done, I won’t show you all the other pictures of duckie families, the OCD leopard, the seals, the puma that made C say he never wanted to hike the Santa Cruz mountains ever again. C found all the other big cats, I had missed so much on the first pass. I could go every morning for a week. We almost spent our extra-Yellowstone-day and stayed in Chicago. I mean, I didn’t even tell you about the food (fantastic), the architecture (I knew it would be great but we didn’t actually get to look at it much), or the hotel (book Hotel Lincoln now before everyone else figures out it is the best).

However, I promised one final, better than everything else video. This it the lion roaring (and it is right side up!). Watch it. Well, let it cue up and then watch it.

Yes, the background sound you hear is an exercise class being held in front of the lion cage. I’d roar too, if I was the lion. Think how motivating that would be.

h1

Time flies like a banana

May 3, 2012

As we traveled east, many of the gadgets have not done well with the time change. The iPhone, teacher’s pet that it is, offers a near perfect user experience. As we crossed the time zones, the iPhone continues to display local time whatever that is.

For something so seemingly easy, that is incredibly difficult. None of the other gadgets come close.

The iPhone has four sources of time, let’s go through them and work through why the other gadgets don’t work as well. First, the phone, like many gadgets, has a clock. This is a crystal that counts how many ticks since it was booted. The ticks could be from a  32.768kHz crystal (a real-time-clock or RTC component that keeps a slow-for-a-computer heartbeat). Like any watch, all you need to do it tell it what local time is, and the RTC (or other crystal) maintains it. However, it will drift off from the correct time (particularly if it stays in a hot car for a long time or in a particularly cold room). So when your 1984 Star Wars watch would lose a couple minutes a month, that is why. The clock counts ticks from when you set it but if the ticks are off by 0.01%, you end up losing a minute a week.  Temperature extremes makes this worse.

Ok, so that is old, old method for doing it. But if you have nothing else, a gadget with a crystal will keep time reasonably well. Though, it can’t tell if you’ve crossed timezones. That is why we had to reset the car’s digital clock every day or two.

The iPhone also has a GPS which isn’t only for location. GPS provides very accurate time information. However, the time is not local time but UTC (Coordinated Universal Time) which, for this purpose, is the same as GMT (Greenwich Mean Time, from when Greenwich, England was the center of the world). In California, we were GMT-8. Well, sometimes; California has daylight savings time so the offset shifts depending on the season.

This is (nominally) to reduce energy consumption as people tend to be clock based. The time shifts so the bulk of the daylight is after people wakeup. Sunlight at 4am in’t that useful but by shifting the clock, that sunlight moves to 5am and the evening light moves from 7pm to 8pm, a reasonably big win for folks stuck in 9-5 jobs.

Gadgets hate daylight savings time. Well, the programmers of gadgets hate DST.  Not everywhere in the US has daylight savings time (ahem, Arizona!). So now, a gadget using GPS time needs to know how to map from location to time and whether that place uses daylight savings time. It also needs to know when DST begins and ends, which can change (thank you, President Bush), causing devices that you (the customer) end up having to change 4 times every year (correct DST, gadget’s faux correction; forward and back). Oh, but there are some counties in the US that vote on whether to do DST each year so it isn’t enough to just use the current protocol.

GPS provides a signal that is both good and bad: it is very accurate (the gadget can know how long a second is to nanosecond precision) but not very precise (the gadget can be hours off of local time but it would always know what time it is in Greenwich (gee, thanks, England!)). Since it is very accurate, I’ve used it in devices to time how long something took, was it 0.00011 seconds since the system heard a gunshot or 0.00013 seconds? As a stopwatch, the GPS clock is fantastic.

A GPS can also be used to keep a a crystal real time clock accurate. Every time GPS updates the time (every second), the gadget (microprocessor) counts how many ticks the RTC had. Now, it can predict for the next second how many ticks there will be (the drift associated with the crystal is relatively slow so this works well).

The user still has to set the time. And reset the time for daylight savings time. And change the time when the user moves to a new timezone. The GPS gave us accuracy but didn’t solve any of the other problems.

Ok, so the iPhone also has WiFi which can help with some of these. It can use the internet to contact a mainframe server and ask, “what time is it?” The gadget doesn’t really need a GPS for accuracy, it can use the standard servers and Network Time Protocol (NTP) to get accurate timing information (or Simple Network Time Protocol to get reasonably accurate time information). Unfortunately, this is UTC as well so it has all the disadvantages of GPS: it has to ask the user for their offset (usually they ask you to select a nearby city and the gadget figures it out; and all of the daylight savings time complexity). NTP is a general internet service, available using different servers. A gadget manufacturer can instead have the gadget call home to their own server which can provide more information than just NTP.

However, if the gadget has WiFi and GPS, it can contact a server with a query that essentially says, “I’m here, what time is it?”  The GPS isn’t completely necessary for the WiFi phone-home method to work. There are databases of WiFi networks and their location (the iPhone uses those to help locate you!) so the gadget can phone home with the WiFi network and probably get the time that way.

The server can have a much larger daylight savings time database than the gadget (and one more easily updated with the vagaries of humans). The weak point of this plan is the server… if the gadget can’t get there, it will act stupid.

In the car, the gadgets don’t have WifFi so things like the iPad don’t get updated until we get to a hotel and log on. Then, the iPad, disconcertingly, loses an hour sometime between I get used to it being wrong and when I look at it again and wonder how it got so late.

There isn’t  a standard for how to do this conversion from location to local time. Well, there is the Network Identity and Time Zone protocol but if you go look at that you’ll notice is isn’t exactly a networking protocol with the ubiquity of NTP. Instead, it is phone based.

The iPhone is actually a cell phone (yes, I know it is a somewhat terrible phone but it has cellular technology so we’ll give it the benefit of the doubt). As this gadget moves, it connects to the cell towers and asks, “Beg pardon, but do you have the time?” and changes to the new time if the cell towers give something different than the device’s current time.

So, all a gadget needs is a cellular modem and a contract with one of the major cell phone vendors. Then it can function as a reasonably accurate clock, always updating to local time.

Or the gadget can just assume its customer never leaves their home time zone and make them set the initial time. And then it can use a crummy real time clock and let the time drift. Not that big of a deal, the clock will be correct-enough 99% of the time. Since we want our gadgets to be cheap, not many things can afford to have all the supporting hardware.

(Thanks to Christopher White who complained enough about broken gadgets that I put this together._

h1

How am I not going stir crazy?

April 27, 2012

One of my biggest fears on this trip was being confined in the car for hours at a time. it hasn’t been as bad I thought it would be. Part of this is due to me doing more driving. Driving for the first hour is slightly boring but after that, it gets harder for me so I have to really concentrate on what I’m doing. After the second hour, I start blocking out the audio book or music since even more concentration is required as I get tired. I’d make a lousy truck driver.

Though when not driving, cooped up in a car, even a big car, I often feel like a caged rat. Sometimes the scenery is beautiful but it is hard to appreciate if I feel rat-like.

A good night’s sleep is important but I don’t have as much control over that as I’d like. I do control one other parameter though…

Every morning, I’ve been waking up and going for a walk.

Not only does this burn off some of my nervous energy, I get to see some of the places we are driving through. There is something more real about having boots on the ground (well, hiking sandals). And early morning is a nice time to see the world with fresh eyes.

Flagstaff was dry forest and bright, bright light. It was probably my favorite walk so far. I walked around Albuquerque’s Old Town before it became touristy, seeing the old church functioning as a house of worship instead of a photo backdrop. And I already mentioned my danger fraught search for field mice.

C and I walked to Beale Street in Memphis, seeing the tourist filled home of blues greats, it was pretty cool. But seeing it at 7am was different, somehow more real to what it used to be and more tawdry at the same time. And I got to dip my toes in the Mississippi.

This morning wasn’t so great, I walked though strip malls thinking about the underlying beauty of the Smokey Mountains, somewhat despairing of a civilization that would take such natural riches and plunk an AutoZone down in it. Though, I’m fairly enchanted with the haze around the hills looks like blue smoke.

My goal with each morning’s walk is to take 5,000 steps before we get in the car. The default goal is to take 10,000 steps every day. That is three miles if you use little steps (but I clocked in three miles this morning in less than 5k steps so this varies a lot but it based on your height and what their accelerometer says about how you are walking). 10k steps isn’t hard to do at home, a couple times around the block with the dogs or walking up to the grocery store is enough (once it is combined with my normal back-and-forthing about the house). But sitting all day in the car, it is easy to get only enough steps necessary to fill the gas tank and fall on to the hotel bed.

Fitbit makes the step-counter (pedometer) I use. It is a nifty little gadget that (when we have a base station for it to talk to) uploads the number of steps to a website (or to my iphone) where it can be combined with a food diary (calorie intake) and help people lose (or, if you are C, gain) weight.

I’m using the Fitbit gadget and the tracking my calories but not really using their iPhone app (partially because I haven’t set up the base station so the gadget can regularly sync to the internet, partially because I’ve been filing bugs against the app).

Oh, did I mention I have done some work for Fitbit? Yep, they’ve been my main clients for the last few months. I didn’t get to work on the nifty pedometer but on a different product (shipped!! happy dance). C and I got Fitbits when I did some engineer hunting for them. (This is less gloating, more in the name of full disclosure.)

Some people treat their Fitbit like pets (“I need to go for a walk, have to feed the Fitbit”) which makes me think that they are like Tamagotchi’s for exercise. I do like my Fitbit; I like things that bring amusement to activities that might otherwise seem like a chore. And, Fitbit does some other neat things with the internet and the gadget (Fitbit Tracker Ultra if you want to get one). For example, I really want the “you’ve walked the coastline of Florida” badge.

Anyway, the early morning walks (and the Fitbit) is helping me not go stir crazy in the car. I feed it 5k steps before I get in. C and I always manage to get another 5-7k after that, walking around Outlet Malls and Painted Deserts. So I feel like I’ve done something, not just sat in the car all day. It takes the edge off of my edginess. Mostly.

 

h1

Is that a Lytro?

April 8, 2012

Loading 138 photos… I thought that would give me enough time write a blog post about the new Lytro camera. As each picture loads, though, I turn to look at it and try all the different focus areas, deciding whether to keep it or trash it. I usually trash a lot of pictures; it makes people think I take better pictures if they never see the rejects- the poorly framed shots (why is there is flower with the background of someone’s butt?), the over exposed pictures (that sky sure looks ominous though the white flower looks cheerful), the blurry shots (you know the blurry shots well enough, thank you).

There are a lot fewer blurry shots with the Lytro. In case you haven’t heard of it, the Lytro camera uses a special imaging sensor that lets it takes in focus at multiple depths, letting me select where the focus should go when I get back home. No more out of focus things… kind of.

Focus is a funny thing. I’m sure there are technical terms but I’m the sort of photographer who is happy with a point and shoot, I just like the pretty pictures, I save worrying about the tricky details for my work life. I thought the post processing would turn me off of the Lytro (I do not need more time in front of a computer). And I thought I was getting the camera for my husband (for the trip, don’t you know?).

Here are the images from the first day I played with it, taking it around the neighborhood, trying to figure out how to make pretty pictures. Click on a picture and you can see how the focus changes, I’d recommend the pagoda with the red shrub. You can make the shrub a bright blur, focusing on the pagoda. Or if you click on the shrub, you can make the pagoda a mysterious shadow. And the two sets of apple blossoms are there to show that the focus isn’t just a few levels but can go from pretty close to pretty far. Oh, and try the last one, the tulips and tree. It wasn’t the best picture but something happened in that picture… I’m not sure I can explain without visuals so leave the other window open. If you click on the tree, the tulips are a dark pink blur. But then click on the tulip and the image becomes three dimensional for a second. It feels like reality has shifted for a second there. I need a new word to describe a picture that shows the bigness of the world.

I’m not used to my gadgetry requiring new metaphysical vocabulary.

Anyway, the Lytro… I should say that my vision isn’t that great so slight focus errors usually go over my head. I sometimes have to ask my husband (C) if a picture is in focus. But now I can really see it. The Lytro is going to make me a better photographer for other cameras.

After my neighborhood shots, I wanted to try it out someplace where I could take awesome photos. That would be Filoli, a house and garden in Woodside, CA. C and I have been several times over the years. It is a great place to take pictures because it is so incredibly beautiful there that you can turn in any direction and get something wonderful. C had his digital SLR, the heavy lens he was trying out, with the monopod and backpack. I had the hand sized Lytro. It didn’t fit in my pocket but I happily wore it as a charm bracelet.

One problem with Filoli is the number of other people who find it breathtaking (and their kids). Just about everyone had a camera. I was stopped many times, “Is that a Lytro?” and everyone wanted to know what I thought. Did I like it?

Yes, I would tell them, but it changes photography for me. I don’t just compose a shot, I have to compose the shot and the background to the shot and the background to that. Not everything has multiple levels, each one with something interesting.

I’m looking at one of the shots I took this morning on the Lytro now, trying to decide if I want to delete it. It is a nice picture, good texture contrast between the smooth windswept clouds in the sky, the rough trees, the bright yellow field of narcissus (it spelled fantastic, the Lytro failed to capture that), the light and dark interplay is nice and there is a branch of a yellow shrub in the foreground. It is a shot I’d be happy with, the not entirely level with the horizon notwithstanding (it lends movement to the still that is ok with me). Normally, I’d rank this as a decent shot of a pretty place.

Now, I’m not so sure… it is all “at infinite depth” which means it is all far enough away to be in focus. There is no depth; clicking in different spots nets the same picture. So now maybe this image isn’t good enough to survive the culling. It doesn’t have any movement and it fails entirely to show the bigness of the world. (Seriously, I need a word for that.)

Taking pictures this way is much more challenging. I suppose I should be thinking of The Print. The final shot that gets printed and gets to live in a picture frame around the house until some other picture is deemed more interesting. But I’m totally not thinking of that. I don’t care about The Print anymore. Suddenly I care about the image you see on the Lytro page (or in the program before I upload them). I want you (you!) to interact with my pictures. To feel like you can be there, to get a nearly tactile rush from clicking the images to see what you can find. To move from the soft flower to the rough bark, the pitted rock to the blades of grass, the cracked mushroom to the woody forest floor. To see something I never put my focus on.

I was thinking I’d add some criticisms… while I like the Lytro, there are some things I’d change. The easiest is somewhere to put the nifty magnetic lens cover (I’ll be fixing that with a rare earth magnet on the wrist strap). But you know what? The pictures are loading and right now I’m thrilled with the Lytro. I need to go delete some photos; I’ll be gentle, this is its first real adventure after all. There will be more. Oh, and in case you want to see- here are the survivors, for now.