OpenXsensor Configurator

Development & General Chat for the superb openxvario project.

Moderator: rainer

mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens »

oXs take care of 2 types of Arduino : 5V 16Mhz and 3.3V 8 Mhz.
The selection is done in the Arduino IDE as Kalle123 said.

RightRudder
Posts: 241
Joined: Tue Jan 15, 2013 9:41 pm
Country: -

Re: OpenXsensor Configurator

Post by RightRudder »

so the compiler gets the information about the target board from the IDE and sets the right timer load values based on compile time switches set somewhere in the code?
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens »

In fact, based on your selected hardware, IDE defines some parameters that can be used/tested in the code.
E.g. in file oXs_out_frsky.h you have this code :

Code: Select all

  #if F_CPU == 20000000L   // 20MHz clock 
    // Sinan: Not tested                                                     
    #define TICKS2COUNTSPORT         348  // Ticks between two bits.
    #define TICKS2WAITONESPORT       348  // Wait one bit period.
    #define TICKS2WAITONE_HALFSPORT  520    // Wait one and a half bit period.
  #elif F_CPU == 16000000L  // 16MHz clock                                                  
    #define TICKS2COUNTSPORT         278  // Ticks between two bits.
    #define TICKS2WAITONESPORT       278  // Wait one bit period.
    #define TICKS2WAITONE_HALFSPORT  416    // Wait one and a half bit period.
  #elif F_CPU == 8000000L   // 8MHz clock
    // Assumes a 8MHz clock                                                   
    #define TICKS2COUNTSPORT         139  // Ticks between two bits.
    #define TICKS2WAITONESPORT       139  // Wait one bit period.
    #define TICKS2WAITONE_HALFSPORT  208    // Wait one and a half bit period.
  #else
    #error Unsupported clock speed
  #endif
RightRudder
Posts: 241
Joined: Tue Jan 15, 2013 9:41 pm
Country: -

Re: OpenXsensor Configurator

Post by RightRudder »

Ahhh yes this is exactly what I was concerned about. This makes life so easy for us with limited knowledge. I was afraid I would have to go digging in the code for those definitions and change the timer load values to use a different clock speed. I see that even 20MHz is a possibility. Thanks for helping me learn more about how the arduino IDE works!

Joe
pierrotm777
Posts: 7
Joined: Mon Jun 02, 2014 5:03 pm
Country: France, Metropolitan

Re: OpenXsensor Configurator

Post by pierrotm777 »

Nice idea. I follow this project.

User avatar
Kilrah
Posts: 11107
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: OpenXsensor Configurator

Post by Kilrah »

It's been inactive for 2 years.
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens »

I am sorry but the developper of the configurator has stopped supporting his tool.
So, the remaining solution is to edit manually the 2 files oXs_config_basic.h and oXs_config_advanced.h

If this is to difficult, you can explain which sensors/protocol you want and I can make the config files for you.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenXsensor Configurator

Post by jhsa »

Still, it is really a shame. I did love this tool :(

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
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

jhsa wrote: Sun Sep 30, 2018 9:22 pm Still, it is really a shame. I did love this tool :(

João
Get used to
... edit manually the 2 files oXs_config_basic.h and oXs_config_advanced.h
You will love that way too ;)

br KH (who could search on backup HDDs here for a copy of that Configurator and post it here :mrgreen: )
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

Hi João.

Found a copy and it is still working ... :lol:

I bit obsolete, but never mind.

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

Re: OpenXsensor Configurator

Post by MikeB »

Was the source code of this ever published?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

Mike, that is, what I found here.

Might have a look. It was written in java ...

br KH
Attachments
OXS_Configurator_v2.1_linux.zip
(4.53 MiB) Downloaded 359 times
Carbo
Posts: 467
Joined: Fri Aug 02, 2013 6:55 pm
Country: Germany
Location: Freinsheim RP

Re: OpenXsensor Configurator

Post by Carbo »

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

Re: OpenXsensor Configurator

Post by jhsa »

kalle123 wrote: Mon Oct 01, 2018 5:42 am

Get used to
How do you think I do it?? :D
You will love that way too ;)
No I don't :mrgreen: I prefered the configurator by far.
And it would make life easier to users that never had contact with programming, and people like myself that can't do math :mrgreen:
The configurator did some of the calculations for us..

Editing the config file will NEVER be the same as inserting the values in a dedicated app. So, how can I love editing a config file? Easy answer, I don't.. :mrgreen:

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
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

So no use to cheer you up, then.

But João, I am used to do the configuration in the config file, but I hate it being split up in basic and advanced ;)

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

Re: OpenXsensor Configurator

Post by jhsa »

kalle123 wrote: Mon Oct 01, 2018 4:22 pm So no use to cheer you up, then.
:mrgreen: looool :mrgreen:
But João, I am used to do the configuration in the config file, but I hate it being split up in basic and advanced ;)
Well, what I can say is that sometimes I do find myself switching from one to the other trying to find where the options I need are. I guess developers have a much different idea of what the expression "User Friendly" means :mrgreen:
So, we can always help them by suggesting improvements to the projects, and it is a nice way of participating in those projects as well.. ;) :) The configurator was actually an wonderful addition to the oXs. I hope someone pick the project up from where it was left.
Another great tool for both Ersky9x and OpenTX is the great voice files creator TTSAutomate.. This one is being maintained of course.. :)

