MikroKopter - Forum » Subversion - Projekte » Spektrum DX8 Channel Expander for 12 Channels!

Spektrum DX8 Channel Expander for 12 Channels!

Neues Thema Antwort

Seite: < 1 2 3 4 > »

Autor Neuer Beitrag
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
Oh, that is a good tip - Thank you.
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
АР8000 opened.
1. 2 x i2c found - am sure, not implemented/programmed for external connection :)
2. 8 channels are multiplexed from 4 by PIC (CY8C29466 - it has only 4 analog outs)
3. Satellite data goes directly to PIC as external clock (optional input, pin 17)
4. On Rx PCB there are CY8C214 PIC and CYRF6936 Radio: on Radio IC 28-pin is SPI Out, exactly as in Satellite.

So, I'll try use it as ... satellite in your diversity module. I am not sure about result, but will try to connect pin mentioned or Rx PCB in/out pin itself.
(I have no any complement analyzer, so will go as a blind one).

Because SPI data In and Out are not on one multiplexed pin, it is possible in this case what TM1000 will work.

Of course, not sure about nothing.
Will report after arriving of diversity module.

Yours,
Eugenijus
Mitglied
Registriert seit: Jul 2011
Beiträge: 78
Ort: Iguassu Falls - Brasil
Just as a Feedback...
I'm using the DX8 Expander since April 2011 in DSMX, never had any issue, works perfectly - EXCELLENT work!!! Thank you very much!!!

I've assigned my switches this way: (maybe this helps someone...)

Sticks -> Flight Control :mrgreen:
Gear -> CareFree (On, Off)
F Mode -> GPS (Off, PH, CH)
Elev D/R -> Motor safety
Flap Gyro -> OFF
L Trim -> Camera Roll (yes roll, sometimes I need a fine tunning durring fast lateral flight)
R Trim -> Camera Nick (Horizontal, 90 down tilt)
Aux 2 Gov -> Photo Trigger (Camera Shutter via PCB Expansion)
Ail D/R -> OSD (Made some mod to C-OSD (Another great project) Firmware, 3 modes: Full, minimal info, off)
Rudder D/R -> Aileron, Rudder, Elevator D/R and EXP (Dual Rate and Exponencial, 3 levels: very smooth, normal, radical ;) )
MIX -> Altitude Hold
AUX 3 -> OFF
Trainer -> OFF

As a future request, I would ask for a way to assign the Trainer Switch to the Motor safety. I could work this way: To turn on or off the motors, the Stick must be in the position (as we do nowadays) but we should press the trainer button also to start or stop them, so it could not be turned off accidentally in flight. I think its more a Flight CTRL firmware issue, but....

Once again, thank you very much for this incredible "upgrade" and for your support adapting the new firmwares so quickly.

Arthur Vieira
Iguassu Falls
Brasil
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
form,

can you add PPM-decoding branch to FL firmware as you does it for UART?

Yours,
Eugenijus.
Mitglied
Registriert seit: Jan 2012
Beiträge: 2
Ort: Schweiz
Hallo, währe es möglich mit einem zweiten ATtiny, welcher an Kanal 6 des AR8000 angeschlossen wird, die 4 zusatz Kanäle zu decodieren (die einzelnen Kanäle wieder aufspalten) und als einzelne Kanäle bereit zu stellen (am ATtiny)?
So zu sagen einen 8 + 4 Kanal Empfänger, welcher beispielsweise in einem Flugzeug eingebaut werden kann, also das Ganze ohne FC, um dort ebenfals 12 Kanäle verwenden zu können. ;)

MfG vinki
« Bearbeitet von vinki93 am 21.01.2012 17:57. »
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
vinki,

but how you will connect it to FC?
« Bearbeitet von liutas4x4 am 21.01.2012 20:00. »
Mitglied
Registriert seit: Jan 2012
Beiträge: 2
Ort: Schweiz
Hi, I don't use a FC! I would only a normal receiver (AR8000) with 12 Channels for Servos or Switches (PWM) in a Plane or a Heli.

MfG vinki
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
For others: beginning is there: http://forum.mikrokopter.de/topic-post367870.html#post367870, because of my mistake

form,

form meinte


Yes. But count I am new to C++ - I can not read resulting byte from this code. While I am read this some time yesterday - this leads me to a bottle of a beer. :)

form meinte
As you can see, the whole output runs over the channel which did the flight-mode before.
I took this channel because its a triple-switch, so i use one position as a SYNC impulse and the other 2 positions for sending the data out.


Hm. Am I wrong or Flap/Gyro switch is dedicated to die for nice future of 12CH lovers? My brain can not hold original switch's name because of DX reprogramming - who was whom...
(hold your breath) I do not knew how triple switch is send by DX... Is it one byte? Is it 0x00, 0x3F and 0x7F?

form meinte
The sync is sent with the first frame.


OK.
How SYNC byte if filled? 0x7F?

form meinte
Then follows 8 bit in the next 8 frames and everytime a bit is high, i invert a parity bit, which is sent out with the last frame.


