Raspberry PI based ROV

Anything to do with the Raspberry Pi
User avatar
Moki
Posts: 119
Joined: Oct 21st, 2014, 2:19 am
Location: The Netherlands

Re: Raspberry PI based ROV

Post by Moki »

I fixed it ;)

So we are back in business.

Todo:
- Sensors
- Servo's
- Hud

Nice to Have:
- xboxctrl
- mouse / tap input
User avatar
Moki
Posts: 119
Joined: Oct 21st, 2014, 2:19 am
Location: The Netherlands

Re: Raspberry PI based ROV

Post by Moki »

Not a lot of time, still some progress.

(Still no code yet available, sorry)

But this is, what it looks right now.
Attachments
Naamloos2.png
Naamloos2.png (269.77 KiB) Viewed 4812 times
User avatar
Moki
Posts: 119
Joined: Oct 21st, 2014, 2:19 am
Location: The Netherlands

Re: Raspberry PI based ROV

Post 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.
Last edited by Moki on Jan 26th, 2015, 3:09 am, edited 1 time in total.
User avatar
Moki
Posts: 119
Joined: Oct 21st, 2014, 2:19 am
Location: The Netherlands

Re: Raspberry PI based ROV

Post 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.
User avatar
Moki
Posts: 119
Joined: Oct 21st, 2014, 2:19 am
Location: The Netherlands

Re: Raspberry PI based ROV

Post by Moki »

Latest screendump..

Not perfect, but useable and doesn't crash.
Attachments
Schermafdruk 2014-11-19 18.31.19.png
Schermafdruk 2014-11-19 18.31.19.png (174.11 KiB) Viewed 4776 times
User avatar
olegodo
Posts: 222
Joined: Aug 30th, 2013, 9:47 am
Location: Bergen, Norway

Re: Raspberry PI based ROV

Post by olegodo »

Looking really good!
User avatar
Moki
Posts: 119
Joined: Oct 21st, 2014, 2:19 am
Location: The Netherlands

Re: Raspberry PI based ROV

Post 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.
User avatar
Moki
Posts: 119
Joined: Oct 21st, 2014, 2:19 am
Location: The Netherlands

Re: Raspberry PI based ROV

Post 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)
Attachments
Naamloos.png
Naamloos.png (201.15 KiB) Viewed 4745 times
Last edited by Moki on Nov 21st, 2014, 9:36 am, edited 1 time in total.
User avatar
olegodo
Posts: 222
Joined: Aug 30th, 2013, 9:47 am
Location: Bergen, Norway

Re: Raspberry PI based ROV

Post 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?
User avatar
Moki
Posts: 119
Joined: Oct 21st, 2014, 2:19 am
Location: The Netherlands

Re: Raspberry PI based ROV

Post 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.
Post Reply