Serial in eepe/eepskye

eepSKYe is the desktop too for flashing and managing your sky9x firmware.
User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Sun May 08, 2016 2:42 pm

I've just added a new version to the post with the others (viewtopic.php?f=91&t=5476&p=93786#p93786).
This should support a 8Mhz clock as well as a 16MHz clock. I checked it outputs 1.5mS pulses at 20mS, but I haven't fed a SBUS signal into it yet.
I have changed the Arduino IDE from the one I used originally and had to change a couple of names in the EEPROM write code (EEWE to EEPE and EEMWE to EEMPE), most likely due to a compiler change.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


User avatar
jhsa
Posts: 19387
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Serial in eepe/eepskye

Post by jhsa » Sun May 08, 2016 3:40 pm

Mike, does that mean that the code I have on the first post for the serial between eepskye and arduino over Sbus won't compile anymore on the latest IDE??

Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Sun May 08, 2016 4:37 pm

I don't think you are using the EEPROM registers in the way I am, so there should be no problem.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

flarssen
Posts: 15
Joined: Wed Feb 25, 2015 11:37 am
Country: -

Re: Serial in eepe/eepskye

Post by flarssen » Sun May 08, 2016 4:39 pm

MikeB wrote:This should support a 8Mhz clock as well as a 16MHz clock. I checked it outputs 1.5mS pulses at 20mS, but I haven't fed a SBUS signal into it yet.
I have changed the Arduino IDE from the one I used originally and had to change a couple of names in the EEPROM write code (EEWE to EEPE and EEMWE to EEMPE), most likely due to a compiler change.

Mike.
Mike, it worked great. The failsafe part too. Yes, for the previous version, I had to define the EEPROM things in the sketch, in order to compile it (IDE 1.6.3).
Appreciate your effort, especially since I already had finished the soldering.
I went for 90 dgr pins for signal and veroboard strips as power bus. SBUS pin is on the RST pad (trace cut) and feeds the inverter at the backside of the Arduino. 7.5 gram total.

Thanks,
Fred
Attachments
IMG_2020.JPG
IMG_2023.JPG
IMG_2021.JPG

User avatar
jhsa
Posts: 19387
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Serial in eepe/eepskye

Post by jhsa » Sun May 08, 2016 4:45 pm

Nice, very nice :)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW


User avatar
jhsa
Posts: 19387
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Serial in eepe/eepskye

Post by jhsa » Sun May 08, 2016 4:48 pm

MikeB wrote:I don't think you are using the EEPROM registers in the way I am, so there should be no problem.

Mike.
Ok, thanks..
But you also wrote that code ;) actually what is on the first post is the first version I think.
Does this last version you've just posted also support the serial coming from the PC/eepskye?
If so, I could replace the one on the first post with it..

Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Sun May 08, 2016 6:59 pm

It should be the same for the 16MHz board, on the 8MHz board, the baudrate is just about OK (around 3.5% out), but should also work.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 19387
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Serial in eepe/eepskye

Post by jhsa » Sun May 08, 2016 7:27 pm

Thanks Mike.. willl try it as soon as I have some time..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Sun May 22, 2016 2:08 pm

Note the source code for my SbusToPpm is on Github here: https://github.com/MikeBland/SbusToPpm.

The latest commit uses the Tx pin as another option link. If left open, all works as before. If the Tx pin is connected to ground, best perhaps via a 1K resistor, then it switches to 8 channel only mode, but with a servo update rate of 9mS.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 19387
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Serial in eepe/eepskye

Post by jhsa » Sun May 22, 2016 2:18 pm

MikeB wrote:
The latest commit uses the Tx pin as another option link. If left open, all works as before. If the Tx pin is connected to ground, best perhaps via a 1K resistor, then it switches to 8 channel only mode, but with a servo update rate of 9mS.
Mike, Maybe you should copy this text to the Github project "Read Me" file??

Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Sun May 22, 2016 3:40 pm

Done!

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

flarssen
Posts: 15
Joined: Wed Feb 25, 2015 11:37 am
Country: -

Re: Serial in eepe/eepskye

Post by flarssen » Mon May 23, 2016 5:16 am

Mike, how about putting it all on A4? Function dependent on duration of button push, like 0-1 sec = failsafe, 1-3 sec = 9/18ms and 3+ sec = channels swap. Confirm with three different flashing sequences on LED. Store it all in EEPROM.

