Eye, Robot (Part One)

raspberry pi

pi camera

I’m toying with the idea of a robot that can interact with its environment by pattern recognition. I thought the way to do this was with a raspberry pi computer. So I bought the computer and the pi camera from Maker Shed, and expected that all I would have to do is connect a USB cable to my laptop to begin programming the pi.

Well, not exactly. It turns out that what I need on both the pi and my laptop is a program called VNC, and VNC doesn’t come on the preloaded OS card that I got for the pi. I can download VNC for my laptop easily enough, but it appears that I’ll need a monitor and keyboard connected to the pi in order to download VNC onto it. There may be a way around that, but it looks like I’m about to make a trip to Goodwill for a cheap monitor and keyboard.

Posted in Uncategorized | Tagged , , , , | Leave a comment

Rocket Ship Freedom free for today (Dec 16)

kdp title 01

Rocket Ship Freedom

This is a YA novel I wrote eight years ago about a single stage to orbit rocket that travels to the Moon. It doesn’t come back, so how the crew gets home is something you’ll have to read the book to find out. If you’re a space buff, you’re probably wondering how an SSTO gets to the Moon in the first place. Again, it’s in the book. Which you can get today for FREE.

Posted in Uncategorized | Leave a comment

The Wizard from Earth

My science fiction novel, The Wizard from Earth, is available on Amazon Kindle as an eBook. It’s selling for only 99 cents. If you don’t have a Kindle, you can still download the free Kindle Reader software, and read it on your computer and/or smartphone.

Matt was a typical twenty-second century teenager with a supercomputer implanted in his head. He was supposed to be launched toward the star Alpha Centauri, but ended up on another world, lights years and centuries removed from his family.

Carrot was a native of that new world, a mutant of superior strength, senses, and intelligence, alienated from her own family and locked in a deadly struggle with a global empire.

Together they would battle humans, mutants, and super-intelligent AIs in a war for the fate of a new world — and for the survival of humankind.

View: The Wizard from Earth

Posted in Uncategorized | Leave a comment

Kind of a resume

I’m looking into tutoring again and thought it might be useful to list a few links that illustrate what I’ve done. I may not have done the right stuff, but I have done stuff.

Arduino Park:

Grisbot 2-obstacle course:

Grisbot Follows the Light:

Triac/Reed Switch test:

Ultrasonic distance sensor as toggle switch:

Ultrasonic pinger game:

LED Figurine Illumination

Grisbot with Scratch Obstacle:

ATTiny45 light display:

Grisbot light follow test:

Also, here’s my video work on Modeling Molecules.

Posted in Uncategorized | Leave a comment

Rocket Ship Freedom available for download

Rocket Ship Freedom

Rocket Ship Freedom is my YA novel about a teenager who gets an internship at a private rocket company and ends up going to the Moon, where he discovers a deadly mystery that threatens the survival of the human species.

Judging by the recent popular movies, the YA genre appears to be dominated by fantasy and dystopia. When science and technology do appear in a story, they often deal with really far out stuff like time travel and parallel worlds. Now, I like that stuff too, but I wondered how come there didn’t seem to be any YA novels that focused on hard technology and an upbeat vision of the future. So I tried to write a story that was scientifically accurate yet also fun and full of adventure.

View Rocket Ship Freedom at Amazon

(By the way, the cover illustration is my very amateur work in Sketchup and has several errors. Can you spot them?)

Posted in Uncategorized | Leave a comment

Ultrasonic toggle switch

ultrasonic toggle

This is an idea for using an ultrasonic distance sensor (aka ‘pinger’) as a toggle switch. I’ll show it first and then explain:

As the hand approaches, the yellow light comes on to indicate that the switch is in aware mode.

When the hand is close enough, the green light toggles. That is, if it’s off, it goes on. If it’s on, it goes off. The yellow light, having done its duty, goes off.

The yellow light remains off while the hand is retracted to indicate that the aware mode doesn’t activate again until the hand is fully retracted. This is to prevent the ultrasonic equivalent of what is called ‘bounce’ in mechanical switches.

So what are the applications of such a switch? Suppose you have a runaway robot and you’re shouting at it but the background noise is high and so you take out your remote but there’s radio/IR interference too. You could chase after it and slam a mechanical switch on the back, but maybe that is getting too close for safety.

So here’s another solution: simply reach out toward the robot, and when you’re close enough (but still at a safe distance), the pinger detects your hand and deactivates the robot.

A more mundane application would be to turn fans and lights on and off more conveniently.

(In case you’re wondering, I had oatmeal for breakfast.)



Buy at Amazon:

Vivotech Hc-sr04 Arduino Ultrasonic Distance Measuring Sensor Module Good Compatible

Arduino Cookbook

Posted in Uncategorized | Tagged , , , , | Leave a comment

Debugging Touchless Technology

touchless05a

The comment that I added to the previous post was not the full solution to having a row of touchless buttons, but it set me on the way. A second pinger IS necessary to discriminate against anomalous readings.

In the following video, I turn off the yellow lights but retain a comparison between the distances from the finger to the lower (or ‘green’) pinger and the upper (or ‘yellow’) pinger.

Two comments:

1. There is still some confusion between readings for buttons. This might be corrected by setting the buttons farther apart and increasing the separation of the pingers.

2. You can see the light flicker as the finger hovers over the button. This is the equivalent of ‘bounce’ for a mechanical switch, and the solution is likely to be ‘debounce’ code.

Anyhow, it looks like the best way to use pingers for touchless technology is one pinger per button. That’s where I’m going next.


Available on Amazon:

Vivotech Hc-sr04 Arduino Ultrasonic Distance Measuring Sensor

Arduino Cookbook (2014 edition)

And still trying to sell my stories on Kindle:

Posted in Uncategorized | Tagged , , , | Leave a comment