ERSKY9X Coding
Re: ERSKY9X Coding
Mike, concerning pots and switches, here seems to be all working. By the way, thanks for changing ANA to AD10 on all switches, now it makes much more sense
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: ERSKY9X Coding
@Mike (no telemetry) :
Numbers on the first 2 lines :
0000 012C 242C 0000
0000 0000 xxxx
xxxx=number always incrementing
FIFO buffer : all at 0
Numbers on the first 2 lines :
0000 012C 242C 0000
0000 0000 xxxx
xxxx=number always incrementing
FIFO buffer : all at 0
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
OK, another test version posted. I hadn't used parity on the STM processor before. It seems it needs the character length set to 9 bits when you enable parity or the parity bit replaces the 8th bit, unlike most other processors I've used that add the parity bit on.
The always incrementing value is counting receive errors (parity).
Mike.
The always incrementing value is counting receive errors (parity).
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: ERSKY9X Coding
...and you fixed it, bravo !
Telemetry is now working, the error counter stays at 0.
Will try some sensors later...
Telemetry is now working, the error counter stays at 0.
Will try some sensors later...
Re: ERSKY9X Coding
Mike:
whatever this test version you did fixed all the issue for 5K pot, no interference on P4 in either AD8 or AD10 by throttle or P3.
With my high impedance pot there is VERY slight influence on both AD8, AD10. I am uploading the video for that to show you including analog data in the video.
I think this is because as you said the high impedance pull the signal too low, but I don't know why it functions perfectly only when throttle or P3 is moved, there is slight movement of the quiescent P4.
I did find out the 'shakiness' of my digital metal servo at certain angle later during the test yesterday is because I think one of the gear tooth was stripped. when I was testing the Dec 9 version, there was one time the pot went way beyond 180 degree and stuck there, I have to unplug it then use force to turn the servo arm back into position. I think that damage the gear tooth and why later on only at one angle that shakiness occurs. No big deal, just replace a servo. I used another analog servo set up for this test today.
Is there a difference a digital servo would respond differently from analog servo when unusual input is given?
video coming up once loaded on Youtube.
Here are the videos, notes on you tube info telling which video is for what:
https://youtu.be/xGHQ_tEeCr8
https://youtu.be/cK6mG8QaZB4
https://youtu.be/P6flhzPiYpg
https://youtu.be/DaVBcZMxz0Y
whatever this test version you did fixed all the issue for 5K pot, no interference on P4 in either AD8 or AD10 by throttle or P3.
With my high impedance pot there is VERY slight influence on both AD8, AD10. I am uploading the video for that to show you including analog data in the video.
I think this is because as you said the high impedance pull the signal too low, but I don't know why it functions perfectly only when throttle or P3 is moved, there is slight movement of the quiescent P4.
I did find out the 'shakiness' of my digital metal servo at certain angle later during the test yesterday is because I think one of the gear tooth was stripped. when I was testing the Dec 9 version, there was one time the pot went way beyond 180 degree and stuck there, I have to unplug it then use force to turn the servo arm back into position. I think that damage the gear tooth and why later on only at one angle that shakiness occurs. No big deal, just replace a servo. I used another analog servo set up for this test today.
Is there a difference a digital servo would respond differently from analog servo when unusual input is given?
video coming up once loaded on Youtube.
Here are the videos, notes on you tube info telling which video is for what:
https://youtu.be/xGHQ_tEeCr8
https://youtu.be/cK6mG8QaZB4
https://youtu.be/P6flhzPiYpg
https://youtu.be/DaVBcZMxz0Y
Re: ERSKY9X Coding
Mine had some readings then it died.
Re: ERSKY9X Coding
Died?
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: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
kaos: Try adding a 1nF capacitor between AD8/10 and ground.
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: ERSKY9X Coding
Sorry, I went to bed. here is a picture of the Xtreme9x debug screen with the new 16 bit software and mike's test software.
I used my module without the inverter and port 2 set to 9600 baud. I do not know of any changes to the baud rate or the port as far as inverting the signal goes. When it worked before it worked using the old software with inverter and on the er9x, ar9x and 9xr-pro but not on the 9Xtreme. I tried with inverter also.
I used my module without the inverter and port 2 set to 9600 baud. I do not know of any changes to the baud rate or the port as far as inverting the signal goes. When it worked before it worked using the old software with inverter and on the er9x, ar9x and 9xr-pro but not on the 9Xtreme. I tried with inverter also.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
Do you have the SBUS type protocol firmware on your MULTI module?
That display shows the values I would expect on the top two lines.
You use COM2 with no inverter (3.3V logic levels).
Perhaps Willhac will confirm the exact firmware he has on his MULTI module.
Mike.
That display shows the values I would expect on the top two lines.
You use COM2 with no inverter (3.3V logic levels).
Perhaps Willhac will confirm the exact firmware he has on his MULTI module.
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: ERSKY9X Coding
Yes, it's the test version Midelic posted here :
http://www.rcgroups.com/forums/showthre ... 6&page=148
My setting are :
UsrProto : FrSky
COM2 : telemetry
baudrate is forced by MULTI as Mike explained above.
I did a few ground range tests today with it, it seems quite the same with the DJT. I'll test the range in real condition with an old foamie when I can (bad weather for the moment !)
http://www.rcgroups.com/forums/showthre ... 6&page=148
My setting are :
UsrProto : FrSky
COM2 : telemetry
baudrate is forced by MULTI as Mike explained above.
I did a few ground range tests today with it, it seems quite the same with the DJT. I'll test the range in real condition with an old foamie when I can (bad weather for the moment !)
Re: ERSKY9X Coding
yes I did use sbus type firmware with com2 no inverter but it did not work.MikeB wrote:Do you have the SBUS type protocol firmware on your MULTI module?
That display shows the values I would expect on the top two lines.
You use COM2 with no inverter (3.3V logic levels).
Perhaps Willhac will confirm the exact firmware he has on his MULTI module.
Mike.
What is worse, when I switched back to the older firmware and using er9x, it dropped the hub data and only shows rssi tssi a1 and a2 voltage. I tried 9Xtreme with version 3262-mike on port 1 with DJT module and the old multiprotocol firmware. All telemetering works. I will have to troubleshoot this farther, I think there is something else wrong altogether. I will get back to you.
OK, I got my shorts figured out, and I am not getting the new stuff to work yet. But the old stuff works on 9Xtreme now with V.3277-Mike ersky9x-T and "hub" firmware.
Last edited by tedbmoss on Wed Dec 23, 2015 4:53 am, edited 4 times in total.
Re: ERSKY9X Coding
I don't think using a different output from module that is not plug and play like all the other modules will be widely accepted, I fear that only a few people will ever use this marvelous invention for this reason.
Re: ERSKY9X Coding
Mike: I just did the test by putting a 1nF cap between AD8-gnd, and AD10-gnd each.MikeB wrote:kaos: Try adding a 1nF capacitor between AD8/10 and ground.
Mike.
The 5K pot still function perfectly. The high impedance pot on AD8 is very close to perfect, ever so slightly moved, may be a hair if I fully concentrate looking at it when p3/throttle is moved. But on AD10 is a totally different story. After the calibration, the pot won't even center any more, I was trying to see if I can set an offset in limit to center it, when cursor is moving down the line on limit page from ch1 to ch8, each line moved the servo will jump.
After I switched from AD8,10 back and forth, I can hear the spker seems to have some noises I never heard before.
Mike, I think we have been fooling around with this enough. As long as we know with the most recent test version(the one says for Kaos test), it works with 5K pot perfectly (not the one you gave jhsa). Very rarely people is going to try to use such a high impedance pot with this new hardware function activated any way. Don't waste your time on this.
Just in the new release version of ERSKY9x put the last test programming in there, it will work for everyone (99.999% of the time).
Now, it is time for X'mas, drop the RC stuff (for a while), let's all enjoy a Merry X'mas!!!
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
OK. If you need to use high impedance pots, then you probably need to add an op-amp (rail to rail eg MCP602) to buffer the output so it becomes low impedance.
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: ERSKY9X Coding
There is no problem with the pot using the original pot's circuit, only the new enhanced function using AD8, AD10 for pots has this issue. I think it is just the limit of this circuit that you squeezed out of the AR9X board.
Time is not all wasted, now we know the program will work flawlessly with switches and 'normal' pots with the new found function.
If Skynorth send me the multi I/O board along with the op-amp, I will be glad to test it again.
Thx again for working on this!
Time is not all wasted, now we know the program will work flawlessly with switches and 'normal' pots with the new found function.
If Skynorth send me the multi I/O board along with the op-amp, I will be glad to test it again.
Thx again for working on this!
Re: ERSKY9X Coding
Mike:
I was using the r218i Multi 16ch test version this evening, found a couple minor things you may want to keep in your to do list.
Here are the pics. I also found my timer when counting down to zero won't sound alarm anymore, that may be my programming, I will check again. but it used to have a "-" minus sign in front of time after counting down past zero. Now it does not have that minus sign. Is that on purpose? edit: just found out there IS a center mark on throttle, it is because the slider just past the center, but all 3 other trim will stop and vibrate when hitting the center, only throttle trim will go right through it without vibration or pause.
I was using the r218i Multi 16ch test version this evening, found a couple minor things you may want to keep in your to do list.
Here are the pics. I also found my timer when counting down to zero won't sound alarm anymore, that may be my programming, I will check again. but it used to have a "-" minus sign in front of time after counting down past zero. Now it does not have that minus sign. Is that on purpose? edit: just found out there IS a center mark on throttle, it is because the slider just past the center, but all 3 other trim will stop and vibrate when hitting the center, only throttle trim will go right through it without vibration or pause.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
Just turn "Throttle trim" Off.
The centre 'blob' on the throttle trim is not displayed if throttle trim is on, and the "TTm" beside the timer also disappears. The "TTm" is overwriting the "-" sign.
Thinking about this, we don't need the "TTm" if the 'blob' isn't shown.
Mike.
The centre 'blob' on the throttle trim is not displayed if throttle trim is on, and the "TTm" beside the timer also disappears. The "TTm" is overwriting the "-" sign.
Thinking about this, we don't need the "TTm" if the 'blob' isn't shown.
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: ERSKY9X Coding
True
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: ERSKY9X Coding
ha, another little secret.
Is it true now when a new model or lne of program is added, it is dfaulted to throttle trim as on?
I never used throttle trim(no nitro engine), but I don’t recall I need to change that before. Keep forgetting checking that one.
Is it true now when a new model or lne of program is added, it is dfaulted to throttle trim as on?
I never used throttle trim(no nitro engine), but I don’t recall I need to change that before. Keep forgetting checking that one.
Re: ERSKY9X Coding
Another thread that help me as well lol
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: ERSKY9X Coding
Now if I could figure out where I turned on the beep in center of throttle gimbal ?
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: ERSKY9X Coding
Dbswans:
under model setup ->General-> 3rd page last item or at first page 1st line use up button go straight to the last item of 3rd page.
I know, er9x is getting so sophisticated, some times it is hard to dig out all the functions you want to find. I only remember those I use most.
under model setup ->General-> 3rd page last item or at first page 1st line use up button go straight to the last item of 3rd page.
I know, er9x is getting so sophisticated, some times it is hard to dig out all the functions you want to find. I only remember those I use most.
Re: ERSKY9X Coding
Mike:
there is something going on with FRsky and AR9X.
I was testing the r218i with multi, Multi binds and got telemetry via com2(non rs232) fine. but when I use a DJT to compare telemetry hub data, I can get the telemetry data but servo goes crazy and ESC won't bind. I have tried the version that we were testing the pots (only for kaos version) and then went all the way back to Nov 9 version of Ersky9x, the DJT won't bind properly. The multi module binds fine with r218i.
The DJT also binds fine with telemetry on my er9x Tx and Sky9x Tx both have older version on them.
I have not used DJT with AR9X till now. so I don't know whether it was working before on AR9X.
there is something going on with FRsky and AR9X.
I was testing the r218i with multi, Multi binds and got telemetry via com2(non rs232) fine. but when I use a DJT to compare telemetry hub data, I can get the telemetry data but servo goes crazy and ESC won't bind. I have tried the version that we were testing the pots (only for kaos version) and then went all the way back to Nov 9 version of Ersky9x, the DJT won't bind properly. The multi module binds fine with r218i.
The DJT also binds fine with telemetry on my er9x Tx and Sky9x Tx both have older version on them.
I have not used DJT with AR9X till now. so I don't know whether it was working before on AR9X.
Last edited by kaos on Sun Dec 27, 2015 10:30 pm, edited 3 times in total.
Re: ERSKY9X Coding
Deleted.
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: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
You do have the protocol set to PPM don't you?
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!
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
I'll run a test tomorrow, when I get some time. I've just spent a LOT of time tracking down a bug that was affecting my software serial operation. It turned out to be in the (STM supplied) USB joystick code that completely upset all the interrupt priorities.
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: ERSKY9X Coding
No hurry. take your time. At least I know I am not going crazy.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
I've just flashed prov218i to my AR9X board. I have the same protocol settings as you, and my DJT works fine with a D8R-II.
If you have a trainer cable, try:
Make sure the trainer source is set to "Jack", then switch off and remove the Tx module.
Radio switched off, plug in the trainer cable, radio should power up.
Go to the trainer menu.
Now (carefully) hold the tip of the jack plug at the other end of the trainer cable on pin 1 of the module connector.
The CAL numbers at the bottom of the screen should respond to the sticks.
Mike.
If you have a trainer cable, try:
Make sure the trainer source is set to "Jack", then switch off and remove the Tx module.
Radio switched off, plug in the trainer cable, radio should power up.
Go to the trainer menu.
Now (carefully) hold the tip of the jack plug at the other end of the trainer cable on pin 1 of the module connector.
The CAL numbers at the bottom of the screen should respond to the sticks.
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!