Flying-Hobby Lucky Draw @ FACEBOOK Blog Facebook @ FLYING-HOBBY
Reply
Thread Tools
Old Apr 23, 2010, 07:55 AM
Registered User
Germany
Joined Mar 2007
200 Posts
Quote:
Originally Posted by Ceros007 View Post
Hey darkstar, were are you from? What university?
Technical University Braunschweig, but already working at the German Aerospace Center in Braunschweig. Institute of Flight Guidance, that's why I need to make an autopilot for the copter...

Darkstar
Darkstar2000 is offline Find More Posts by Darkstar2000
Reply With Quote
Sign up now
to remove ads between posts
Old Apr 23, 2010, 08:08 AM
Registered User
Ceros007's Avatar
Montreal, Québec, Canada
Joined Apr 2010
1,444 Posts
Wow nice. I'm from École des technologie supérieure (Engineering University), Montréal, Québec, Canada. It's my first year. Aww I wish I could help you! It's such a nice project.
Ceros007 is offline Find More Posts by Ceros007
Reply With Quote
Old Apr 23, 2010, 08:31 AM
Registered User
Germany
Joined Mar 2007
200 Posts
Did you ever try to read the joystick under linux?

We need to access the joystick, fill the bytes, calc the checksum and send it via IR. I think I will use the USB2Serial with FTDI chip from here (Just ordered a USB2Serial Cable with FTDI chipset). I especially like the "bitbang" mode: sending '1's and '0's with 72kHz to emulate the 38kHz carrier is very visual! So generating the packages seems to be not too complicated, but I never tried to use the joystick interface.

Darkstar.
Darkstar2000 is offline Find More Posts by Darkstar2000
Reply With Quote
Old Apr 23, 2010, 08:58 AM
Registered User
Ceros007's Avatar
Montreal, Québec, Canada
Joined Apr 2010
1,444 Posts
No. I've never had a chance to actually work with something else than code... But I love electronics stuff.

Do you think it will be hard to do it with Radio Frequency Helis instead of InfraRed?
Ceros007 is offline Find More Posts by Ceros007
Last edited by Ceros007; Apr 23, 2010 at 09:20 AM.
Reply With Quote
Old Apr 23, 2010, 09:50 AM
Registered User
Germany
Joined Mar 2007
200 Posts
Probably yes, as it involves far more electronics: for IR you only need an IR diode (or three...). Als the protocol is quite different. I only started with this analysis, because it's so easy so to produce IR signals.

Darkstar.
Darkstar2000 is offline Find More Posts by Darkstar2000
Reply With Quote
Old Apr 23, 2010, 03:46 PM
Registered User
Germany
Joined Mar 2007
200 Posts
Joystick and USB2Serial adapter are on the way. Now I only need some IR transmitter diodes, transistors and so on before I can program my own little remote. I keep you up-to-date.

Darkstar.
Darkstar2000 is offline Find More Posts by Darkstar2000
Reply With Quote
Old Apr 24, 2010, 01:41 AM
North East England
Joined Feb 2004
3,138 Posts
Wish I could talk technical like you guys...would SERIOUSLY impress the ladies in my local pub My father's hobby in his younger days was valve radios - he built hundreds of them. I can still see those valves glowing now, and my dad bending sheet aluminium to make the radio chassis. How things have changed.
Redbaron25 is offline Find More Posts by Redbaron25
Reply With Quote
Old Apr 25, 2010, 10:25 PM
Registered User
Ceros007's Avatar
Montreal, Québec, Canada
Joined Apr 2010
1,444 Posts
Quote:
Originally Posted by Redbaron25 View Post
Wish I could talk technical like you guys...would SERIOUSLY impress the ladies in my local pub .
Lol
Ceros007 is offline Find More Posts by Ceros007
Reply With Quote
Old Apr 26, 2010, 01:00 PM
Registered User
Germany
Joined Mar 2007
200 Posts
With the help of a colleague and the guy who implemented the usb2serial driver into lirc I started the Joy2IR software. I expect the USB2Serial cable to arrive during the next days so I could start to send some commands to the heli and see if anything arrives.

Darkstar

PS: Syma comes next
Darkstar2000 is offline Find More Posts by Darkstar2000
Reply With Quote
Old Apr 26, 2010, 06:53 PM
North East England
Joined Feb 2004
3,138 Posts
If you can produce the IR codes from the computer, does that mean you could write a program to send out codes to fly the heli automatically in a preset sequence, eg take off, hover, fly a circuit and land?

