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 , , , , | 2 Comments

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

Touchless Technology with ultrasonic distance sensors

touchless01

The concept behind this circuit design is that you can press buttons without touching them. As your finger lowers to the tabletop, the yellow light will come on, indicating that you are on the correct approach. Farther down, the green light comes on, which activates the button function.

Or so it’s supposed to work. What I find is that when my finger is on the lower level, the upper sensor will still detect its position, which is bad enough, but since it’s measuring at a diagonal, it will measure the distance as greater than it is.

touchless02

Possible solutions would be to redesign the circuit so that there is a UDS pointing up from each button position. But that would require four sensors rather than two even for this circuit.

Hmm, I wonder how big the ‘spray pattern’ is for the sensor pings. If it’s fairly wide, then the position of the finger could be determined by triangulation.


Available on Amazon:


Vivotech Hc-sr04 Arduino Ultrasonic Distance Measuring Sensor


Arduino Cookbook (2014 edition)

Posted in Uncategorized | Tagged , , | 4 Comments

Touchless interface using pingers (set-up)

touchless 01

I’m about midway in building this demo of touchless technology. The idea is that the user will be able to operate buttons without touching them. Confused? It will all make sense when I get this thing running in the next day or so.

Posted in Uncategorized | Tagged | Leave a comment

Pingo: Ultrasonic Distance Sensor Game in Development

pinger hardware

This is the hardware for a game I’m developing that uses an ultrasonic distance sensor.

The microcontroller (Arduino, natch) randomly generates distances and then commences a ‘random walk’ from Point A to B. You, the player, hold your hand above the ultrasonic distance sensor (aka ‘pinger’) and the microcontroller compares the target distance with your distance. If you are within the ‘safe’ zone, you get a green LED light. If you are in the caution zones, yellow, and red is for when you’re way off.

In addition to lights, there is a piezo speaker which sounds increasingly high pitched tones when your distance doesn’t match the target.

Thus the object of the game is to move your hand so that it keeps in the green zone as much as possible. Points will be scored in the final version, and there will be different skill levels too. Following is a video of how it works so far. Please be patient, the gameplay is still in the development stage.

I’ve already gotten suggestions about generating oscillating waves and musical patterns in which distances correspond to musical notes. Please let me know if suggestions have occurred to you as well.




Buy at Amazon:

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

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

Touchless Touchscreens: 3D Vision for phones (and computers)

Imagine a ‘touchless touch screen’ for your smart phone. You hover your hand above the screen, and the phone detects the position and movement of your fingers so that you can ‘click’ and ‘swipe’ without actually having to contact the screen. This opens up a whole new realm of convenient and fun applications.

Someday smart phones will come equipped with two cameras in front, but in the meantime this tiny accessory that fits over the top of your phone will do the trick:

smartphone stereo 1

As you can see, it has two mirrored surfaces, which act as a sort of split-view periscope:

smartphone stereo 3

This enables the camera to see from two different perspectives, which can then be combined into one:

smartphone stereo 2

And of course it can be adapted to laptops and desktops, so that 3D viewing can be utilized in, say, drawing stuff in Sketchup!

This idea has been posted to Quirky.

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

Attracting Attention on the Moon

This is the first billboard on the moon

Putting a Sports Drink on the Moon

Well, not exactly. Japanese soft drink maker Otsuka intends to send a can of ‘sweat powder’ to the Moon via one of Elon Musk’s Falcon rockets and Astrobotic’s Griffin lander.

Posted in Uncategorized | Tagged , | Leave a comment

Moby Digital now on Amazon

Moby Digital

Moby Digital is a novelette about a group of people who get caught in a VR simulation of the novel, Moby Dick. It’s up to an intrepid free-lance IT troubleshooter to rescue them. It first appeared in the December 2008 issue of Analog Science Fiction and Fact Magazine.

It got a favorable response on The Library Thing, SFRevu, and the Analog 2009 reader’s poll.

And yes, the artwork is my own, I was trying for an eight-bit feel. A 1980s Moby Dick arcade game where you could play Ahab or the Whale, now that would have been something to see. Maybe it’s an idea for a mobile game app. If Ahab wins, he gets attacked by Greenpeace.

In the meantime, my story costs 99 cents on Amazon.

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

TRIAC/Reed Switch Demo Circuit

As you recall, I’m working on an electronic nonlethal mouse trap.

mouse trap

To avoid wasting battery power, the mouse trap is in standby until the mouse pushes open the one-way door.

manual switch

reed switch

I needed a circuit that would turn on when a magnetic field is applied to a reed switch, then stay on even after the field is removed. Based on an internet search, a thyristor appeared to be the ideal component. More specifically, I needed a type of thyristor known as a TRIAC.

But would that actually work? I designed a simple circuit schematic to test a TRIAC/Reed switch combination:

thyristor

After a quick trip to Vetco, I got a TRIAC (NTE 5600) and built the circuit as follows:

triac reed

In theory, when the magnetic is applied to the reed switch, the TRIAC gate will be powered and current will flow through the TRIAC to the LED, which will light. When the magnet is removed, the TRIAC will remain active and the LED will continue to glow until power is removed from the circuit.

So here’s the test:

Yea, it works! So the electronic nonlethal mouse trap comes a step closer to realization.

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

Teleoperated robots on the Moon (and Amazon)

My science fiction novelette, High Moon, was originally published in the May 2005 issue of Analog Science Fiction and Fact Magazine. Ten years later, I’ve learned how to upload stories to Amazon so that it can be read on Kindle and Kindle-compatible devices.

Here’s the story blurb:

A few years in the future, Clavius Crater on the Moon is being prospected and mined by small robots teleoperated from Earth. Brian and Lester, who work as lunar mining robot teleoperators for one of the numerous small start-ups seeking to meet Earth’s ever-increasing demand for palladium, must confront a huge consortium-owned robot named Big Bart, which seems bent on destroying the entire lunar mining industry on behalf of its masters.

That would be bad enough, but from Brian’s point of view, even worse is that everyone on the Moon seems to think it’s the Old American West, pushing his tiny robotic avatar, Wiley, into a gun-blazing showdown with Black Bart on the dusty streets of Clavius Gulch!

The link to Amazon is: High Moon: A telerobotic lunar Western.

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