Raspberry PI as the ultimate navigation computer
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Raspberry PI as the ultimate navigation computer
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.
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.
Re: Raspberry PI as the ultimate navigation computer
Interesting, delivery in September, well then i have some time to get familiar with my raspberry.
Re: Raspberry PI as the ultimate navigation computer
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.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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:
http://click.e-marketing.premierfarnell ... 80573daf0f
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
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
Awesome, thanks Nik.
Re: Raspberry PI as the ultimate navigation computer
Indeed, awesome! Now we can have simple PI FPV solutions
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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.
Raspberry Pi Camera Module Board - Newly Released!!
http://www.ebay.com/itm/Raspberry-Pi-Ca ... 1229608256
Raspberry Pi Camera Module Board - Newly Released!!
http://www.ebay.com/itm/Raspberry-Pi-Ca ... 1229608256
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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.
http://click.e-marketing.premierfarnell ... 397c289c4a
http://click.e-marketing.premierfarnell ... 397c289c4a
Re: Raspberry PI as the ultimate navigation computer
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
Re: Raspberry PI as the ultimate navigation computer
Got one, now we just waiting for a radio link with nuf bandwidth
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
If this board had sensors, it would be perfect.
MiniLab - RASPBERRY Pi Development / Experimental Board ( ARDUINO )
http://www.ebay.com/itm/MiniLab-RASPBERRY-Pi-Development-Experimental-Board-ARDUINO-/330929490516
MiniLab - RASPBERRY Pi Development / Experimental Board ( ARDUINO )
http://www.ebay.com/itm/MiniLab-RASPBERRY-Pi-Development-Experimental-Board-ARDUINO-/330929490516
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: Raspberry PI as the ultimate navigation computer
copterrichie wrote:have you seen a modification to replacing the SD card with a Flash RAM device?
Nop
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
One step closer, one step for humankind.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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
If you would like to follow the thread: http://www.raspberrypi.org/phpBB3/viewt ... 43&t=44441
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: Raspberry PI as the ultimate navigation computer
Thank you Richie
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
Now things are starting to get very INTERESTING!!!
http://forums.openpilot.org/topic/13087 ... pberry-pi/
http://forums.openpilot.org/topic/13087 ... pberry-pi/
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
is right!! Add this to the mix
Raspberry Pi Camera OpenCV Face Detection
http://www.raspberrypi.org/phpBB3/viewt ... 43&t=44982
Raspberry Pi Camera OpenCV Face Detection
http://www.raspberrypi.org/phpBB3/viewt ... 43&t=44982
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
Adafruit 16-Channel 12-bit PWM/Servo Driver - I2C interface - PCA9685
http://www.adafruit.com/products/815
- 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
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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
http://www.raspberrypi.org/phpBB3/viewt ... =37&t=9007
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: Raspberry PI as the ultimate navigation computer
And....this...
http://www.diydrones.com/profiles/blogs ... h-rpi-gpio
Not bad....
one more piece of the puzzle
http://www.diydrones.com/profiles/blogs ... h-rpi-gpio
Not bad....
one more piece of the puzzle
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
Thanks for sharing that link. Yeap, agreed, one more step for mankind.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
More communication on using a PI as a flight control on a quad: http://www.raspberrypi.org/phpBB3/viewt ... 56&start=0
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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.
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: Raspberry PI as the ultimate navigation computer
Great!!!
I assume one in GS and second in the vehicle ?
I assume one in GS and second in the vehicle ?
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
NikTheGreek wrote:Great!!!
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.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
Serveball develops throwable camera systems for a unique look on life
http://www.element14.com/community/comm ... BALL-GPLUS
http://www.element14.com/community/comm ... BALL-GPLUS
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: Raspberry PI as the ultimate navigation computer
I can imagine several uses of this ......
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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
http://www.raspberrypi.org/phpBB3/viewt ... 43&t=45887
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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/
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
Autonomous, Cardboard, Rasberry Pi Controlled QuadCopter
http://www.instructables.com/id/Autonom ... /?ALLSTEPS
http://www.instructables.com/id/Autonom ... /?ALLSTEPS
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: Raspberry PI as the ultimate navigation computer
WoW... Impresive !!!
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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.
Note: Nik, I figured it would be much easier conversing here verse email regardless.
Richard
Note: Nik, I figured it would be much easier conversing here verse email regardless.
Richard
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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)
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)
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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.
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.
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.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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
The video stream during this test was set to 720x480 @ 30fps
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: Raspberry PI as the ultimate navigation computer
Great work Richard...
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
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
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Raspberry PI as the ultimate navigation computer
Houston, we have a mounting location.