Author Topic: PS2 Controller on a BS2 for Underwater ROV  (Read 7733 times)

0 Members and 1 Guest are viewing this topic.

Offline ceruleanplainsTopic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
  • Got Wumpus?
    • Project Log
PS2 Controller on a BS2 for Underwater ROV
« on: August 08, 2009, 08:37:42 AM »
Figured I'd post this to show that the BASIC STAMP 2 has the ability to also do the PS2 control, and contrary to some sources, it handles the left analog joystick fine.

This video shows the debug screen to compare with the Axon demo.
[youtube] http://www.youtube.com/v/Ay0KCS-3RaA&hl=en&fs=1 [/youtube]



This image shows the BS2 setup hooked into a LCD screen to show the values while not hooked into the computer and controlling the motors.


The video to demonstrate the setup:
[youtube] http://www.youtube.com/v/zOx66FrmetM&hl=en&fs=1[/youtube]

This is the operational version at poolside.  Note I forgot to turn on the MCU before starting control, then I turn it on and it works fine.
[youtube] http://www.youtube.com/watch?v=lef0erB1C4o [/youtube]

Here Inky is struggling against the tether to pick up a ring on the bottom.
[youtube] http://www.youtube.com/watch?v=phFaZNUk4FY[/youtube]

This time it does better after it's been straightened and the retrieval hook is tightened and lowered.
[youtube] http://www.youtube.com/watch?v=cM9LXy_WUBc [/youtube]


So going forward, I'm going to redesign the frame a bit to hold two vertical engines and install an accelerometer, an onboard camera, LEDs, and a compass for semiautonomy.  The objective is that the robot will detect the ring and alert the operator with a strobing LED.  The robot will also have finer attitude control by using control guidance to PWM the motors to maintain a heading.  I will also attempt to do some retrievals autonomously.



« Last Edit: August 08, 2009, 06:47:10 PM by ceruleanplains »

Offline damanfb

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #1 on: September 01, 2009, 02:59:06 PM »
Would it be possible to get some more information on this project from you such as more detailed description of your process and some source code? 

I am working on a outdoor, remotely-operated vehicle, and I am trying to buy as little as possible for this project.  I have some old PS2 controllers as well as the original PS controllers and a BS2.  I have seen some information about using the Arduino with PS2 controllers but I do not want to buy the Arduino if it will work with the BS2 I already have.

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #2 on: September 01, 2009, 11:06:52 PM »
it would be really good if you could write a tutorial on this project as i am really interested in giving it a go.

great work as well

Offline blackbeard

  • Supreme Robot
  • *****
  • Posts: 575
  • Helpful? 4
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #3 on: September 02, 2009, 05:51:31 AM »
hey that's awesome! how did you get it to be neutrally buoyant
"sure, you can test your combat robot on kittens... But all your going to do is make kitten juice"

First step: Build androids with AI
Next step: Give them vaginas

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #4 on: September 02, 2009, 06:06:25 AM »
it looks as if it is the two pieces of foam running end to end.

it would be really good if you could write a tutorial on this project as i am really interested in giving it a go.

I am more so interested in the ps2 control side of things, althought it would be awesome to read about the entire project.

Even the shematics you used for the ps2 control would be awesome to have.

Offline ceruleanplainsTopic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
  • Got Wumpus?
    • Project Log
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #5 on: September 02, 2009, 07:13:38 AM »
The whole project is layed out pretty much across my website links / project logs at www.ceruleanplains.com so please read more there and ask questions if you like.

The project is to support a 9th grade science / robotics curriculum at a local high school.  They were just using switches to control their ROVs - so I beefed it up some and continue to do so.  Currently I'm working on computer vision underwater for color detection.

This project cost less than $100 if you have the BS2 already in hand and depending on how you worked things, could cost less than $100 total even if you didn't.  It was largely based on reuse of available components.

Neutral buoyancy was achieved by measuring the mass of the vehicle, measuring the mass of the water it displaced in a tub.  Then measuring the mass of buoyant material & calculating how much mass of water it would displace.  I then did some calcs on how much I needed.

I have since improved the balance of the vehicle and added an LED light on the front but that information has yet to be published.






