Raspberry PI as the ultimate navigation computer

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Super I/O + Raspberry PI as the ultimate navigation computer?

http://diydrones.com/profiles/blogs/sup ... n-computer

Move over Arduino, here comes the Raspberries. :)
Last edited by copterrichie on Fri Apr 26, 2013 6:52 pm, edited 1 time in total.

Gimbal
Posts: 146
Joined: Tue Jul 24, 2012 7:14 pm
Location: Sweden

Re: Raspberry PI as the ultimate navigation computer

Post by Gimbal »

Interesting, delivery in September, well then i have some time to get familiar with my raspberry.

Sebbi
Posts: 478
Joined: Sun Jul 08, 2012 1:08 am
Location: Germany
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by Sebbi »

Isn't this basically just a Naze32 board that sticks on the GPIO connector of the RasPi? You could do that right now. I mean ... $175 for something you can already buy for around $50? ... strange project.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

In the comment segment, there are posts of cheaper alternatives to this. What is important to me is, there is an active discussion on the issue and I await what develops.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Raspberry Pi Camera Module has arrived!

he Raspberry Pi Camera Module is a custom designed add-on for Raspberry Pi.
It attaches by way of one of the small sockets on the board's upper surface, and uses the dedicated CSi interface, designed especially for connecting to cameras. The board itself is tiny, at around 25mm x 20mm x 9mm. It features:

    5 megapixel native resolution sensor-capable of 2592 x 1944 pixel static images
    Supports 1080p30, 720p60 and 640x480p60/90 video
    Camera is supported in the latest version of Raspbian, Raspberry Pi's preferred operating system

http://click.e-marketing.premierfarnell ... 80573daf0f

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »

Broken link :(


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Awesome, thanks Nik.

Sebbi
Posts: 478
Joined: Sun Jul 08, 2012 1:08 am
Location: Germany
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by Sebbi »

Indeed, awesome! ;-) Now we can have simple PI FPV solutions ;-)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

The Raspberry PI Camera has now made its appearance on Ebay, will not be long now before I have one of these puppies for experimentation. :D

Raspberry Pi Camera Module Board - Newly Released!!

http://www.ebay.com/itm/Raspberry-Pi-Ca ... 1229608256

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

I made the purchase directly from element14 however with the addition of the NEW Internet tax and shipping was added, the prices was about the same as purchased from ebay. :evil:

http://click.e-marketing.premierfarnell ... 397c289c4a

Sebbi
Posts: 478
Joined: Sun Jul 08, 2012 1:08 am
Location: Germany
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by Sebbi »

Purchased from Ebay for around 37 € including shipping. Lets see what this camera can do ... someone should then port MultiWii to run on a RasPi :D

Gimbal
Posts: 146
Joined: Tue Jul 24, 2012 7:14 pm
Location: Sweden

Re: Raspberry PI as the ultimate navigation computer

Post by Gimbal »

Got one, now we just waiting for a radio link with nuf bandwidth


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Awesome Nik, question: have you seen a modification to replacing the SD card with a Flash RAM device? Seem the SD card maybe the weak link if the Raspberry PI grows some wings so to speak. :)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

If this board had sensors, it would be perfect.

MiniLab - RASPBERRY Pi Development / Experimental Board ( ARDUINO )

Image

http://www.ebay.com/itm/MiniLab-RASPBERRY-Pi-Development-Experimental-Board-ARDUINO-/330929490516

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »

copterrichie wrote:have you seen a modification to replacing the SD card with a Flash RAM device?

Nop

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

NikTheGreek wrote:is getting better and better ;)

http://rlab.org.uk/wiki/Remove_IR_filter_from_Raspberry_Pi_Camera


Awesome Nik, I just received my order today. Not going to attempt this modification to this but at 33 bucks shipped, I am sure I will be attempting this in the future. :)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

One step closer, one step for humankind. ;)


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Here is the VERY FIRST comparison of the Raspberry PI camera usage on a copter. Not very good but a good foundation.



If you would like to follow the thread: http://www.raspberrypi.org/phpBB3/viewt ... 43&t=44441

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »

Thank you Richie ;)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Now things are starting to get very INTERESTING!!!

http://forums.openpilot.org/topic/13087 ... pberry-pi/


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

:shock: is right!! Add this to the mix :o :o :o



Raspberry Pi Camera OpenCV Face Detection

http://www.raspberrypi.org/phpBB3/viewt ... 43&t=44982

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Adafruit 16-Channel 12-bit PWM/Servo Driver - I2C interface - PCA9685

    When we saw this chip, we quickly realized what an excellent add-on this would be. Using only two pins, control 16 free-running PWM outputs! You can even chain up 62 breakouts to control up to 992 PWM outputs (which we would really like to see since it would be glorious)
    It's an i2c-controlled PWM driver with a built in clock. That means that, unlike the TLC5940 family, you do not need to continuously send it signal tying up your microcontroller, its completely free running!
    It is 5V compliant, which means you can control it from a 3.3V microcontroller and still safely drive up to 6V outputs (this is good for when you want to control white or blue LEDs with 3.4+ forward voltages)
    6 address select pins so you can wire up to 62 of these on a single i2c bus, a total of 992 outputs - that's a lot of servos or LEDs
    Adjustable frequency PWM up to about 1.6 KHz
    12-bit resolution for each output - for servos, that means about 4us resolution at 60Hz update rate
    Configurable push-pull or open-drain output
    Output enable pin to quickly disable all the outputs

http://www.adafruit.com/products/815

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

What I am considering at this stage is, to connect the sensors to the SPI bus and use the I2C bus for Servos/ESCs Not going to be easy but it should be fun and a challenge.

http://www.raspberrypi.org/phpBB3/viewt ... =37&t=9007

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »

And....this...
http://www.diydrones.com/profiles/blogs ... h-rpi-gpio

Not bad.... :D
one more piece of the puzzle ;)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Thanks for sharing that link. Yeap, agreed, one more step for mankind. :)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

More communication on using a PI as a flight control on a quad: http://www.raspberrypi.org/phpBB3/viewt ... 56&start=0

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

I have been very reluctant to do any serious experimentation with the one and only PI presently owned however, I ordered a second board today. Lets the games begins. :)

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »

Great!!! :D

I assume one in GS and second in the vehicle ? ;)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

NikTheGreek wrote:Great!!! :D

I assume one in GS and second in the vehicle ? ;)



Yes but to start, as a backup in the event I burn the GPIOs.

My approach to this is to use the well grounded MWC for the flight stabilization and the PI in the support role. First item on the agenda is to port over i2c-gps-nav.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Serveball develops throwable camera systems for a unique look on life

Image



http://www.element14.com/community/comm ... BALL-GPLUS

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »

I can imagine several uses of this ...... ;)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »



User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Here is a great conversation about replacing the Raspberry PI Camera default lens with a M12 Type. I just happened to have an old board with the adapter and the mounting holes lines up perfectly.


http://www.raspberrypi.org/phpBB3/viewt ... 43&t=45887
Attachments
P1130212.JPG


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

pigpio

pigpio is a C library for the Raspberry Pi which allows control of the general purpose input outputs (gpios).

There are 54 gpios in total, arranged in two banks. Bank 1 contains gpios 0-31. Bank 2 contains gpios 32-54. Most of the gpios are dedicated to system use. All the ones the user should use are in bank 1.


http://abyz.co.uk/rpi/pigpio/

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Autonomous, Cardboard, Rasberry Pi Controlled QuadCopter

http://www.instructables.com/id/Autonom ... /?ALLSTEPS

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »

WoW... Impresive !!!

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Well, I finally got around to building the shield for the Raspberry Pi. The Arduino ATmeg328/16 running a stripped down version MultiWii2.2/2.3 will handle Low level flight stabilization. Navigation, Camera, Ground Communication handled by the Raspberry PI. The GPS unit, Mag and Baro will be connected to the Pi. Communication between the Pi and MWC will be handled via serial using the MSP_SET commands but later switched to PWM.

Image

Image

Note: Nik, I figured it would be much easier conversing here verse email regardless.

Richard

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

How to upgrade Debian Linux64bit to Oracle Java required for a smooth running java application.

1. apt-get update
2. sudo apt-get disp-upgrade
3. Add the following to the /etc/apt/sources.list
deb http://ftp.de.debian.org/debian wheezy main contrib (For Debian only)

4. sudo apt-get update
5. sudo apt-get install java-package
6. Downlaod Oracle Java from: http://www.oracle.com/technetwork/java/ ... index.html

7. Select the jdk-7u45-linux-x64.tar.gz and agree to terms

8. open a terminal windows and change to the location where the file resides

9. Type: make-jpkg jdk-7u45-linux-x64.tar.gz <enter>

10. Once the program has finished running, there should be the following file: oracle-j2sdk1.7_1.7.0+update45_amd64.deb

11. sudo dpkg -i oracle-j2sdk1.7_1.7.0+update45_amd64.deb

12. sudo update-alternatives --config java and select Oracle-Java as the default java.

13. Verify Oracle Java is the default: java -version

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

I received the Clone Raspberry Pi cameras and now, I have to make a decision to which one to use for the onboard camera System. However, I will build a quick change board to allow for easy access for changing out the camera board as required. The Arduino is now talking to the Raspberry Pi via the serial ports and I can not connect to the Pi via the Ethernet. Wifi is in the pipeline but I do not see any major problems with the implementation.

Image

Here is a screen shot of the modified MultilConf 2.3 to handle Joystick inputs and to run efficiently on Embedded Linux. I felt there was no need for the graph and it required too much resources such as CPU time and memory.

Image

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Ok, so now the Raspberry WiiCopter(given name as of today) is really for the next stage of development. I will install this assembly on to my ORIGINAL Sweptback/V-tail copter because she has been a very stable platform. The GUI is far from being in its final state shown in the video. During testing I will feed the live video stream to a separate computer/laptop and the Telemetry to a another. I will use a standard transmitter and feed a PPM-Sum signal to the flight control in the early stage of testing, then use Serial MSP-SET commands relayed via the Raspberry over Wifi.



The video stream during this test was set to 720x480 @ 30fps

Image

Image

User avatar
NikTheGreek
Posts: 348
Joined: Thu Dec 08, 2011 4:17 pm
Location: Greece
Contact:

Re: Raspberry PI as the ultimate navigation computer

Post by NikTheGreek »

Great work Richard... :D

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

The following is a very quick hack to automatically start the video stream upon connection from a client. It uses socat which can be added to the Raspiberry Pi with the command sudo apt-get install socat.

Code: Select all

#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
T0:23:respawn:/usr/bin/socat TCP-LISTEN:8899,reuseaddr /dev/ttyAMA0,raw,echo=0,crnl,b115200
T1:23:respawn:/usr/bin/raspivid -n -t 0 -h 480 -w 720 -fps 30 -vf -o - | socat - TCP-LISTEN:5001,reuseaddr

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Raspberry PI as the ultimate navigation computer

Post by copterrichie »

Houston, we have a mounting location. :)

Image

Image

Image

Post Reply