Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using A PS3 With The cRio (http://www.chiefdelphi.com/forums/showthread.php?t=85690)

biojae 06-05-2010 00:06

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by davidthefat (Post 960464)
Now, that is a good idea, but think of the rules on motors, if teh servos have to be controlled by the crio and the PC does imaging, they would have to communicate really well then... The cRio sends a request to process image and the position of the servo to the pc, the pc does its job, tells crio what do do. Eh, its possible

That is how the cmucam's gimble was controlled.
There should be enough throughput in whatever medium that you are communicating with the cRio to send two floating point numbers (the pan -1 to 1, and the tilit -1 to 1).

ex: processed data, pan servo val, tilt servo val

this shouldn't be a problem because you are already communicating with the cRio, right?

davidthefat 06-05-2010 00:10

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by biojae (Post 960465)
That is how the cmucam's gimble was controlled.
There should be enough throughput in whatever medium that you are communicating with the cRio to send two floating point numbers (the pan -1 to 1, and the tilit -1 to 1).

ex: processed data, pan servo val, tilt servo val

this shouldn't be a problem because you are already communicating with the cRio, right?

Its all on paper, just coding with paper and pencil, Have the image class all made up, got the pseudo code for communication... now I need the actual classes:D :p :rolleyes:
'

edit: I know how to use the serial, just want to use ethernet, 1gb of info per second? I can just let that go

biojae 06-05-2010 00:15

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by davidthefat (Post 960467)
Its all on paper, just coding with paper and pencil, Have the image class all made up, got the pseudo code for communication... now I need the actual classes:D :p :rolleyes:
'

edit: I know how to use the serial, just want to use ethernet, 1gb of info per second? I can just let that go

Well, the compactRIO only has 10/100 mbit/sec ethernet ports, so not quite a gig/sec

and are you going to use axis 206 (and its replacement) cameras on the coprocessor?
if so, look up mjpeg. that is the protocol on which they send the images over ethernet

davidthefat 06-05-2010 00:18

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by biojae (Post 960469)
Well, the compactRIO only has 10/100 mbit/sec ethernet ports, so not quite a gig/sec

and are you going to use axis 206 (and its replacement) cameras on the coprocessor?
if so, look up mjpeg. that is the protocol on which they send the images over ethernet

Not I will be using USB cameras, so I was just looking to send raw data through the ethernet

biojae 06-05-2010 00:21

Re: Using A PS3 With The cRio
 
Do you have a camera in mind?

Most USB cameras that I have seen have been primarily webcams, and don't have very good resolution, or high framerate.

Edit:

As far as communication over ethernet to the cRio goes, implementation details can be found by looking through the 2CAN driver source. That can be found at Firstforge.
Firstforge 2CAN repository
Login is required

davidthefat 06-05-2010 00:46

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by biojae (Post 960471)
Do you have a camera in mind?

Most USB cameras that I have seen have been primarily webcams, and don't have very good resolution, or high framerate.

Edit:

As far as communication over ethernet to the cRio goes, implementation details can be found by looking through the 2CAN driver source. That can be found at Firstforge.
Firstforge 2CAN repository
Login is required

http://www.cellularfactory.com/lapto...108185&eng=fro

Found that, may be will only need 2

biojae 06-05-2010 00:58

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by davidthefat (Post 960479)
http://www.cellularfactory.com/lapto...108185&eng=fro

Found that, may be will only need 2

Wow, that is cheap for such a nice camera!

here is a tutorial for an omni directional camera:
http://dasl.mem.drexel.edu/Hing/tuto...ew_omnicam.htm

davidthefat 06-05-2010 01:06

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by biojae (Post 960480)
Wow, that is cheap for such a nice camera!

here is a tutorial for an omni directional camera:
http://dasl.mem.drexel.edu/Hing/tuto...ew_omnicam.htm

thanks for the link

theprgramerdude 06-05-2010 20:58

Re: Using A PS3 With The cRio
 
Considering that the PS3 will have to be hooked up to the control board with a 20 amp breaker slot, this has just become a power-usuage problem. I imagine that it may be possible if the breaker was dipped in liquid nitrogen prior to the match, in order to cheat the power use, but I don't think it would last long, and there would also have to be a regulator to give it the proper juice (one that can handle extreme voltage drops common on the robots).

Edit: apparently the PS3's newer models use far less than I expected, even after upgrades, but 60 watts does not seem like a logical figure.

davidthefat 06-05-2010 21:14

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by theprgramerdude (Post 960671)
Considering that the PS3 will have to be hooked up to the control board with a 20 amp breaker slot, this has just become a power-usuage problem. I imagine that it may be possible if the breaker was dipped in liquid nitrogen prior to the match, in order to cheat the power use, but I don't think it would last long, and there would also have to be a regulator to give it the proper juice (one that can handle extreme voltage drops common on the robots).

Edit: apparently the PS3's newer models use far less than I expected, even after upgrades, but 60 watts does not seem like a logical figure.

:o I forgot about the battery... LOL Thats why I am a programmer... I think It can last 5 minutes

theprgramerdude 06-05-2010 21:23

Re: Using A PS3 With The cRio
 
Me too. The battery should easily handle the PS3's load, but the problem is giving the PS3 power without inverting the current (I'm working under the assumption that we can only regulate, not invert or overvolt). A regulator would have to be either built or purchased which handles the DC, as the stock PSU would only handle AC.

biojae 06-05-2010 21:33

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by theprgramerdude (Post 960678)
Me too. The battery should easily handle the PS3's load, but the problem is giving the PS3 power without inverting the current (I'm working under the assumption that we can only regulate, not invert or overvolt). A regulator would have to be either built or purchased which handles the DC, as the stock PSU would only handle AC.

Why wouldn't you be able to invert, or transform the voltage?

I haven't found a rule that would prohibit it, and if it is not prohibited it can be done.

As far as the DC PSU goes, there are ATX connectors for 12v DC power supplies, assuming the PS3 uses a regular power supply.

theprgramerdude 06-05-2010 22:02

Re: Using A PS3 With The cRio
 
One rule says that you can't alter the power pathways. I'm not sure what that means exactly, though...

biojae 06-05-2010 22:08

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by theprgramerdude (Post 960690)
One rule says that you can't alter the power pathways. I'm not sure what that means exactly, though...

Is this the rule?

Quote:

Originally Posted by FRC Game Manual Section 8
<R50> Custom circuits shall NOT directly alter the power pathways between the battery, Power Distribution Board, speed controllers, relays, motors, or other elements of the robot control system (including the power pathways to other sensors or circuits). Custom high impedance voltage monitoring or low impedance current monitoring circuitry connected to the ROBOT’S electrical system is acceptable, because the effect on the ROBOT outputs should be inconsequential.

I interpret that as meaning they don't want circuitry between the battery and any system components (Victors, spikes, radio, cRio, sidecar,etc).
And as far as the part that says "(including the power pathways to other sensors or circuits)", the PSU and the PS3 would all be the same "custom circuit" because the PS3 can't be used without the PSU.

davidthefat 06-05-2010 22:11

Re: Using A PS3 With The cRio
 
Quote:

Originally Posted by biojae (Post 960691)
Is this the rule?

Gah, that just kills the possibility of a PS3, or PC or even a Single board PC with a battery for teh BIOS... Ah really FIRST? :confused: :confused: IDK what to do, unless I can get tons of Arduinos and have them flawlessly work together:ahh:


All times are GMT -5. The time now is 00:57.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi