View unanswered posts | View active topics It is currently Sat Sep 20, 2014 2:47 pm






Reply to topic  [ 11 posts ] 
Mapping using ultrasonic sensor 
Author Message
Rookie

Joined: Tue Jul 17, 2012 5:57 am
Posts: 5
Post Mapping using ultrasonic sensor
I am trying to implement Mapping (in legos NXT) using the ultrasonic sensor and I dont know how to display the map on my pc. Since I Just started programming I am not well with it. Can any one help ?


Wed Jul 18, 2012 5:42 am
Profile
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Mapping using ultrasonic sensor
I don't know of any simple examples, but here is a more complex one;
http://penemunxt.blogspot.com/2009/12/updates.html

It uses Java and LeJOS. At the moment, I can't seem to get to the source, but I know I have before, so maybe it's just a temporary bug.

If you do find something less complex, please tell about here.

_________________
Mike aka Spiked3
http://www.spiked3.com


Wed Jul 18, 2012 8:10 am
Profile
Expert

Joined: Wed Jun 30, 2010 7:15 am
Posts: 181
Post Re: Mapping using ultrasonic sensor
If you just started programming, this might not be something you should attempt right away, because it involves some pretty difficult things. Off the top of my head, you'd have to:

- Know the robot's position at all times to get an accurate map
- Use the robot's position (x/y on a grid plus direction it's facing in) combined with the ultrasonic sensors to gather map data
- Think of a format to store that data in
- Use Bluetooth/ WiFi to get the data to your PC
- Write a program on your PC to receive the data and display it

I'm not saying that it's impossible, but it is pretty difficult. But ff you do want to go on with it, can you tell us more about your project? Like what the robot looks like, what sort of areas you expect for the robot to map, what sensors you have available, etc.

_________________
leonoverweel.com


Wed Jul 18, 2012 11:33 am
Profile WWW
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Mapping using ultrasonic sensor
the link to the project source i mentioned above is working now; http://code.google.com/p/penemunxt/source/checkout

I am at the moment working on a tutorial project of the steps DiMastero mentioned, but it will be a while before its ready.

Yes, it is pretty difficult :) But i'm getting there. I tried to attach some pics, but

"Sorry, the board attachment quota has been reached."

so for now;
http://www.spiked3.com/_NI35788.jpg
http://www.spiked3.com/pose.png

The hitech compass, will be replaced by a Mindsensor AbsoluteIMU when they are available.

http://www.mindsensors.com/index.php?mo ... tion=62:62

_________________
Mike aka Spiked3
http://www.spiked3.com


Last edited by Spiked3 on Wed Jul 18, 2012 3:16 pm, edited 1 time in total.



Wed Jul 18, 2012 2:59 pm
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post Re: Mapping using ultrasonic sensor
I think Miki is doing something similar to this. Anyone seen him lately?

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Wed Jul 18, 2012 3:13 pm
Profile WWW
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Mapping using ultrasonic sensor
http://www.youtube.com/watch?v=fsFy16JF ... e=youtu.be

_________________
Mike aka Spiked3
http://www.spiked3.com


Wed Jul 18, 2012 6:56 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: Mapping using ultrasonic sensor
Spiked, can you drop a note to support@robotc.net regarding the quota? I can't fix that but they can.

- 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 19, 2012 1:01 am
Profile WWW
Rookie

Joined: Tue Jul 17, 2012 5:57 am
Posts: 5
Post Re: Mapping using ultrasonic sensor
The robot is Pretty simple with a fixed ultrasonic sensor and two wheels fixed. At the moment What I'm trying is just display a map or trajectory on the screen that the robot is traversing. I tried saving the values of sensors in an array and then accessing it.
The issue i faced is array is not getting working for some reason. and I dont know how to display the array as well.


Thu Jul 19, 2012 1:26 pm
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:44 am
Posts: 439
Location: Pittsburgh, PA
Post Re: Mapping using ultrasonic sensor
Spiked3 wrote:
I tried to attach some pics, but

"Sorry, the board attachment quota has been reached."


Can you try again and see if you still have an issue?

_________________
Vu Nguyen
Software Training Development Team | Webmaster
Need more support? Use the ROBOTC Ticketing system

Robotc.net| Robomatter Store | Robotics Academy | CS2N


Fri Jul 20, 2012 4:25 pm
Profile
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Mapping using ultrasonic sensor
try again; seems to be good, thanks!


Attachments:
untitled.png
untitled.png [ 219.54 KiB | Viewed 3116 times ]
pose.png
pose.png [ 102.94 KiB | Viewed 3116 times ]

_________________
Mike aka Spiked3
http://www.spiked3.com
Fri Jul 20, 2012 5:11 pm
Profile
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Mapping using ultrasonic sensor
nish2824 wrote:
The robot is Pretty simple with a fixed ultrasonic sensor and two wheels fixed. At the moment What I'm trying is just display a map or trajectory on the screen that the robot is traversing. I tried saving the values of sensors in an array and then accessing it.
The issue i faced is array is not getting working for some reason. and I dont know how to display the array as well.


Just an FYI; viewtopic.php?f=1&t=4484

could that be (part of) your problem?

_________________
Mike aka Spiked3
http://www.spiked3.com


Fri Jul 20, 2012 5:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.