Offline ceruleanplainsTopic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
  • Got Wumpus?
    • Project Log
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #6 on: September 02, 2009, 07:16:48 AM »
it would be really good if you could write a tutorial on this project as i am really interested in giving it a go.

great work as well


thanks - means a lot!  i'll see what I can do about a tutorial.  you might get a crude idea from my website how to build the vehicle itself and at least what all went into it.  a refined tutorial itself won't be done probably until January so I can complete these near-term builds on all three of my vehicles.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,704
  • Helpful? 173
    • Society of Robots
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #7 on: September 02, 2009, 09:50:45 AM »
Quote
hey that's awesome! how did you get it to be neutrally buoyant
My method . . . I get some pink insulation foam (the same high-density stuff I used for my robot boat), then carve it to fit in/around my robot fish. I then shave it away until my fish becomes neutrally buoyant.

Don't use cheap packing foam as it absorbs/holds water. It'll change buoyancy over time (a bad thing :P).

Offline gaurav.p

  • Robot Overlord
  • ****
  • Posts: 142
  • Helpful? 0
  • Go robotics
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #8 on: September 02, 2009, 11:12:41 AM »
awesome project
Big Things Come In Small Packages!!!

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #9 on: September 03, 2009, 02:06:15 AM »
Well, i have not been reading your web site for long but i have to say it is one of the best websites if not the best web site i have come across as it is remarkably indepth and you  cover every thing.

In a nut shell your website is brilliant. Well done

Offline ceruleanplainsTopic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
  • Got Wumpus?
    • Project Log
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #10 on: September 03, 2009, 03:25:24 PM »
Quote
hey that's awesome! how did you get it to be neutrally buoyant
My method . . . I get some pink insulation foam (the same high-density stuff I used for my robot boat), then carve it to fit in/around my robot fish. I then shave it away until my fish becomes neutrally buoyant.

Don't use cheap packing foam as it absorbs/holds water. It'll change buoyancy over time (a bad thing :P).

yep - basically you're looking for materials that displace less mass in that volume than the mass of water in that volume.

so admin here is specifically talking about some materials can change those properites in the marine enviroment including:

+ lower density foam (such as I used);  this will compress as depth increases thus reducing the volume of water it displaces.  my ROV is only for 10' so that's fine < 1 atm.

+ any watertight container of air, mineral oil, inert gas, etc.  you can fill a pipe or other volume and displace water with a lighter mass of any kind.  if it's hollow you may have mechanical buckling at depth.

to be fair I did mostly just screw around with materials on the vehicle to see what worked and what didn't.  then i went back and actually thought about it.  i do some relatively quick back of envelope things when i add new components so my center of gravity (CG) and center of buoyancy (CB) are relatively stable and the net buoyant force balances out with the net weight










Offline ceruleanplainsTopic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
  • Got Wumpus?
    • Project Log
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #11 on: September 03, 2009, 03:28:16 PM »
Well, i have not been reading your web site for long but i have to say it is one of the best websites if not the best web site i have come across as it is remarkably indepth and you  cover every thing.

In a nut shell your website is brilliant. Well done

many thanks again.  the objective of the site was to demonstrate to the students what an engineering journal looks like.  I have a cadre of offline materials also that i don't upload, but mostly it's public in nature.  the top level concepts are all represented however as far as i have time to do so.

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #12 on: September 06, 2009, 08:25:16 PM »
where did you get the circuits for the ps2 interface, did you find an onpensource site or did you design it your self

if you found a site to do with this could you please give a link, or if you designed it (awesome) could you please point me and other interested people in the right direction ubtil you are able to document it in further detail

Offline ceruleanplainsTopic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
  • Got Wumpus?
    • Project Log
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #13 on: September 11, 2009, 12:01:13 PM »
do a search engine search of: nuts and volts PS2

The article is called Nuts & Volts #101 - PlayStation Control Redux

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #14 on: September 11, 2009, 06:07:10 PM »
great thanks very much for the link ;D

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: PS2 Controller on a BS2 for Underwater ROV
« Reply #15 on: September 11, 2009, 06:08:27 PM »
There is no link ;D just a title.
Heres the article:
http://www.parallax.com/dl/docs/cols/nv/vol4/col/nv101.pdf
Howdy

 

SMF spam blocked by CleanTalk