PDA

View Full Version : Discussion How do you like this? - now open source


zozie
Aug 12, 2008, 11:22 PM
Well after 3 months of nonstop research and coding it is finally done. My plug and play control system that will work on any plane/heli that allows you to control your machine from your computer with a joystick.

I'd prefer not to get into details about the modem used at this point but it's the biggest one you can get without a radio license.
Advantages: You have a 40 mile radio range with virtually no interference. I've tried to get it to glitch but it won't. The modem uses about 50 frequencies at the same time and verifies the state of all servos compared to the joystick 1000 times per sec. I work at an int'l airport where you get a lot of radio signals and it ranges checked perfect for 3 kilometers and missed 1(!) bit from 2 gigs of data which is impressive in my opinion.
Anyways coding all this toke me about 3 months. I scratch built a program to convert signals from my serial port that my servos can understand. (fairly straight forward using c#/c++)
This is where it gets funny. You could use Micro$oft's directX library to program the joystick, but I opted for a cross platform solution so I hard coded my USB joystick using ANSI C, so It also runs on Linux or a MAC. I am using DirectX in the video due to the fact that most people use Windows and this way you can even use an XBOX controller if you like. Not sure about that you can
The data I'm sending over to the rx of the modem is encrypted using 256 bit encryption so even a hacker with nothing better to do would have a hard time crashing it....
So now finally it's all ready, the servo response time is acceptable, may not be as fast as a DX7 but certainly faster than my 9C. I pretty much wrote all the mixing functions one could think of as well. CCPM(3-4 servo) mechanical......
Info like gyro gain is delivered every mili second and in-flight adjustable amongst other things. I'm now in the process of boxing it all up and putting it on my vario benzine. I'll also need a 3cell lipo with about 10000MAH for the modems. Autohover is achieved with a 3 Axis gyro, compass, GPS and 2 accelerometers for an artificial horizon, as it was proven during first hover that I need to re-learn the concept of flying with a joystick.
In case of an unlikely radio failure, it goes into auto hover
I'll make a flying video as well this week.
Lemme know what you think and ask questions if you have any.
Sorry for the lenghty post and the ugly video but I just wanted to share.
(I had a previous post here a few months back but then I gave up on the idea due to crashing my r90 a few times......)
So far I've been a bit more successfull (lucky) then before, ~30 mins of flying time without any mishaps.
For now the platform is an E50 raptor on 10S lipo but once it's tested and proven safe, will move it into my Vario Benzine for endurance and lifting power :D

http://www.youtube.com/watch?v=8eJgTgWBwQA

zik
Aug 13, 2008, 12:44 AM
Nice work! I've been thinking of doing something like this myself - looks like a winner for FPV stuff.

rich smith
Aug 13, 2008, 08:16 AM
zozie,

What kind of license free radio gets 40 mile range with that kind if data rate? Or any data rate for that matter? Inquiring minds want to know.

Thanks,
-Rich



Well after 3 months of nonstop research and coding it is finally done. My plug and play control system that will work on any plane/heli that allows you to control your machine from your computer with a joystick.

I'd prefer not to get into details about the modem used at this point but it's the biggest one you can get without a radio license.
Advantages: You have a 40 mile radio range with virtually no interference. I've tried to get it to glitch but it won't. The modem uses about 50 frequencies at the same time and verifies the state of all servos compared to the joystick 1000 times per sec. I work at an int'l airport where you get a lot of radio signals and it ranges checked perfect for 3 kilometers and missed 1(!) bit from 2 gigs of data which is impressive in my opinion.
Anyways coding all this toke me about 3 months. I scratch built a program to convert signals from my serial port that my servos can understand. (fairly straight forward using c#/c++)
This is where it gets funny. You could use Micro$oft's directX library to program the joystick, but I opted for a cross platform solution so I hard coded my USB joystick using ANSI C, so It also runs on Linux or a MAC. I am using DirectX in the video due to the fact that most people use Windows and this way you can even use an XBOX controller if you like. Not sure about that you can
The data I'm sending over to the rx of the modem is encrypted using 256 bit encryption so even a hacker with nothing better to do would have a hard time crashing it....
So now finally it's all ready, the servo response time is acceptable, may not be as fast as a DX7 but certainly faster than my 9C. I pretty much wrote all the mixing functions one could think of as well. CCPM(3-4 servo) mechanical......
Info like gyro gain is delivered every mili second and in-flight adjustable amongst other things. I'm now in the process of boxing it all up and putting it on my vario benzine. I'll also need a 3cell lipo with about 10000MAH for the modems. Autohover is achieved with a 3 Axis gyro, compass, GPS and 2 accelerometers for an artificial horizon, as it was proven during first hover that I need to re-learn the concept of flying with a joystick.
In case of an unlikely radio failure, it goes into auto hover
I'll make a flying video as well this week.
Lemme know what you think and ask questions if you have any.
Sorry for the lenghty post and the ugly video but I just wanted to share.
(I had a previous post here a few months back but then I gave up on the idea due to crashing my r90 a few times......)
So far I've been a bit more successfull (lucky) then before, ~30 mins of flying time without any mishaps.
For now the platform is an E50 raptor on 10S lipo but once it's tested and proven safe, will move it into my Vario Benzine for endurance and lifting power :D

http://www.youtube.com/watch?v=8eJgTgWBwQA

zozie
Aug 13, 2008, 09:02 AM
At this point I cannot verify the transfer rate at 40 miles (no high gain antenna) but I can verify it at 3 miles so far.

tychoc
Aug 13, 2008, 10:27 AM
Very impressive. Look forward to your in-flight vid.

Congrats!

-tychoc

zozie
Sep 30, 2008, 04:58 PM
Just an update,

I am setting up a website right now where I'll post all the items used with all the software I wrote with source code to make this an open-source project that way anyone can use it and customize it the way they want to. I grew tired of all the criticism I got from some people so I'm gicing up on it :eek:
I'll share all the info on what you need to have a good range for manual control, auto-hover and follow GPS points. I'll post some vids as well.

rich smith
Sep 30, 2008, 11:11 PM
Zozie,

Can you post a link for your long rang transmitter?



Just an update,

I am setting up a website right now where I'll post all the items used with all the software I wrote with source code to make this an open-source project that way anyone can use it and customize it the way they want to. I grew tired of all the criticism I got from some people so I'm gicing up on it :eek:
I'll share all the info on what you need to have a good range for manual control, auto-hover and follow GPS points. I'll post some vids as well.

beep684
Oct 01, 2008, 04:44 AM
zozie,

What kind of license free radio gets 40 mile range with that kind if data rate? Or any data rate for that matter? Inquiring minds want to know.

Thanks,
-Rich

In the video it looks like he is using a Maxstream XTend modem, possibly an OEM module with an RS-232 interface board. The specs would fit: http://www.digi.com/products/wireless/long-range-multipoint/xtend-module.jsp

I have one of these modems so that is how I can recognise it...

Ben

rich smith
Oct 01, 2008, 08:20 AM
Thank you for the link Ben. I currently use the $20 XBee and am looking for more range. Don't know how I missed these.

Zozie,

I am much more interested in this project now that you mention open source.
You should not give up!
-Rich



In the video it looks like he is using a Maxstream XTend modem, possibly an OEM module with an RS-232 interface board. The specs would fit: http://www.digi.com/products/wireless/long-range-multipoint/xtend-module.jsp

I have one of these modems so that is how I can recognise it...

Ben

Gary Mortimer
Oct 01, 2008, 08:39 AM
Thats a shame if your giving up. Looks like you have started on a useful quest.

Looking forward to the site.

zozie
Oct 01, 2008, 08:51 AM
Thanx all for your kind words but if you saw some of the responses I got here and on other sites, you'd probably do the same.... I'll have the site ready in about a week or so.