I've bought this optical sensor:
https://www.pololu.com/product/2450
(Sharp GP2Y0A51SK0F)
Because I saw Tested was using this on their build:
http://www.tested.co...inball-machine/
They are using this with a Teensy board. Will i be able to use this sensor on the Pinscape Controller?
No, that's not one of the sensors the software currently supports. It's open-source, and the plunger sensor framework has a nice modular design that lets you plug in new sensors, so you could add it if you're up for the project. But I don't think it would be worth the trouble - those sensors are really pretty terrible.
You might also be able to make it work, kind of, by telling the software that it's a potentionmeter. Those Sharp sensors produce analog voltages that can be read by an ADC, which is the same way the pot sensor works. But there are two big problems. The first is that the distance/voltage curve of the Sharp sensors is non-linear, so the motion won't look very natural without a compensating adjustment in the software. The second, bigger obstacle is that the Sharp sensors are 5V devices, whereas the KL25Z is a 3.3V device, and it's not at all tolerant of 5V inputs. To safely use it with the KL25Z, you'd have to set up something to shift the voltage to the safe 3.3V range. A voltage divider might work, but I'm not sure how well - putting any kind of resistive load on the Sharp sensor might interact poorly with its electronics and make its response curve even stranger.
The really big problem with the Sharp sensors is that they have terrible precision and terrible hysteresis. That's why I haven't bothered trying to address the problems above.
It looks like the board supports this type of board:
https://www.pololu.com/product/2489
(VL6180X time-of-flight sensor)
Right. I assume you've read through this:
http://mjrnet.org/pi...php?sid=vl6180x
I don't think personally think these sensors are very good at plunger sensing either, frankly, but they're way better than the Sharp analog sensors, they're 3.3V compatible when you get one of those Pololu breakout boards, and the Pinscape software does have support specifically for them.
My recommendation if you want something cheap and simple is a pot sensor. Those actually have considerably better precision than the VL6180X and they're probably even easier to set up physically.
http://mjrnet.org/pi...ide.php?sid=pot
MJR,
According to the spec the output does not exceed 2.5V. I am bread-boarding an anti-log amp, perhaps with a gain of 1.32 to give it a full 3.3V FS. I can't recall if your software does an inversion of the input, if not I''ll make the output inverting. Anyway, I bought two of those sensors and if I get it to work, I'll post the results along with a schematic. Question- this device samples at 60Hz. I don't know what the ADC sample rate on the Freescale is. Do you think there will be issues with aliasing?
Regards,
Rick
Edited by rickh, 25 March 2018 - 11:36 PM.



Top

Contributor







are all trademarks of VPFORUMS.