RC Car managed by Java leJOS NXJ

This project tries to manage any RC Car which you can purchase in your city using a NXT brick and a Lattebox NXTe.

2009/06/07
I am finishing a preliminar GPS navigation solution for leJOS project, but I have a problem to understand some value, azimuth.
In my tests I had some problems to understand the azimuth value which is returned by the method AzimuthTo in a Coordinates Object. AzimuthTo return an angle which is referenced with North pole.

In my tests I use a GPS point as goal:

Goal: 40.445049309324573,-3.4673066139221191
http://maps.google.com/maps?q=40.445049309324573,-3.4673066139221191

I give you a GPS point which is located on the street where I did my tests:

Current: 40.445049309324573,-3.4673066139221191
http://maps.google.com/maps?q=40.445049309324573,-3.4673066139221191

If you make a line bettween the both points, the line is on the street but azimuth give a value 144º so if the robot change the course to angle 144, so the robot would leave the street. I don't understand how to use the value 144. Is it neccessary to make any trigonomical calculation to find the solution?

I have made a doc about the problem and some questions:
http://www.juanantonio.info/jab_pdf_reader.php?pdf=COORDINATES.pdf&year=2009

I made some videos about the system:
http://www.youtube.com/watch?v=3nA0v8rrpXU
http://www.youtube.com/watch?v=FKh1TRWzigU
http://www.youtube.com/watch?v=ZJN38XfvmPo

Do you have an alternative calculus to make the azimuth calculus?
Do you undertand my problem?

2009/06/06
Today I begun to test my first GPS Navigator. Besides I have to improve the system which manage the steering maybe using PID or another technique...

http://www.youtube.com/watch?v=ZJN38XfvmPo

If you take a look the prototype, I have uploaded some pics in my Flirck account:

http://www.flickr.com/photos/esmetaman/sets/72157619259589605/

2009/02/29
This year I will use a new RC Car chassis, Maverick Strada model which I replaced some pieces, for example the speed controller. With this model, the place where is located NXT brick is more stable.

I have released a new gallery about this model:
http://picasaweb.google.es/esmetaman/LEJOSRCCAR2

NXTe allows me to control RC Servos and DC Motors easily. Currently I can go forward and backward. leJOS project has worked so hard to improve garbaje collector, to manage with NXT's CPU complex Java Programs.

I have released a new RC Controller. I am working on this tasks:

  1. Integrate GPS Subsystem
  2. Integrate Google Earth Support
  3. Improve autonomous subsystem
  4. Develop GPS Navigation
  5. Research Kalman Filter to make sensor fusion

I have published a map where you can see the place where I am doing the tests. I need a large area to test algorithms.

http://www.juanantonio.info/research/robotics/lejos/nxj/leJOSTrainingArea.htm

Further information here: http://www.juanantonio.info/jab_cms.php?id=228

Note: In my website, in the previous URL, it is possible to download a paper about the project.

 

Juan Antonio Breña Moral
www.juanantonio.info

Drive with an autonomous systems using ultrasonic sensors and GPS

  • CPU: LEGO MINDSTORMS NXT
  • Operating system: Java leJOS NXJ
  • Power source: 9V
  • Programming language: Java, leJOS (java for lego mindstorms)
  • Sensors / input devices: GPS, Ultrasonic sensors, RC Motor, RC Servo

This is a companion discussion topic for the original entry at https://community.robotshop.com/robots/show/rc-car-managed-by-java-lejos-nxj

GPS system? that’s really

GPS system? that’s really interesting! make sure to keep us updated!

 

ah, could you also add some detailed information about the way it works? it sounds nice. (the robot i mean not the gps)

Details about the project

Hi friend, in the website, I published a paper about the project. do you need more informacion? say me and I will help you.

http://www.juanantonio.info/jab_cms.php?id=228

http://www.juanantonio.info/jab_cms.php?id=230

 

cheers

 

Juan Antonio Breña Moral
http://www.juanantonio.info

i love it :wink: seems

i love it :wink: seems to be very fast and powerfull!!!

what will the GPS system do?

GPS Subsystem

Hi!

GPS System will be used to:

Extract GPS Data to use them with new leJOS GPS Navigator.

Besides I am testing JSR-179, javax.microedition.location API to calculate distances and azimuth.

Test it with the new example which I created: http://lejos.svn.sourceforge.net/viewvc/lejos/trunk/examples/DistanceTest/DistanceTest.java?revision=1770&view=markup

Tonight I created a new document in my website about the progress with GPS Navigator: http://www.juanantonio.info/jab_cms.php?id=238

