LaserPing released - details are here
Ken Gracey
Posts: 7,392
https://www.parallax.com/product/28041
Let us know what you think of this latest product!
Ken Gracey
Let us know what you think of this latest product!
Ken Gracey
Comments
No, seriously, a drop-in TOF laser light sensor for 30 bucks is very intriguing. Another great addition to the line.
Amanda
Now, about those accuracy figures(not that it matters). "1mm" is stated, but further into the docs it is +/- 7% best case.
?
A while back, I wrote a PASM program to run 2 pings in a single cog without blocking each other. If any one has 2 of the new laser pings and would try my software, I will dust it off, make revisions necessary for the laser ping and post it here. It is written in PASM with a SPIN interface. Only SPIN requirements are cog launch. Calculations of distance are handled externally so could be done by anything that can access the stored var in hub ram.
Jim
Since the laser ping doesn't need to run continously, you can surround it, perhaps, with three very cheap, low mW, laser diode sources, of different colors, and activate them only when the distance meassurement laser is off, between ping requests.
Maybe a triangular-shaped setup. with the two horizontal diodes set up to show the direction of the next intended turn (either left or right), and the third one selected when (your next robot???) is going to move straight ahead.
Sure, the batteries will be drained a little bit more, by having three other power consuming devices onboard, but, since the laser diodes will be also multiplexed you could, at least, control the amount of "wasted" energy.
Only a thought...
Henrique
Checks in the post.
idk... looks to me that Erco is following the tracker:) ... and where is the flame thrower?
It would be a quick blip, but try an ordinary camcorder or smartphone camera. Most are sensitive to near-infrared light in the region of this device.
-Phil
A comparable item to the RFD77402 is the VL53L0X. Other than they way you communicate to the distance sensor and a slight difference in pinout and a smaller physical size, I'm not sure from a functionality perspective that they are much different.
Jim
Certainly the pulse width will be measured in uS, as that is how ping works.
Whether the conversion values have been divided by 1000 to present them in mSec, I don't know off hand.
The conversion is also the same as for ping, if you've got some ping sample code to reference.
You can literally unplug ping and plug in a laserping and it will work.
Hope that helps get you going.
Tiny little board, I can fit 3 side by side in the space of one normal ping!
I am using counters and pasm code to get 2 nonblocking pings in a single cog. I was thinking I would have to change constants to go from sound to light.
Jim
That said.... what about using a quad-serial cog, and set the laserpings to serial mode?
Seems to me pwm mode is great for backward compatibility with Ping and for using with slower/older uC's, or existing code/projects. But propeller can do serial no problem, so if your starting new it could be worth considering.
And you won't need the floating point math either, as the serial value is in millimeters. Assuming you don't want to convert to inches anyway.
Sounds like a spot of mustard or a bit of underdone potato.
Your 4 laser pings in one cog trumps my 2 per cog! I will let my code die a natural death.
The data sheet should be up dated though for correctness and prevent future confusion for someone wanting to use pwm.
Jim
A guy can dream, right?
@Roy: I suppose you'll be showing us a 10-LaserPing robot soon?
-Phil
'Still, though, an impressive product!
-Phil
I only got 4 of them for now. That 10 ping setup was overkill deluxe.
The 4 I have are destined for an activity bot base setup.
Also, mine came with a small 3/8" amber disc stuck to the header. Is this intended to be used with the sensor or is it just something that hitched a ride across the country?
Update: Switching over to inch mode stabilized the display, no more flipping back and forth.
I'm not certain, but I think that amber disc is a pick-n-place suction point. I think the headers come from the supplier with this disc exclusively for machine assembly.
Ken Gracey