birdman
Posts: 11
Joined: Thu Jun 02, 2016 2:28 am
Country: -

Re: eepe model settings partially read by eepskye

Post by birdman » Thu Jun 02, 2016 2:34 am

I have a question related to the eepSkye program that is required when using 9Xtreme hardware update to the 9X Transmitter. I've used older 2 boards (9x TelemetrEZ and the 9x Solderless Programmer Board Rev 2.4) to update my first 9X transmitter and saved all my model settings in the older program eepe (Save EPROM and Save Model Settings). Now I've updated a second 9X transmitter and used the program eepSkye program to read the saved model settings from eepe. It reads the name of the model settings correctly but doesn't read any of the fixed parameters. All the inputs like mixes and expo settings are gone.
why this is so and if it can be fixed? Is there a setting in eepSkye that should be changed? I've looked in the opencforums that you listed in your website but couldn't find any reference to this problem.

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Thu Jun 02, 2016 9:15 am

To copy models from eepe to eepskye:
Run eepskye and load the EEPROM from the 9Xtreme board into it.
Now also run eepe and load your saved settings/models.
Now just drag a model from the eepe window and drop it onto an empty slot in the eepskye window. Most of the model settings will be copied. You will need to check them.
Finally write the 9Xtreme EEPROM from eepskye.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

birdman
Posts: 11
Joined: Thu Jun 02, 2016 2:28 am
Country: -

Re: Serial in eepe/eepskye

Post by birdman » Thu Jun 02, 2016 10:07 pm

Thanks Mike. That procedure of copying models from eepe to eepskye works. Thanks for the tip. Will save me hours if inputting models manually.

Wildvortex
Posts: 86
Joined: Sun Jun 05, 2016 11:45 pm
Country: United States

Re: Serial in eepe/eepskye

Post by Wildvortex » Mon Jun 06, 2016 11:21 am

Mike what is this 9Xtreme board? Something else I need to purchase?

Wildvortex
Posts: 86
Joined: Sun Jun 05, 2016 11:45 pm
Country: United States

Re: Serial in eepe/eepskye

Post by Wildvortex » Mon Jun 06, 2016 11:28 am

I am assuming that the 9xr pro already has this board from what I just read. So I just connect my Pro to the computer, open my EEPROM, eepe editor and file, then drag and drop to my EEPROM.

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Mon Jun 06, 2016 5:36 pm

The 9Xtreme is an upgrade board for the original 9X, see: http://smartieparts.com/shop/index.php? ... cts_id=378.

Yes that is the procedure.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

michel49
Posts: 170
Joined: Sun Oct 07, 2012 10:59 am
Country: -

Re: Serial in eepe/eepskye

Post by michel49 » Tue Jun 07, 2016 4:10 pm

I just discovered this thread and I'm not sure to understand if it allow to control the servos direct from my PC through the BT connection with some BT Rx linked to the servos ?

User avatar
jhsa
Posts: 19387
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Serial in eepe/eepskye

Post by jhsa » Tue Jun 07, 2016 4:20 pm

It allows you to control servos from eepskye.
1 - If you build The arduino circuit posted on the first post and connect the servos directly to the arduino..

2 - If you have a Bluetooth module installed in your radio. Then you receive the bluetooth signal from eepskye on your radio, and the radio then transmits it to the model.. In this case it is very important that you program a model in your radio as described on the first post, so the values sent by eepskye match what you see on the model.. Don't forget to also program a safety switch for the throttle and remove the props when working on your models..

No, you cannot use it to fly your model from the computer :) ;)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

michel49
Posts: 170
Joined: Sun Oct 07, 2012 10:59 am
Country: -

Re: Serial in eepe/eepskye

Post by michel49 » Sat Oct 01, 2016 7:10 pm

Do you think I could use the FrSky S-Bus/4ch. decoder ? just to give it a try.

Michel

michel49
Posts: 170
Joined: Sun Oct 07, 2012 10:59 am
Country: -

Re: Serial in eepe/eepskye

Post by michel49 » Sun Oct 02, 2016 4:08 pm

Well, I tried the BT link with my PRO and 217 fw, I guess the link between the PC and the Tx is good since HC05 is recognised but I get nothing when I click on "send Usb"; it seems some parameters are wrong: baudrate, trainer ?