In relation to the chassis, yes it is so much powerfull. I reduce the DC Motor speed, because I need to test my algorithms and it runs so fast! :smiley: Imagine if I lost my robot because he runs more than “Correcaminos”

Juan Antonio Breña Moral
http://www.juanantonio.info

very very interesting!!!keep

very very interesting!!!

keep up the good work!!! :wink:

Range

Hey mate, this is really nice and I have been looking how to do this for a while now. How far can this thing go? Does the RC car receive GPS co-ordinates and then just move towards the programmed target co-ordinates? Do you have a guide on how to do this? I would really like to make one!

Keep up the good wotk, take care

[email protected]

Project Status

Hi,

Currently with the low temperature in spain, this project is stopped for the moment, but I am doing many changes on it.

Currently leJOS project supports Mobile Phones to exchange data with Java Streams between a Mobile and a NXT brick (I have an example in leJOS SVN), then I will replace RC Controller 2 by a Mobile phone which. Integrated a GPS on the RC Car, but now I am going to integrate a S60 Mobile phone with a GPS Inside to balance the process between 2 CPUs.

On Facebook exist a group about leJOS project, if you are interesting about leJOS, join!

Do you have a NXT brick?

Juan Antonio Breña Moral
http://www.juanantonio.info

no i dont have a NXT brick.i

no i dont have a NXT brick.i would love to build 1 though. I want to interface it with a GPS device and program my robot to go to a location using the GPS to navigate. do you have a schematic for the basic layout of the system?

what is the range of the RC using the GPS?

By the way, have you ever thought of using a basic stamp 2 chip?

Hi mate, with a normal

Hi mate,

with a normal bluetooth connection a remote control has a 10-20m. of range but it is possible to send commands and the robot can go and come back to a distance to make a reconnection.

with arduino I know that exist a version with a bluetooth connection, then it is easy to connect with a GPS receiver with a SPP connection

I don’t use

|x

this kind of chip. I like to use Java.

Cheers.

 

Juan Antonio Breña Moral
http://www.juanantonio.info

damn, although it is

damn, although it is impressive, 10-20m range is rather short :frowning:

I would like to have a robot that constantly checks it position with GPS and then keeps moving to the programmed position :stuck_out_tongue:

There must be a way! :smiley:

GPS

Yes My robot has a GPS incluided inside, I tried to say that the robot communicated with a remote control with this range, but the robot could use GPS data without any remote control.

 

 

Juan Antonio Breña Moral
http://www.juanantonio.info

aah nice, so the robot could
aah nice, so the robot could find its own way from point A to poin B simply by navigating its way using the onboard GPS?

GPS Navigation

Of course friend!

Continue with your project, but with less than 200$ you can test NXT with Java leJOS a JVM

Good night from spain

Juan Antonio Breña Moral
http://www.juanantonio.info

hey m8, do connect the GPS

hey m8, do connect the GPS to the NXT brick or do you connect it to another chip/controller?

it looks like the NXT is just to control the servo’s

GPS connection

Hi,

NXT Brick make a BT connection with the GPS. I have to make another video with GPS Features. but now in spain the weather is bad, but no problem. Besides I have to write a paper about GPS with leJOS.

I have posted some papers about leJOS here:

http://www.juanantonio.info/jab_cms.php?id=146

 

Cheers

Juan Antonio Breña Moral
http://www.juanantonio.info

cool i cant wait for the

cool i cant wait for the video :smiley:

Are you studying robotics or is this just a hobby? I am studying software engineering and would like to start a degree in robotics when i have finished my current degree. As soon as my student loan comes though i will put some money aside to start building 1 of these! :stuck_out_tongue:

Is this right?

You enter GPS co-ordinates into the GPS, then the GPS sends the DATA via bluetooth to the NXT brick and then the NXT brick controls the servos to make the robot move to the GPS co-ordinates that you entered?

I’m hoping its something like that :stuck_out_tongue: I don’t want to have any link to the robot once it has been given the co-ordinates :smiley:

By the way, its SUPER CRAP weather in london :stuck_out_tongue:

WHYYYYYYYYYYYYYYYYY!!!
I dont get why people skewer the perfectally fine (not to mention understandable) NXT program…

GPS Accuracy

Hello,

It looks like you have a very interesting project. I am wondering about the accuracy of GPS. It is my rough understanding that you can only expect 3-5 meter accuracy for GPS. If you are trying to follow a path, it could easily be 5 meters to one side or the other. Am I incorrect in understanding today’s GPS accuracy, or is that good enough for your project?

Tron

**GPS accuracy **

Yes, you have reason, but i will incorporate a functions to improve the accuracy.

Cheers