I confess, it has been a while since last time I built an oXs, but I have a couple new gliders, and I will have to build a couple varios for them.
I have been busy with some other projects.. One of them is called WORK :shock: :o :evil: :twisted:

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
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

OpenXsensor and D8R-11.

Post by Endorphin »

Suncoaster wrote: Wed Jul 22, 2015 1:10 pm D6FR.jpg
........................
I have an arduino nano. I hope to be able to use this to build an tachometer (RPM sensor) for my CDI engine. My tx. is a FrSky Taranis X9D Plus.
Do I use the same connections as in the diagram for the D6FR receiver above?
If so, what is the size of the capacitor please?

Edit: Oopps, the .jpg did not copy. No post numbers............so, please refer to the picture in the post top of the page #6.
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

These are the remarks REV sensor:
**** 7 - RPM (rotations per minute) sensor settings (optional) ***************************************************************************
* It is possible to measure RPM using a sensor connected to pin ICP (=PB0, = pin 8) of OXS.
* This sensor must provide a level change (0 - Vcc) on this pin each time a blade passes in front of it.
* The number of blades has to be defined in PULSES_PER_ROTATION except for Frsky protocol (OpenTx, ...) where it is supposed to be done on Tx side only (so this parameter is discarded for Frsky prtocol).
* It is also possible to build a small PCB board that will provide pulsed when connected on a brushless wire.
* To activate this function, put YES instead of NO in line #define CALCULATE_RPM .
* Note: The digital pin 8 (PB0/ICP) is the only one to be used to measure RPM.
* for Frsky protocol, the value calculated by oXs is in Hertz (and not in roration per minute) and the conversion is done by the TX
************************************************************************************************************************
#define CALCULATE_RPM NO
#define PULSES_PER_ROTATION 2
so what you need, is a converter to a level change (0 - Vcc). This can be done with a magneto and a hall sensor. How to take a pulse from the CDI ignition, I can not say. I am using bl-motors.

br KH
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

Re: OpenXsensor Configurator

Post by Endorphin »

Very basic question, apologies in advance:

What function does the configurator perform?
Does it provide an interface between the users desktop and a connected Arduino device?

Jim.
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens »

It is a program that run on you pc that allows you in an easy way to generate the config files.
So it avoid to edit manually the files oXs_config_basic.h and oXs_config_advanced.h.

Compilation and flashing must still be done using the Arduino IDE.
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens »

Please note that some one reported a bug in the files being generated and I have not yet fixed it.
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

Re: OpenXsensor Configurator

Post by Endorphin »

mstrens wrote: Sat Jan 18, 2020 9:07 am It is a program that run on you pc that allows you in an easy way to generate the config files.
So it avoid to edit manually the files oXs_config_basic.h and oXs_config_advanced.h.

Compilation and flashing must still be done using the Arduino IDE.
Very good, thanks for the answer.
I am trying to find the linux version to download and install.
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens »

It runs under python 3.
So I expect it should run on linux but I never tried it.
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

Re: OpenXsensor Configurator

Post by Endorphin »

Is it easier to install this application in Win7?
I still have a functional partition on one of my computers with Win7 installed and still operational.
I will try that if it is easier.
I am stuck with the "compile from source" task. Not able to do it.
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens »

With windows it is easy because there is just an exe that contains all. Just run the exe.
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

Re: OpenXsensor Configurator

Post by Endorphin »

Ok. I will try that.
Or I will install an Win emulator.............Wine or something............in my much preferred Linux Mint OS.
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

What a fuss.

Just run it in your preferred LM.

This is LM 19.3.
Image

Do a

Code: Select all

sudo apt install python3-tk
in terminal to install the missing thinker package and then run the Configurator.

br KH
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

Re: OpenXsensor Configurator

Post by Endorphin »

Thanks KH, I will give it a go.
I am having no success in flashing an arduino nano with openXsensor manually!

Edit:
I did download the file and extract it. However, it would not open in terminal. (OXS_Configurator_v2.1_linux)
How did you install it please?

Jim.
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

Jim, did you

- download the oXs zip package from here and unpack it? https://github.com/openXsensor/openXsensor

You should see those folders Image

- install this package here ? Any error messages?

Code: Select all

sudo apt install python3-tk
- then do, what you see in that pic here and the program starts. You must be in subfolder 'Python 37 Sources'


Image


br KH
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

Re: OpenXsensor Configurator

Post by Endorphin »

Kalle,

Thanks for going to the trouble to post all the instructions. However, I still cannot get it to install in terminal.
I will attach a screenshot of where I got up to.
Sorry about this...........perhaps I should give up trying?

Jim.
Attachments
python37.png
Will not open in terminal.png

Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”