Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Stamps In Class > Ping)))Dar - a Radar Style Display  Forum Quick Jump
 
New Topic Post Reply Printable Version
33 posts in this thread.
Viewing Page :
 1  2 
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

Jessica Uelmen (Parallax)
Forum Moderator



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Oct 2008
Total Posts : 138
 
   Posted 3/13/2009 3:37 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Phew...

Thanks Whit! It's those little things that just slip by... All should be right with the forum post now.

Jessica


Jessica Uelmen
Education Department
Parallax, Inc.

Back to Top
 

roadrunner3g
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Nov 2004
Total Posts : 36
 
   Posted 3/19/2009 12:37 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
I would like combine ping-dar with boe-dar. the ping uses sound and the boe-dar uses IRs and wheel encoders with a separate on screen interface for mapping. I would like to use p-basic debug terminal and the boe-dar interface at the same time, using the serial cable. basically 1 PC 2programs 1cable 1 BS2. what I want to know is will it work, and what to watch out for? just think a boe-bot that's big enough to carry a laptop.
Back to Top
 

Jessica Uelmen (Parallax)
Forum Moderator



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Oct 2008
Total Posts : 138
 
   Posted 3/20/2009 8:21 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Hi roadrunner3g,

Theoretically, it should be possible, but you'll want to look out for delays. You may not get as good of a "sweep" with PING)))Dar since the program won't be able to move as quickly through the main program. Using a separate interface to display Boe-Dar results will take more processing time, possibly leading to some missed displays from both PING)))Dar and Boe-Dar.

But this shouldn't discourage you from trying! First try combining each of the programs and see what happens, if there are any problems, identify what the issues might be and then modify the code to account for those issues. You may want to run two Ping)))Dar sweeps in order to get a better depiction of the area.

Happy Developing!

Jessica


Jessica Uelmen
Education Department
Parallax, Inc.

Back to Top
 

tronsnavy
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2009
Total Posts : 63
 
   Posted 10/13/2009 7:32 AM (GMT -8)    Quote This PostAlert An Admin About This Post.

Jessica, Andy,

I have converted your PING)))Dar program from BS2 Basic to Propeller (spin).  Actually, I have to give a lot of credit to LOCALROGER.  He wrote the scailing code for the triginomic functions.  If you want, I can post here or on the Propeller thread.  I have a slight timing problem that I should have fixed soon.  I also have to add a schematic at the beginning of the top object and add a lot of comments.   I unloaded much of the scanning and Pinging into a cog.  The math and PST plotting is done in cog 0.  Hopefully, I will have it ready by this weekend (really busy at work).  Have a good one.

Bob

 

 

Back to Top
 

tronsnavy
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2009
Total Posts : 63
 
   Posted 10/14/2009 5:00 PM (GMT -8)    Quote This PostAlert An Admin About This Post.

I finally converted "PING)))DAR -A RADAR STYLE DISPLY" to spin (from BS2)... if anyone is interested.  I have added some bullets about the program below.

- I originally was going to use FLOAT32 math for the polar to Cartesian procedure, but found that integer math (using scaling) prove to be faster (BIG THANKS TO LOCALROGER).  Understand, if you want to use FLOAT32, it will still work.  If you want more info on using scaling, see the post I started in the "propeller" forum.  Title is "Debug, and plotting a "*" at a specific location".  Look for a post by LOCALROGER.  The beginning of this thread also explains it very well (THANKS JESSICA AND ANDY).

- If you want, you can use the scan routine for a robot.

- All math and plotting is done in the top object and the scanning/ranging is done in a cog.  I use pointers to read the values from the cog ("RANGE AND PINGDIR").

- Ensure you power ping and ping_servo with a good +5 volt supply.  Otherwise ping might just stop scanning without explanation.

- The whole project consists of 4 objects; "radar1", "FullDuplexSerialPlus", "ping_sweep_range", and "ping". 

