Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.

Get Started
United Kingdom
Asked — Edited
Resolved Resolved by thetechguru!

Help Using A Ping Sensor And Roomba's Cleaning Mode

Hey guys.

I need a little help as the title suggests. I've been trying to have a ultrasonic sensor checking for obstacles while a Roomba is in cleaning mode, the idea being that the body of the robot doesn't hit the top of a chair or table where on its own, a Roomba would go under it as it knows it's own height, but with a robot body on top of it, it is obviously now taller now and the IR sensor on the Roomba doesn't know this.

I have a ping sensor mounted on a servo positioned at the robots chest hight, but I can't seem to write a script where if the ping sensor detects anything, it would direct the Roomba (while in cleaning mode) away from the obstacles, as the Roomba's IR sensor seems to override the ping sensor and bad things happen (lots of body slams in to furniture and falling over). Is it possible to integrate the two together?

Thanks.

United Kingdom
#1  
I'm bumping this as it's been a week with no response. Has anyone got any thoughts on this? Is it even possible?

Even more curious is that I'm getting emails to mark this as resolved as I have received a response, which I clearly haven't, LOL. *confused*:P

Thanks.
United Kingdom
#2  
Have you looked at my Ping Roam scripts? These may be off some assistance. They are well commented and easily adjustable.
#3  
Just spitballing an idea, I think when the ping sensor detects a potential collision, you would isuue a cc to stop cleaning mode, back up and turn (like Rich's ping roam) then restart cleaning mode.

Alan
United Kingdom
#4  
Thanks guys. I did have a simple avoidance script running during cleaning mode but I think I got the script wrong somewhere as it wasn't doing what it should, so deleted it. I'll have had a look at your ping roam scripts a while ago Rich (to be honest, I forgot about it). I'll have another look. Thanks.

That's a great idea Alan. Quite a simple one by all accounts, but that's exactly what I'm looking for and just couldn't work it out in my head. That will work for me.

Many thanks again Alan and Rich.:)