Crum

Posted on 20/10/2008 by Big Face
Modified on: 13/09/2018
Project
Press to mark as completed
Introduction
This is an automatic import from our previous community platform. Some things can look imperfect.

If you are the original author, please access your User Control Panel and update it.

I have got the sonar sensor working and scanning and added this to the data sent to the pc.  I have also written a very basic obstacle avoidance program which basically involves the robot turning for a certain time whenever an obstacle is sensed.  I am going to develop this program so that the sonar data is also used to make decisions on what way to turn.  I would also like to send data from the pc to tell the robot which way to turn so that unexplored areas of the map can be explored.  For now ...


Crum

I have got the sonar sensor working and scanning and added this to the data sent to the pc.  I have also written a very basic obstacle avoidance program which basically involves the robot turning for a certain time whenever an obstacle is sensed.  I am going to develop this program so that the sonar data is also used to make decisions on what way to turn.  I would also like to send data from the pc to tell the robot which way to turn so that unexplored areas of the map can be explored.  For now i have added a video of Crum producing a map utilising the sonar data as well as the ir sensor data.  I have also altered the mapping software slightly so that the shade of grey displayed on the map reflects the probability of an obstacle in that cell (not very clear in the video).  I have also added functionality to change the scale of the map and the resolution of the occupancy grid.


So my mapping robot is dead, robbed for parts!  It could only move on flat, smooth surfaces and i wanted something that could drive around the house. Meet crum.  Ive built Crum to continue my endevour to create a robot that can draw a map.  The body is made of expanded pvc (an idea taken from several robots posted recently, thanks guys!).  Its armed with 3 ir sensors and a sonar sensor.  The old mapping robot used just ir sensors and i think the addition of the sonar will help with the mapping and the avoiding of chair legs!!  Ive also included an I2C LCD screen, looks cool and very useful when debugging.  Crum has the compass module and the wireless link, same as my old bot.  Ive been working on software for the pc end where data from the robot is recieved and displayed.  Ive decided to try an occupancy grid approach to mapping.  Data from the robot can be used to draw a map but thats as far as it gone at the minute.

 

LCD display

 

 

 

 

 

 

 

 

 

 

 

Above is a pic of the LCD screen in all its glory.  Ive also got the sonar working this evening which is nice.


Ive played around with the code and managed to get the robot to plot an occupancy grid map using just the IR sensors at the moment.  The screen shot below shows the grid being filled with white cells to represent unoccupied space and black cells to show where objects are located.  Im getting a lot of false or inaccurate readings at the moment from the IR sensors.  I dont think they are very accurate at longer distances, hence the addition of a sonar sensor.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Update: Ive just added a video of the robot drawing a map.  It is currently only using the ir sensors to measure distances to objects. Each cell in the grid has a value associated with it that is altered when the robot sees either an object or free space in that cell.  When a threshold is reached the program either colours the cell white or black. I programmed the robot to travel slowly in a square path, no obstacle aboidance or wall following yet.  It is clear from the video that even over a short distance, odometry errors occur leading the program to think the robot is in a different place than it actually is.

 

 

Navigates, draws maps

  • Actuators / output devices: 2 servos
  • Control method: Autonomous.
  • CPU: ATMEGA32
  • Power source: 6V
  • Programming language: C
  • Sensors / input devices: SRF05 Ultra Sound, 3xSharp IR GP2D12
  • Target environment: Indoors - Carpet
Flag this post

Thanks for helping to keep our community civil!


Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post