Page 7 of 8

Re: OpenXsensor Configurator

Posted: Sat Oct 15, 2016 6:47 am
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.

Re: OpenXsensor Configurator

Posted: Sun Oct 16, 2016 6:35 pm
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?

Re: OpenXsensor Configurator

Posted: Mon Oct 17, 2016 8:28 am
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

Re: OpenXsensor Configurator

Posted: Mon Oct 17, 2016 1:56 pm
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

Re: OpenXsensor Configurator

Posted: Sun Sep 30, 2018 4:44 pm
by pierrotm777
Nice idea. I follow this project.

Re: OpenXsensor Configurator

Posted: Sun Sep 30, 2018 5:28 pm
by Kilrah
It's been inactive for 2 years.

Re: OpenXsensor Configurator

Posted: Sun Sep 30, 2018 7:45 pm
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.

Re: OpenXsensor Configurator

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

João

Re: OpenXsensor Configurator

Posted: Mon Oct 01, 2018 5:42 am
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: )

Re: OpenXsensor Configurator

Posted: Mon Oct 01, 2018 6:37 am
by kalle123
Hi João.

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

I bit obsolete, but never mind.

Image

Re: OpenXsensor Configurator

Posted: Mon Oct 01, 2018 7:38 am
by MikeB
Was the source code of this ever published?

Mike

Re: OpenXsensor Configurator

Posted: Mon Oct 01, 2018 8:37 am
by kalle123
Mike, that is, what I found here.

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

br KH

Re: OpenXsensor Configurator

Posted: Mon Oct 01, 2018 8:42 am
by Carbo

Re: OpenXsensor Configurator

Posted: Mon Oct 01, 2018 11:31 am
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

Re: OpenXsensor Configurator

Posted: Mon Oct 01, 2018 4:22 pm
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

Re: OpenXsensor Configurator

Posted: Mon Oct 01, 2018 4:41 pm
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

OpenXsensor and D8R-11.

Posted: Sat Jan 18, 2020 4:19 am
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.

Re: OpenXsensor Configurator

Posted: Sat Jan 18, 2020 7:30 am
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

Re: OpenXsensor Configurator

Posted: Sat Jan 18, 2020 8:52 am
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.

Re: OpenXsensor Configurator

Posted: Sat Jan 18, 2020 9:07 am
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.

Re: OpenXsensor Configurator

Posted: Sat Jan 18, 2020 9:08 am
by mstrens
Please note that some one reported a bug in the files being generated and I have not yet fixed it.

Re: OpenXsensor Configurator

Posted: Sat Jan 18, 2020 9:52 am
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.

Re: OpenXsensor Configurator

Posted: Sat Jan 18, 2020 10:16 am
by mstrens
It runs under python 3.
So I expect it should run on linux but I never tried it.

Re: OpenXsensor Configurator

Posted: Sun Jan 19, 2020 12:37 am
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.

Re: OpenXsensor Configurator

Posted: Sun Jan 19, 2020 8:35 am
by mstrens
With windows it is easy because there is just an exe that contains all. Just run the exe.

Re: OpenXsensor Configurator

Posted: Sun Jan 19, 2020 8:58 pm
by Endorphin
Ok. I will try that.
Or I will install an Win emulator.............Wine or something............in my much preferred Linux Mint OS.

Re: OpenXsensor Configurator

Posted: Mon Jan 20, 2020 7:40 am
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

Re: OpenXsensor Configurator

Posted: Wed Jan 22, 2020 10:19 am
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.

Re: OpenXsensor Configurator

Posted: Wed Jan 22, 2020 11:37 am
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

Re: OpenXsensor Configurator

Posted: Wed Jan 22, 2020 12:20 pm
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.