Especially interesting moment:
Is the bit, related to switch position "running" over byte to explain a fact of switching or whole byte is dedicated in frame send to receiver?
You can help me in more easy way then (instead) I'll read grossbuch of C++. A?
Parity bit is low on meaning frames, and high on last or vice versa or if {}?

form meinte
When you look at the schematic and the code from the radio-side you will understand it.


As I explain above, the day I got idea to do a PPM decoder was too bad for both of us :) If there would be Forth or some another archaic language - it will be solved... Even assembler in my brains is from PDP-11.

form meinte
On receiver-side the code is like a state-machine (storing bits in array, checking parity, resetting parity and array-counter when sync is received...)


This is quite clear. Can comment a bit more this part:

---------
if (signal < 10) sr_exdata[++sr_excnt] = -125; // Bit = 0 -> value = -125 (min)
if (sr_excnt == 10) sr_excnt = 0; // Overflow protection
if (signal < -100)
{
sr_exdata[sr_excnt] = 125; // Bit = 1 -> value = 125 (max)
sr_exparity = ~sr_exparity; // Bit = 1 -> Invert parity bit
}
----------
"low" is something about "0" and "high" in between "0" and "125"?
and why ==10 - in your explanation there are 9 frames? zero-frame not playing there?

And, last today:
----------
if (signal > 100)
----------
is it because only SYNC is > 0?

Hope, you understand me...

Yours,
Eugenijus

P.S.
Am catching scaling this way:
if (signal > PPM_in[7])
.......
if (signal < PPM_in[1]) sr_exdata[++sr_excnt] = -125; // Bit = 0 -> value = -125 (min)
.......
if (signal < -PPM_in[11])
.......
:)
{
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
externer Link:
User image

No sync picture...
But, at last, I see something from inside.

How to access "signal"? Fc.c's function DebugOut.Analog[] reject my references to it. It is long explanation (linked to web) or possible explain in few words?

Yours,
Eugenijus
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
Going from point show above, shortly switched off DX.
And get this:

externer Link:
User image

Both "tmp" and s_exparity are jumping with transmitter off.
And FC does not recognized dead link to TX - message about RC lost is done manually, by disconnecting (and not refreshing) power of receiver. This trick explained by steady "tmp" line.

So, this serializer http://mikrokopter.altigator.com/serializer-8-channels-for-standard-receivers-on-mikrokopter-p-66.html?zenid=ohbs1j7auhehrno52v425s2be7 does a bullshit job:
as mentioned in it's manual:
"a 2.4Ghz Assan receiver (or similar) at powerup, while his transmitter is switched off
→ no PPM frame is sent to the FC" (http://mikrokopter.altigator.com/docx/user_manual_ppm_serialiser_v3_en.pdf)

***********
Questions still valid.
But not so actual/quick as few hours ago: another way of serializing is under investigation.
***********

AR8000 goes as additional satellite to your diversity module.

Yours,
Eugenijus
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
Patched Firmware v0.88e
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
form,

This way I am informed about 0.88!
:)

Thank you.
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
Patched Firmware v0.88n
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
Bugfix for patched Firmware v0.88n(2)
(Implemented PPM_diff to get the Motor-Start/Stop-switch working)
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
Thank you!
Mitglied
Registriert seit: Feb 2013
Beiträge: 3
Hello; I'm bringing this thread alive once again. I noticed the sexpander for the dx8 (such a life saver), but I couldn't find it in the shop. I've searched through the categories, and searched for "", "sexpander", "pander"... "dx8"... without any luck.

Can you please supply a link so I can happily purchase the product.?

Thank you

D
Ontario, Canada
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
I sent you an email with purchasing details.
Mitglied
Registriert seit: Feb 2013
Beiträge: 3
So I have wired up my transmitter, but on the receiving end, what is the special board to increase the channels 9,10,11 & 12.

D
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
You have to flash the patched firmware to your FC.
Mitglied
Registriert seit: Feb 2013
Beiträge: 3
I have downloaded Flight-Ctrl_MEGA644_V0_88n2_DX8Patched.hex
I have ordered an ISP programmer that supports 3.3v & 5 and compatible with tiny2313
Already have the XP computer - as the module is not compatible with win 7
Downloaded winavr http://sourceforge.net/projects/winavr/files/WinAVR/20060421/WinAVR-20060421-install.exe/download

Now I wait.
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
You don't need an ISP programmer, because the tiny2313 has already the software in it.
The named file has to go on your Flight-Ctrl from Mikrokopter. Using the Kopter-Tool.
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
Patched Firmware v0.90d
Mitglied
Registriert seit: Nov 2011
Beiträge: 164
Ort: Jerusalem
TNX! You're quick as always :)
Mitglied
Registriert seit: Jul 2011
Beiträge: 78
Ort: Iguassu Falls - Brasil
Any news on a v0.90e version?
MK-Betatester
Registriert seit: Jan 2008
Beiträge: 1360
Ort: Helmstedt
RcHeliPilot meinte
Any news on a v0.90e version?
Sorry, i completely missed that version.

Patched Firmware v0.90e

Neues Thema Antwort

Seite: < 1 2 3 4 > »

MikroKopter - Forum » Subversion - Projekte » Spektrum DX8 Channel Expander for 12 Channels!