I’ve spent the past 5hrs or so writing a driver for the sensor, as the output is not linear but a voltage curve it was rather difficult. I managed to come up with a 3rd order polynomial function that is accurate to within a few millimetres on my sensor.
My driver supports filtering, averaging outputs and moving averages to smooth the output. In addition i created a wiki page with some usage notes and further information.
You can find the driver and more about the sensor on the wiki:
(link removed)
It is now the first sensor in a suite i plan on creating.
You haven’t assigned your project to a category yet - not sure if you did this intentionally.
Makes it very hard to find - I had to use the link you provided in this post.
Mark, you like ScrewTurn Wiki then? After I get the storefront of my site tweaked in I was wanting to add a Wiki as a way letting customers show off there projects and have a better way to share information (stealing GHI idea for Wiki use ). Since all of my site is ASP.NET it seemed that ScrewTurn would be the way to go.
Yep screwturn is great, i’ve used in in a number of internal projects and it’s working brilliant. We use it for our developer documentation at work - you know what icon is stored where on the server (incase you need the original), how to fix some errors on the slaves/masters, general documentation of process… the sort of stuff the clients and mining engineers don’t need access to. Much easier to get going with a page than mediawiki. Mediawiki is ok, but it was created for wikipedia so change is slow and innovation is lacking.
Could you add support for this sensor as well: GP2Y0A21YK
What you have is probably the right/organized way to setup a project, but just for sake of simplicity for dummies like me, a single-file driver for each device would be wonderful thing, see if you could simplify that a bit. Yes. having the entire project there still a very neccessary.
That is awsome!!! I have 2 of these sensors and a GP2D12. I know I will use them on every freakin things I do as far as robotics…like building an air plane, a drone, a cruise missile, etc. ;)all of that cool mind blowing stuffs.