Award
Congratulations thetechguru, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

Help Using A Ping Sensor And Roomba's Cleaning Mode

Assistance Requested

Help Steve G with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

Steve G claims to have checked these sources:
 
#1

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.

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.


Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


#2

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* Tongue

Thanks.

#3

Have you looked at my Ping Roam scripts? These may be off some assistance. They are well commented and easily adjustable.

#4

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

#5

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. Smile