Sharp IR Ranger => I2C
shimniok
Posts: 177
I love Sharp rangers and wishing for a digital interface, I made one. It's a tiny board that converts analog to I2C. Looking at SPI, Serial, too.
Now I can mate Propeller + Sharp rangers. Any of them.
My firefighting robot, Pokey, has few analog ports. Now it doesn't matter.
Oversampling, filtering and 125kSPS sampling produce a clean signal with reasonable bandwidth. Way better than simple ADC + averaging I've previously employed.
Is it hackable? Flexible? Yes. Easy to flash. I'm crafting it to easily bend to one's will.
I made a pseudo-theremin as a proof of concept. (Nerdy video here: http://youtu.be/6HEsA3RBoPc)
What would you do with one (or up to 27) of these? I want to build a radar--IRdar? Sharpdar? Might be fun to build a balancing robot. Sharp-based piano?
Sources: https://code.google.com/p/bot-thoughts-sharpi2c/
Michael
Now I can mate Propeller + Sharp rangers. Any of them.
My firefighting robot, Pokey, has few analog ports. Now it doesn't matter.
Oversampling, filtering and 125kSPS sampling produce a clean signal with reasonable bandwidth. Way better than simple ADC + averaging I've previously employed.
Is it hackable? Flexible? Yes. Easy to flash. I'm crafting it to easily bend to one's will.
I made a pseudo-theremin as a proof of concept. (Nerdy video here: http://youtu.be/6HEsA3RBoPc)
What would you do with one (or up to 27) of these? I want to build a radar--IRdar? Sharpdar? Might be fun to build a balancing robot. Sharp-based piano?
Sources: https://code.google.com/p/bot-thoughts-sharpi2c/
Michael
Comments
I also love the array of Sharp IR sensors and have used them in numerous places, including a balancing robot. My only "fail" so far was a quickie attempt at the world's simplest theremin, attempting to use a 555 timer as a VCO with the Sharp's output. It didn't work right away and I shelved it (I thought maybe the 555's current demands were too high for the sensor) but your very cool theremin demo makes me want to try it again.
Great job, Boss!
I realized last night-- I could've made the theremin with just the two adapter boards. 8-O
One as an I2C master, have it read its own analog, read the other's output, adjust timer / pwm. Add amp, speaker...
I am going to use these on my autonomous rover, Data Bus, for obstacle avoidance (mbed only has so many analog ports...).
All this started with an ugly perfboard arduino clone used on the robot's curb sensor.
Hm, I have a 5V radar module that spits out an IF... maybe I can slap one of these on it, too. Hmmmm....
I have a possible application.
But what is the story with the SHARP sensor? I keep reading about them going out of production.
Regards,
Mickster
Say it isn't so! I love these things.
I have seen some of the models phased out, but I haven't seen anything about the entire line going away. I can't imagine it would.
Shimniok,
I feel like I have seen something similar offered on a commercial site, but I can't find it.
This might be a neat item for a lot of people. Keep us posted.
Also, a psuedotheramin was one of the first things I made with a distance sensor. They are fun.
This is more likely the case.
I have had an idea for some time now about creating a machine monitoring system (not for operator safety for legal reasons) where things routinely go awry and the result is costly ($500+) downtime. In my particular application, an array of 30+ of these would be required.
Regards,
Mickster
@Mickster - maybe you are thinking of the GP2D12 which has been replaced by a newer design?
Wow, 30+ ? No problem -- I'll let you in on a secret. Though I say 27 per I2C bus, I am looking at making that unlimited. The solder jumpers support 27 unique addresses. But I'm looking to make the *base address* configurable, too, either through I2C command or burning EEPROM directly. Haven't gotten to that yet.
@varnon - I know Solarbotics has "I2C-it" which is a converted GP2D12. Neat idea. Mine works with any of the Sharp sensors.
If anyone is willing to help me test 'em out, offer suggestions, and/or help me work on the Propeller I2C code examples I could be persuaded to do a short run and send you one or two.
As far as coding, the challenge is to find an I2C driver that works right or make my own. I had issues with my FTDI+Linux then life got in the way. I guess I can get back to that now if I can't find a sucke---volunteer to help code.
It seems to be working properly with my I2C A2D module. I'll run a handful of additional tests then post up the object.
After that we can talk about testing these devices in your projects. Stay tuned!