View unanswered posts | View active topics It is currently Tue Feb 09, 2016 9:52 am

 Page 1 of 1 [ 11 posts ]
 Print view Previous topic | Next topic
Roomexplorer and mapping NXT-robot
Author Message
Rookie

Joined: Mon Apr 08, 2013 12:50 pm
Posts: 30
Roomexplorer and mapping NXT-robot
Hi community!
I would like to introduce my new project “Room explorer with mapping functions”.
The robot based upon a standard REM-Bot but in addition equipped with a hitechnic gyro, hitechnic compass sensor and an omni-wheel (look at the Pictures I will send when the server of RobotC will work again).
First the robot moves about 360° to calibrate the compass using the gyro (thank you to Xander for code!).
Then the robot moves its sonar-head to the right, to the left and in front position to get the distances according to its position. After doing this it turns around to the wall with the minimum distance and drives in front of it until sonar sensor detected a minimum sensor distance, e.g. 20cm. Then the robot turns parallel to the wall, moves his sonar-head to the right detecting the distance to the wall and drives counter clockwise parallel to the wall balancing distance. A mapping-task records the compass and odometry data every second and calculate the polar coordinates to cartesian coordinates (x,y). The coordinates are written as “map.txt”-file. So you can use Excel or an other programm to draw the path which the robot had moved. In addition to that you can follow the path at the NXT-LCD-screen. I had to choose a scale for it, so you have to suit the scale to your room size.
If the robots touch sensor detected an obstacle the robot moves back and turn left for 90 degrees and continuous his explorer-duty allways running counter clockwise with wall to the right.
How to expect the end of path doesn’t suit exactly to the beginning because of inaccuracies of compass and odometry measures.
Have fun to test my programm and let me know if you have some hints for me.
Do anybody have experience with a hitechnic accelerator-sensor to measure/calculate the distance by integrating? Is this method an alternative and more accurate as odometry data?

Merry chrsitmas!

Sigtrygg

Mon Dec 23, 2013 11:42 am
Rookie

Joined: Mon Apr 08, 2013 12:50 pm
Posts: 30
Re: Roomexplorer and mapping NXT-robot
Here you can take a look at the construction of robot...
The upper sensor is the compass sensor.
Let me know, if anything doesn't work.

Bye,

Sigtrygg

 Attachments: File comment: Picture 2 CIMG3125.JPG [ 234.23 KiB | Viewed 7839 times ] File comment: Picture 1 CIMG3122.JPG [ 232.57 KiB | Viewed 7839 times ]
Sat Dec 28, 2013 5:16 am

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3618
Location: Rotterdam, The Netherlands
Re: Roomexplorer and mapping NXT-robot
Hey there!

This is a great project. Do you think you could make some screenshots of your Excel sheet/NXT screen so we can see what it looks like in action? I'd love to see a video of it.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]

Sat Dec 28, 2013 5:49 am
Rookie

Joined: Mon Apr 08, 2013 12:50 pm
Posts: 30
Re: Roomexplorer and mapping NXT-robot
Hello Xander!

Thank you for response.
At the first picture you can see the screenshot of datasheet made with Open Office. The second Picture is the LCD-screen of NXT.
The inaccuracy between start and end is about 22 cm. Maybe there is a method to reduce this?!

Bye,

Sigtrygg

 Attachments: File comment: Screenshot of data-sheet Screenshot open office.png [ 261.56 KiB | Viewed 7822 times ] File comment: LCD-Screenshot LCD-Screenshot.jpg [ 276.5 KiB | Viewed 7822 times ]
Sat Dec 28, 2013 12:54 pm
Guru

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Re: Roomexplorer and mapping NXT-robot
could you pls make your photos smaller, e.g. 320x240 ? For the moment, I ain't see nothing yet ...

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)

Sat Dec 28, 2013 2:52 pm

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3618
Location: Rotterdam, The Netherlands
Re: Roomexplorer and mapping NXT-robot
Buy a bigger monitor The size you suggest is far too small to see anything in great detail.
I am reading this in a non-full screen window on 1080p sized screen and it looks fine.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]

Sat Dec 28, 2013 2:57 pm
Guru

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Re: Roomexplorer and mapping NXT-robot
but maybe 640x480 will do as well.

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)

Sat Dec 28, 2013 3:12 pm
Rookie

Joined: Mon Apr 08, 2013 12:50 pm
Posts: 30
Re: Roomexplorer and mapping NXT-robot
Hello community!

I have made a little video of the roomexplorer NXT robot, now.

You can watch it at:

Bye,

Sigtrygg

Wed Jul 09, 2014 12:33 pm

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3618
Location: Rotterdam, The Netherlands
Re: Roomexplorer and mapping NXT-robot
That is really awesome, nice job!

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]

Thu Jul 10, 2014 1:34 am
Rookie

Joined: Mon Apr 08, 2013 12:50 pm
Posts: 30
Re: Roomexplorer and mapping NXT-robot
Thank you!

I am glad, that you like it. There aren't many People who are able to evaluate such project in my surroundings

Thu Jul 10, 2014 4:52 am

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3618
Location: Rotterdam, The Netherlands
Re: Roomexplorer and mapping NXT-robot
Your robot has been pimped out on the ROBOTC blog and MINDSTORMS group on Facebook

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]

Sat Jul 19, 2014 10:04 am
Display posts from previous:  Sort by
 Page 1 of 1 [ 11 posts ]

#### Who is online

Users browsing this forum: No registered users and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    2014 Robotics Academy Summer of Learning    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge