Serial in eepe/eepskye
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
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
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
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
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
I don't think you are using the EEPROM registers in the way I am, so there should be no problem.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
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).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.
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
Re: Serial in eepe/eepskye
Nice, very nice
João
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
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
Re: Serial in eepe/eepskye
Ok, thanks..MikeB wrote:I don't think you are using the EEPROM registers in the way I am, so there should be no problem.
Mike.
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
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
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
Thanks Mike.. willl try it as soon as I have some time..
João
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
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
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
Mike, Maybe you should copy this text to the Github project "Read Me" file??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.
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
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
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
Done!
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
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.
Re: eepe model settings partially read by eepskye
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.
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.
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
Thanks Mike. That procedure of copying models from eepe to eepskye works. Thanks for the tip. Will save me hours if inputting models manually.
-
- Posts: 86
- Joined: Sun Jun 05, 2016 11:45 pm
- Country: United States
Re: Serial in eepe/eepskye
Mike what is this 9Xtreme board? Something else I need to purchase?
-
- Posts: 86
- Joined: Sun Jun 05, 2016 11:45 pm
- Country: United States
Re: Serial in eepe/eepskye
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.
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
Yes that is the procedure.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
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 ?
Re: Serial in eepe/eepskye
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
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
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
Re: Serial in eepe/eepskye
Do you think I could use the FrSky S-Bus/4ch. decoder ? just to give it a try.
Michel
Michel
Re: Serial in eepe/eepskye
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
Michel
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
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
Do I need to update ?
Michel
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
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.
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.
Re: Serial in eepe/eepskye
I think it should be SLAVE.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 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 notWhen 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...
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.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.
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
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
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Serial in eepe/eepskye
Mike, but should the link work OVER BLUETOOTH?
I think it never did work that way. I always needed the arduino and FTDI to communicate with the PC.
Joã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
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
- MikeB
- 9x Developer
- Posts: 17995
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Serial in eepe/eepskye
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!