Seen this done with model train layouts - fascinating to watch everything working on it's own.
Redbaron25 is offline Find More Posts by Redbaron25
Reply With Quote
Old Apr 26, 2010, 07:22 PM
Registered User
Ceros007's Avatar
Montreal, Québec, Canada
Joined Apr 2010
1,444 Posts
Quote:
Originally Posted by Redbaron25 View Post
If you can produce the IR codes from the computer, does that mean you could write a program to send out codes to fly the heli automatically in a preset sequence, eg take off, hover, fly a circuit and land?

Seen this done with model train layouts - fascinating to watch everything working on it's own.
Of course, why not? You could eventually put a wirelesscam on the heli an d fly it via your computer...
And if you want more, you can program an AI that can fly the heli.

That's the real meaning of "Impossible is not a word", I love computer science! ahaha
Ceros007 is offline Find More Posts by Ceros007
Reply With Quote
Old Apr 26, 2010, 08:06 PM
I'm FAMOUS
Joined Mar 2010
5,105 Posts
that becomes

suddenly complex. If the heli 'dead reckons' it's position, it won't be for long.

You'd need some sort of position datum to work from.

too heady for me.
I'm happy to get a battery charged.

Hm, wouldn't it be easier to hook a joystick to a IR controller, without the PC in the loop?
killbucket is offline Find More Posts by killbucket
RCG Plus Member
Old Apr 27, 2010, 02:27 AM
Registered User
Germany
Joined Mar 2007
200 Posts
Quote:
Originally Posted by Redbaron25 View Post
If you can produce the IR codes from the computer, does that mean you could write a program to send out codes to fly the heli automatically in a preset sequence, eg take off, hover, fly a circuit and land?
Not impossible, but not easy. The problem is that a helicopter need to be controlled in a closed loop: To hover for example you need to know the altitude: Decreasing altitude -> more throttle, increasing altitude -> less throttle => closed loop. So we need some sensors (external or internal) to measure the position of the helicopter and then it would be possible.

Quote:
Originally Posted by killbucket
Hm, wouldn't it be easier to hook a joystick to a IR controller, without the PC in the loop?
Maybe, but where is the fun in that??? And then you would need a analog joystick and make shure that the range of the variable resistors would match and so on. And in the end you would just control the heli with the joystick. Controlling the heli with a joystick from the PC is just the BEGINNING.

Darkstar.
Darkstar2000 is offline Find More Posts by Darkstar2000
Reply With Quote
Old Apr 27, 2010, 05:09 PM
Registered User
Germany
Joined Mar 2007
200 Posts
The new joystick arrived today: shiny Microsoft Sidewinder Forcefeedback 2 to get some feedback in case of crash...
Software prototype is ready, now I need the USB2Serial adapter to hook up my scop to see if its working.

Darkstar.
Darkstar2000 is offline Find More Posts by Darkstar2000
Reply With Quote
Old Apr 28, 2010, 09:57 AM
Registered User
Germany
Joined Mar 2007
200 Posts
Update of the timings (also for own documentation):

carrier frequency: 38.17kHz

(all timings in µs)
constant length, package-to-package 154819
header: 3699 pulse, 1004 space
zero: 814 pulse, 242 space (=1056, ratio ~ 2/3 to 1/3)
one: 398 pulse, 658 space (=1056, ratio ~ 1/3 to 2/3)
end: 387 pulse, 115937 space
length of data: 32 bits

byte,bit explanation
1,1 fix (always zero)
1,2...8 throttle
2,1...4 rudder
2,5...8 elevator
3,1 1=left rudder, 0=right rudder
3,2 1=nose up, 0=nose down
3,3 1=trim left, 0=trim right
3,4...8 trim
4,1...2 channel: 11=A, 10=B, 01=C
4,3...8 checksum

As soon as the USB2Serial is here I will send some commands to the helicopter to see if its working.

Darkstar.
Darkstar2000 is offline Find More Posts by Darkstar2000
Reply With Quote
Reply

Castle Creations      DRIVE / FLY / SUPPORT  

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Discussion FrSky 2.4ghz - Telemetry protocol discussions PLMS Radios 1370 Apr 24, 2013 12:58 AM
Discussion SanHuan 6023 or Syma S107 ? Tuc Coaxial Helicopters 20 Mar 21, 2010 09:15 AM
New Product New larger SanHuan coax w/ gyro rich95 Coaxial Helicopters 0 Oct 21, 2009 04:34 PM
Sold Scorpion IR Receiver and IR Remote Control - $10 shipped dswitkin Aircraft - Electric - Power Systems (FS/W) 2 Aug 30, 2009 09:20 PM
For Sale CHEAP - Miniature Helicopter (Sanhuan) $15 Shipped ropuri Aircraft - Electric - Helis (FS/W) 1 Jan 31, 2007 03:00 PM