Michel

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Sun Oct 02, 2016 4:46 pm

In the Bluetooth menu, set "BT as Trainer" to "Rx".
In the Trainer menu, set the source of the profile you are using to "BT".

The Cal data on the Trainer menu should then respond to changes on eepskye.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

michel49
Posts: 170
Joined: Sun Oct 07, 2012 10:59 am
Country: -

Re: Serial in eepe/eepskye

Post by michel49 » Mon Oct 03, 2016 8:16 am

Thanks Mike, I'm afraid the 217 FW don't give that option: the BT menu give only "on" & "off" for BT as trainer and the trainer menu don't allow to set the mode.
Do I need to update ?

Michel

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Mon Oct 03, 2016 8:35 am

Yes, I didn't start adding trainer over Bluetooth until R218 (found at http://www.er9x.com/).

You may be better to go to: viewtopic.php?f=7&t=4676
and download "ersky9xProvR219w_multiDSM-2.zip" for the very latest version, likely to be R219.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

michel49
Posts: 170
Joined: Sun Oct 07, 2012 10:59 am
Country: -

Re: Serial in eepe/eepskye

Post by michel49 » Mon Oct 03, 2016 2:54 pm

Well, I now understand Eepe act like a slave in the trainer mode; I downloaded 2.19 FW and in the BT menu how I set the BT Role, Master or Slave ?
When my PC detect the HC-05 it give me two COM ports, one COM-IN and one COM-OUT, which one to select, if I choose the COM-OUT in the model sim the soft hangs up...

Besides I'm worry the trainer mode don't give more than four channels and I'm a bit confused since ch.2 run the two ail. servos including ch.5; do you think it would be possible to give eight channels to the trainer mode since it is specially interresting for a glider to set the flaps on ch.6&7.

User avatar
jhsa
Posts: 19387
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Serial in eepe/eepskye

Post by jhsa » Mon Oct 03, 2016 3:11 pm

michel49 wrote:Well, I now understand Eepe act like a slave in the trainer mode; I downloaded 2.19 FW and in the BT menu how I set the BT Role, Master or Slave ?
I think it should be SLAVE.
When my PC detect the HC-05 it give me two COM ports, one COM-IN and one COM-OUT, which one to select, if I choose the COM-OUT in the model sim the soft hangs up...
I think I have never managed to make eepe/eepskye work via bluetooth. And, I'm not sure but eepe/eepskye might not send the same type of signal that the BT trainer setup in the radio is expecting to see. But Mike can confirm this, or not :)
Besides I'm worry the trainer mode don't give more than four channels and I'm a bit confused since ch.2 run the two ail. servos including ch.5; do you think it would be possible to give eight channels to the trainer mode since it is specially interresting for a glider to set the flaps on ch.6&7.
Don't think as the trainer channels as channels, think they are inputs (Rud, Ele, Thr and Ail). And they will replace THE STICKS'S INPUTS when the trainer switch is active, not the channels. So the mixes that are working are the mixes of the model you are controlling, and not the mixes from the student radio.
If the ailerons are controlled by 2 different channels on the master radio, the student radio will control them the same way when connected to the trainer. No need to send more channels.

You can use "PPMx" as source of a mix, to use the trainer channels without the trainer menu, but in this case, it is not necessary, and certainly NOT RECOMMENDED.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Mon Oct 03, 2016 3:18 pm

Yes, set as slave.
I had eepskye working as a "student" when I checked the settings needed, all seemed to be working correctly.
Eepskye sends 16 channels when beigng used in this way. The first 4 may be mapped on the trainer menu to replace the 4 sticks. All 16 channels are available as PPM1 to PPM16 sources for mixes.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 19387
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Serial in eepe/eepskye

Post by jhsa » Mon Oct 03, 2016 3:23 pm

Mike, but should the link work OVER BLUETOOTH? :o

I think it never did work that way. I always needed the arduino and FTDI to communicate with the PC.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17272
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Serial in eepe/eepskye

Post by MikeB » Mon Oct 03, 2016 3:41 pm

That's what I said I had working! The key is to set "BT as Trainer" to "Rx", with the trainer source set to BT.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


Post Reply

Return to “eepSKYe”