• Category Archives Opto22
  • The brand of automation hardware and software that Ben uses at work.

  • Actual footage

    Wired (a tech mag) scored big time, they got some actual footage from the movie that we have not seen as yet.
    (Im in it).

    http://www.wired.com/2014/07/james-cameron-deepsea-challenge/

    Gave me major flashbacks!
    This footage is from the ‘first’ expedition meeting in the factory in Sydney, it was pretty late in the evening, around 6pm if I recall. We were in the last 2ish days push to get the sub finished and out the door and thus installed on the ship.
    This was the meeting that outlined the dive program.
    Just after this section, we were all given medical forms to fill out and advised what injections we were to get etc.

    (Thanks to Benson for the link – he’s got some major Google foo skills that can find stuff and get notified of stuff that others miss).


  • Commute to work in the Smart Car.

    For your 6 minute viewing pleasure (or otherwise), I present a pretty typical commute to work in the Smart Car.

    Bonus footage of my super messy office desk.

    I just love the way it sounds like a Formula One car when I speed up the video.
    Yeah, its a bit long, but I really wanted to show the whole thing rather than cut bits out.
    It was a pretty smooth run, did not catch every red light, but did not get all greens either (a very very rare event)…. So in that regard, it was a very typical run.


  • Garage door – Part 2

    Just to be clear. I don’t have ADD, I just like to keep moving forward…..

    While waiting for inspiration on the dog door dilemma (One of the guys at work has a great idea and I am tinkering around with testing it) I turned my short attention span to the detecting the Smart Car in the garage problem.

    Just as with the dog door, we thought about microswitches in this case as well, but having them attached to something seemed a bit old fashion.
    The fact that the Smart is red did not escape my attention either, you can buy color detecting sensors these days pretty cheap. So I could detect the red door and know the car is there.
    Video camera object detection was also considered (and was/is more than a passing thought for the dog doors as well).
    Lasers are always fun (Got a blog in mind for that topic as well), so thought about that option.
    Ultrasonic range detection. Terry was in the robotics club at high school and they used one on their bot, so we are looking for an excuse reason to use one of them around the house….

    In the end, we settled for a loop of wire on the ground. Just like they have for traffic lights. Have always wanted to play with that sort of thing, so it was a good excuse for me to tick it off my list.

    There are lots of circuit diagrams for making one out of bits on the web, and I thought about going that way, I really miss playing with electronics, but in the end, a lack of time won over.
    So, we brought a unit off eBay.

    First up, they don’t come with a coil, so I went to the local electronic shop (can you believe that there is one, just one in Temecula, and its within walking distance of Opto?) and got a spool of wire.

    The wire has to be made into a loop that will sit on the floor under the Smart Car, so I wound it around the rubbish (trash) bin (can). As you do.

    IMG_20140216_123324

    It was pretty much the perfect size, and being a cone, meant that the coil just slipped off. (Freddy freaked out when she saw me wrapping wire around the thing. Really? We have been married for some 24.3 years and she still worries when I start wrapping stuff with wire??)

    Added some tape to keep it together. (Look at me go BA and keep it all neat).

    IMG_20140216_124856

    The unit itself is very straight forward, you add power, connect the coil and it has a switch (relay) output. 50 bucks. Hate to say it, but why muck about with soldering and chips and stuff when you can just buy the box and get on with life?

    IMG_20140216_134522

    Here it is on the floor, ready and waiting……

    IMG_20140216_140450

    Relax Sue, I am going to throw a nice rug over it and hide it, but wanted the geeks to see it first…..
    There is some coax cable going from the coil to the box, you need to shield the signal so it does not pick up any stray interference.
    I wish there was a join the floor to put the cable in, but there aint, so I will probably get a little rubber to put either side of it so the cable does not get squashed under the terrific weight of the Smart Cars front wheel.

    I hooked the switch into the Opto controller and we are done.
    The system now knows when the car is in the garage and so it knows when its time to shut the garage door.

    Now, I need to interface the Opto controller with the garage door itself… Wonder what I will get distracted with while I get that set… oooo shiny….


  • Garage door – Part 1.

    Its been a busy few weeks. Have been messing with some software that links stuff together.
    This blog is not about that software. Or the stuff. Or the links.

    Slightly geeky content ahead. (Hey, I said slightly, give it a try, you might make it all the way though).

    I want to automate my garage door. Cause, you know, pressing the garage door opener button in the Smart Car is soooooo 1990’s…..

    But. There is a problem. Malcolm.
    The little fleabag happy little puppy loves to ‘escape’ out the open garage door if he is around when I come home.
    About the last thing I feel like doing when I get home from work is chasing the little barkerbrains character filled dog all over the neighbourhood (the whole coming when hes called thing? Yeah, not so much).

    This is not a problem. Its a challange.
    One that I have accepted. Perhaps a little too enthusiastically, but accepted none the less.
    Begin with the end in mind, that what my old boss Ray used to tell me when I was programming Opto at the hospital…. So here is the end goal.

    Something (we will get to what in a future blog) will detect that I am close, very close, to home and shut the dog out of the garage, then open the garage door, then detect the car is in the garage, then shut the garage door. When the garage door is fully shut, then let the dog out.
    (See how much better that is than me texting Freddy that I am on my way home, having her trap the dog, then me pressing a button to open the door when I get into the driveway, then pressing it again to shut the door once I am parked in the garage, then Freddy releasing the hound once she hears the door fully shut?)

    So, lets get started.
    First up, we have to know where the dog is…..

    IMG_20140219_065319300_HDR

    I have put micro switches on both sides of the dog flap.
    Here is a shot of the flap open (as if the douche bag dog is going through.

    There is a switch on each side of the flap so I can tell if hes going in or out, this way, I can track where he is, what direction he’s going etc. (It will be fun to write some extra software to detect the speed that he goes between the two doors at some future time).

    IMG_20140219_065340529_HDR

    You can see that in theory it should all work rather well……
    Yeah, well, take a look at this mornings results;

    dog doors from groov

    This is a screenshot of what needs to be another blog entry, but for now, its enough to know that work gave me our graphic artist to spruce up my home automation graphics so we could use it to demo our new web product…..

    Don’t get distracted.

    Look closely at the data presented….. First up, the dog was not in the garage with me, it was upstairs cuddling with Freddy in bed. (Dont get me started).
    Note the counts on each door….. Is the dog able to teleport through the door without triggering the switch? I wish. (Cause then, it would be a cool dog).
    Yes, I know, switches can ‘bounce’, that is to say, you can get more than one signal per actuation. I have accounted for that in the software… No, I think its simply a case of the switches are just not placed exactly right or are sticking or something.

    Bottom line is this, I don’t know (accurately) where the dog is at any given time, so I wont be opening the garage door automatically any time soon.

    Until I solve this problem, we are stuck at part one.


  • Just to be clear as glass

    So, to be clear. I am not going to edit my last blog, it can stand, but I think I can see how I might have written it a little to fast (me? excited?) and made too much of a joke at Apple’s expense.
    Just to be super clear. You don’t NEED an iOS app to make Google Glass work. It works just fine with no app and the web interface. It was always Benson’s plan to share the Glasses around at work, my turn was first, that is all. In due course they will go through the engineering department and so on till the whole place has had any chance they want to try them out.

    Moving right along.

    I did not get a lot of time to play with them today, it was straight down to work.
    Getting them working with our hardware and groov.

    What better task than to use Google Glass to write stuff on my LED sign?
    At the moment, they are rather limited in what they can do (You can side load ‘apps’ and get them to do more, but out of the box they can just do search, send a text and post photos/videos), so that limits what connectivity options you have if you want something going pretty quick.

    Lets get them to send a text. But where?
    Enter IFTTT.
    Benson has been watching and playing with this crowd for a while, I have not as yet, so today was my first dip in their water… And its pretty nice.
    I set up a rule that said if I send a text to them, they would write a file of the text to my dropbox.
    Mary then wrote some code for our controllers that looked at the dropbox on the computer and if it saw a file there, then move the contents of the text file into a string variable in the controller.
    It was simple then for me to take her code and tweak it so that it showed said string on the LED sign.

    I will try and make a little video of the process when I get a chance, but in a nut shell, you tell Glass to send the text. A few seconds latter the file appears in the computer from IFTTT, a few seconds after that, we pick up the file, convert it to a string, send it to the sign and then delete the file so we are ready to do it all again.
    Terrys had a blast using it tonight.
    It really is very cool.

    googleglass to led sign

    Next challenge is to go back the other way.
    Get data from the Opto controller and display it on the Glass interface.
    This could be tricky.

    All that said…. I think I am falling into like with them…..