Texas Ranger, a WRT54GL R.O.V. (updated -interface pics)

This is a Linksys WRT54GL wifi operated ROV. It is managed using one of the available serial ports of the router. It is connected to a 16f876 PIC wich controls telemetry, onboard nunchuck readings and manages servo position, laser and cannon firing sending data to a second PIC. both PICs and nunchuck are using the same I2C bus.

 

Onboard Nunchuck is used to turret tilt compensation, reading data by first PIC, and sending servo position to the second one.

A background running, cross-compiled C program for OpenWRT is used to communicate from router to PIC.

Laser pointer makes possible distance measurements. Another program, running in router, reads image data from IP Cam, decompress JPEG format, using libjpeg lib, locates the most bright pixed in a defined area, and estimates the distance by trangulation. Data is showed drawing a canvas HTML5 powered green cross on the web interface. You can view this in the attached video.

 

Remotely Operated vehicle via Wifi. Web interfaced, and distance measurement.

  • Actuators / output devices: 4 motors, cannons, turret, tilt compensation
  • Control method: web, ajax
  • CPU: MIPS wrt54gl, x2 16f876
  • Operating system: Linux OpenWrt
  • Power source: x2 batt cells. x2 18654 each
  • Programming language: C for mips, c for PIC, javascript, bash
  • Sensors / input devices: nunchuck, Ip camera
  • Target environment: indoor, sentinel, distance, measurement

This is a companion discussion topic for the original entry at https://community.robotshop.com/robots/show/texas-ranger-a-wrt54gl-r-o-v-updated-interface-pics

Good job!!it’s too bad you

Good job!!

it’s too bad you don’t show a video of the canon airsoft in action.

 

Thanks Pradelou!.Indeed

Thanks Pradelou!.

Indeed video shows cannon in action, but sadly they came out too fast to be captured by my poor quality camera. :frowning:

 

Will try to make another video with other camera, and other camera operator xD

Awesome

WRT hacking: ting!
Nunchuck integration: ting!
Campus Party: ting!
processing on board the WRT: ting!
web interface: tingting!
webcam laserdot triangulation: are you kidding us!?! TING!

Feel free to post as many videos, photos, circuits as you can.

nicko_39

ese trofeo lo hice yo llevo buscandote todo el verano si no te acuerdas de mi fui el que te rete al pachi

 

I did that trophy I looking for you all summer if you remember me I was the challenges you to pachi

yeah!

Hey tio! Claro que me acuerdo de ti!. Como estas?. Ese trofeo está en un lugar privilegiado de mi salón jaja. Te mando un privado con mi mail y me cuentas como te va.

Pachiiiiiiiii!

 

Hi! guy! Of course I remember you. How are you?. That trophy is on a privileged site of my living room!. I will send you a private message and tell me how about you.

canons.

From where did you get the cannons of your bot?

Nice rov!

Hey, very nice R.O.V.

thanks for the inspiration for my own robot!.

also nice incoming frames there on the web browser.

Q: what kindda battery are you using for the linksys router? and the microcontroller?motor?

Had a plan of putting a linksys on my robot to but it’s rated for 12Volt right?

Both cannons are cheap BB

Both cannons are cheap BB guns mounted backwards, and covered with cardboard. You can see the entire cosntruction process in my blog:

http://taiksonprojects.blogspot.com/2010_09_01_archive.html

 

Will explain this on LMR too.

 

Power supply

Hi eclipse!

My ROV uses a total of 4 18650 Li-Ion Batteries, in two groups. One of them powers the router, control board and IPCam. The other one powers the rest of the components.

Because of it doesn’t exist an affordable battery holder, I builded two, from battery protectors.You can see how I made in my blog:

http://taiksonprojects.blogspot.com/2010/10/alimentado-la-bestia-portabaterias.html

Also it can be powered by a unique power supply, using a 100W/15V laptop adapter, and some diodes in serie to drop voltage.

Linksys WRT54GL can be powered from a wide range of voltage, it works internally at 3.3V, so it has a power regulator. 5 to 12V (even a bit more, but not tested personally!) power supply should be OK.