- There are a few constants that you will have to modify... the first is in "radar1"... the value of "410", which is the value that corresponds to 1 msec and moves MY servo to 0 degrees, you will have to change to match your 0 degrees.  Just plug in some values around 410 and see which one gets you closest to 0 degrees. 

- The second change is in the object "ping_sweep_range".  Change the con "LimitRight" to the value you used to replace my value of 410 (above).  You will also have to change "LimitLeft = 2330".  This is the value that corresponds to 2 msec and moves MY servo to 180 degrees.  Once again, plug in some values (around 2330), and see which value gets you closest to 180 degrees.

- THIS IS IMPORTANT... YOU WILL ALSO HAVE TO CHANGE YOUR INCRIMENT VALUE (AND ANY VALUE of 1920 IN "radar1") IF THE DIFFERENCE BETWEEN LIMITRIGHT AND LIMIT LEFT DOES NOT EQUAL 1920.  If you have questions about this, please PM me, but you should be able to figure it out if you think about it.

- Schmatic is in top object ("radar1").  I used P0(servo) and P1(ping).  If you use different values, ensure you change them in both "radar1" and "ping_sweep_range"

- One last thing... when you press F10 (or F11), you have a few seconds to press enable on PST.  Don't for get to "ENLARGE" the display (top right).

- I intend to use the scanning procedure on my bot.  I would not have been able to do this if previous documentation had not been complete.  Thanks again Jessica and Andy.

Have a good one.

Bob



File Attachment :
radar1 - Archive [Date 2009.10.14 Time 21.01].zip   11KB (application/x-zip-compressed)
This file has been downloaded 10 time(s).
Back to Top
 

tronsnavy
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2009
Total Posts : 63
 
   Posted 10/16/2009 5:54 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Found out that slowing the "plotting process" even further provided a better display.  Also, try my orginal values (left, right) before changing your own.  Your servo my be very close to mine.  Will provide more info as it becomes avaliable.
Bob
 

File Attachment :
radar1 - Archive [Date 2009.10.16 Time 21.51].zip   11KB (application/x-zip-compressed)
This file has been downloaded 10 time(s).
Back to Top
 

tronsnavy
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2009
Total Posts : 63
 
   Posted 11/2/2009 3:40 PM (GMT -8)    Quote This PostAlert An Admin About This Post.

If you have used this program, did you have any difficulty?  Been about a month.... decided to check back for feedback.... been working on PASM projects and haven't had time to check. 

Anyway...

 

- I know that the variables could be more user friendly?

- I know that "Stamps In Class" is probably not the right forum (put in Propeller Forum?)... and maybe add to OBX as an example of "POLAR to CARTISIAN" and "USE OF SCALING (with explanation)?

- Also know that the "scaling" could use more explanation?

 

Provide feedback if you think the above recommendations need to be addressed or if you think something else needs to be addressed.  Thanks.

 

Bob

Back to Top
 

Redd Dawg
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jun 2009
Total Posts : 18
 
   Posted 11/10/2009 11:14 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
So what we need now is two discs that maintain the three contacts between the Ping))) and the wire, so we can have continuous rotation Ping)))dar.


Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
33 posts in this thread.
Viewing Page :
 1  2 
 
Forum Information
Currently it is Saturday, November 21, 2009 11:25 AM (GMT -8)
There are a total of 393,853 posts in 55,536 threads.
In the last 3 days there were 84 new threads and 704 reply posts. View Active Threads
Who's Online
This forum has 17692 registered members. Please welcome our newest member, old guy.
55 Guest(s), 17 Registered Member(s) are currently online.  Details
Siri, MichelB, Kenny Gardner, Peter Jakacki, keith_kw, Jay Kickliter, Mike Green, Shawn Lowe, Luis Digital, dMajo, Harley, Rick Brooks, Beau Schwabe (Parallax), SRLM, Tubular, ERM, Toby Seckshund