Page 2 of 13

Re: Raspberry PI based ROV

Posted: Nov 11th, 2014, 4:29 pm
by Moki
I fixed it ;)

So we are back in business.

Todo:
- Sensors
- Servo's
- Hud

Nice to Have:
- xboxctrl
- mouse / tap input

Re: Raspberry PI based ROV

Posted: Nov 16th, 2014, 7:29 am
by Moki
Not a lot of time, still some progress.

(Still no code yet available, sorry)

But this is, what it looks right now.

Re: Raspberry PI based ROV

Posted: Nov 16th, 2014, 1:48 pm
by Moki
Started with the GIT :o (new stuff for me)

If you require the use of I2C, please make sure your PI is configured correctly for this.
See (https://learn.adafruit.com/adafruits-ra ... guring-i2c) if you need help with this.

ROV-PI requires a recent nodejs (built and tested with node > 0.10) (http://elinux.org/Node.js_on_RPi)
as well as[npm](https://npmjs.org/) and [bower](http://bower.io/) for dependency management.

```
https://github.com/Moki38/Moki-ROV.git
cd Moki-ROV
npm install
```
Check the README for further instructions.

Re: Raspberry PI based ROV

Posted: Nov 18th, 2014, 2:12 pm
by Moki
So....

Looks like we gonna add some extra things to the list.

- relay control
- voltage/current sensor
- servo limit (25%, 50%, 75% and 100%)

And some kind of config file.

Re: Raspberry PI based ROV

Posted: Nov 19th, 2014, 12:38 pm
by Moki
Latest screendump..

Not perfect, but useable and doesn't crash.

Re: Raspberry PI based ROV

Posted: Nov 19th, 2014, 2:48 pm
by olegodo
Looking really good!

Re: Raspberry PI based ROV

Posted: Nov 19th, 2014, 4:44 pm
by Moki
Small steps <><

Voltage/Current sensor are in the mail, as is the ADC controller.

But for now, time to build some more parts to the ROV.

Btw, IE has no gamepad support (todays version), but Chrome should work.
Or just use a controller PI, to connect the Xbox 360 controller.
Ill think about it a little while, what to do.

Re: Raspberry PI based ROV

Posted: Nov 21st, 2014, 9:08 am
by Moki
I think I am done, adding new features to the software.

Motors can be controlled using Servo ESC or Relay's.

Keyboard control (use awsd and jikl for movement)
'G' controls lights on/off
'H' controls Hover mode on/off
1/2 switch camera view (front/back)

CAM1 and CAM2 Button, opens new cam windows (without control overlay)

Sensors:
- Heading,Pitch,Roll,Depth and Temp (MPU-9150/MS5803-14A)
- ADC (ADC Pi Plus => 8 channel 17 bit analogue to digital converter)
- Volt/Current (AttoPilot Voltage and Current Sense Breakout - 180A)

Todo:
Flexible/configurable motor setup:
- select which motor, you want to use for a movement function.
- select servo min/max movement.
- Improve sensor speed. (i2c module, not shell script hack)
- Gamepad controller


Remember: This software was engineered... not designed ;)

PPs: screenshot was taken, while the PI was offline (sensor data is way-off)

Re: Raspberry PI based ROV

Posted: Nov 21st, 2014, 9:34 am
by olegodo
I am really impressed with the speed you are developing this software :shock:

Btw, is there a reason you are using IE over any other browser?

Re: Raspberry PI based ROV

Posted: Nov 21st, 2014, 9:45 am
by Moki
olegodo wrote:I am really impressed with the speed you are developing this software :shock:
So am I, remember... 2 weeks ago I never heard of Node.JS. Nowdays I am creating a nice application in it. Even worse really, I never did anything with HTML before (working 20 years in IT)
Learned so much about stylesheets, javascript, even RaspPI I2C programming, my head keeps spinning. <><
olegodo wrote:Btw, is there a reason you are using IE over any other browser?
Not really, its just my default browser. (never saw any reason to change it)
But I have Chrome installed 8-) as my backup browser.

And getting the gamepad controller to work, will need a browser that supports "navigator.getGamepads" commands. And IE is not the one.


But I am having so much FUN!! 8-)

Btw: Its less than 1000 lines of code.