Hope you got the desired inspiration!

 

 

A word about powerrrrr

"Since we are all obsessed with the stuff. This router is fed with a DC power source. Officially it should get 12 V, but any voltage between say 7 and 15 Volt will do. The board has three DC-DC converters for three different voltages: 1.8, 3.3 and 5 V."

[link]

certainly got some

certainly got some inspiration.

2 groups of 2 (in total 4) so 7,4V each ? exactly what is was planning (although i’ll try to use a standard batterypack).

i checked out the rest of your blog… nice photos of the detailed construction and campus party (where more lmr people have been).

clever thinking on the bbguns. i’m interrested in hearing more about that (and my spanish isnt that good).

if only those thing wouldnt be prohibited in the netherlands.

 

How did you measure the

How did you measure the distance using the laser, and how accurate is it? Great work btw.

batt

2 groups of 2 (in total 4) so 7,4V each ?

Correct, but take into account that each group gives 8,4 at full charge. Adv: Find the on-board protected batteries.

for BB guns you could try to buy them online but I have not much idea :(. Btw cheap bb guns (~=10€) are not specially armfull.

Mainly you take one of them, and cut every part that it is not necessary to shot, including ammunition loader :). You have to put a little tube to allow ammunition to drop into shot magazine. Cover the gun, and turn backward. You have now much more space for ammunition, and will drop into shot magazine at the same time you open fire. The higher voltage you provide, the faster will be the shooting.

 

 

 

laser

That’s a good question! :slight_smile:

I have builded a C program for OpenWRT and loaded it into WRT54GL. That program connects a socket to IPCAM and reads Motion-JPG stream. Using libjpeg decompresses the downloaded image frame, and reads RGB values for a predefined area. Then searches the most brigth pixel in that area (higher RGB value), an returns it’s position.

Reverse AJAX returns that position to web browser, and javascript function returns distance estimation. It has a predefined array that connects distances to pixel positions, maded by observation. Not defined values, are calculated by linear function, but it is also possible to make the job by triangulation, if you know the lens camera geometry.

Accuracy is ±5% but it will vary a lot if the laser o camera position has changed. (Caused by an impact or something). Note that if you choose the predefined points, accuracy will be 100% if real distance matches those points, and less if not.

To sum up, the most important thing is that hard job is done by router CPU and only cosmetic stuff is done by web browser. It is specially usefull if I want to implement some future IA behaviour, without a computer. Performance is about 2-4 FPS, and display delay 0,5-1 secs more or less.

 

 

 

thanks

I just find them so cool and that why I asked .

yeah!

I want to make a good video with cannons firing, but I don’t have a good enough camera to capture ammunition speed :frowning:

Camera refresh rate

Do you think that you could replace the camera and get a better refresh rate? I know the router is faster than 2-4FPS transfer rate, right??? I’ve been designing a very similar robot and think that offloading camera duties to the router is a must, what if you combined a gumstix CPU with the router and ditched the PICs, faster frame rate? or new router?

thanks, Andrew

Hi Andrew!!!,That’s tricky

Hi Andrew!!!,

That’s tricky subject, no doubt, because video is intended to be sent using router wifi to a web browser. I have been breaking my brain with this problem for a long time :slight_smile:

CPU router is not used to see the image on the web interface (the html points directly to IP camera using an iframe, inside control html). Tecnically there is no request to router web server to see the image, and fps are near factory specs. No problems at this point.

Problems start when I want to read image to estimate distances. I must make another http request to IP camera, this time done in background by router, and then, process the image data and send white dot position with the rest of the telemetry. In that case there are two guys accessing IP camera, me with firefox, and router searching the white dot.

You are right, using another camera, maybe simple rgb, and process signal by other ways we could achieve more fps, but we still have to solve the problem of viewing the image using only wifi and web.

Any idea?

 

 

plans

Can you give me the plans how to build this vehicle? and when i went to the makers faire, i saw this rover base that had the sweetest suspension in the world. think about giving the vehicle a better suspention

Please give me the plans. i really want to use your idea thanks.