OpenXsensor Configurator
Moderator: rainer
Re: OpenXsensor Configurator
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.
The selection is done in the Arduino IDE as Kalle123 said.
-
- Posts: 241
- Joined: Tue Jan 15, 2013 9:41 pm
- Country: -
Re: OpenXsensor Configurator
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
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 :
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
-
- Posts: 241
- Joined: Tue Jan 15, 2013 9:41 pm
- Country: -
Re: OpenXsensor Configurator
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
Joe
-
- Posts: 7
- Joined: Mon Jun 02, 2014 5:03 pm
- Country: France, Metropolitan
Re: OpenXsensor Configurator
Nice idea. I follow this project.
Re: OpenXsensor Configurator
It's been inactive for 2 years.
Re: OpenXsensor Configurator
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.
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
Still, it is really a shame. I did love this tool
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: OpenXsensor Configurator
Get used to
You will love that way too... edit manually the 2 files oXs_config_basic.h and oXs_config_advanced.h
br KH (who could search on backup HDDs here for a copy of that Configurator and post it here )
Re: OpenXsensor Configurator
Hi João.
Found a copy and it is still working ...
I bit obsolete, but never mind.
Found a copy and it is still working ...
I bit obsolete, but never mind.
- MikeB
- 9x Developer
- Posts: 17994
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: OpenXsensor Configurator
Was the source code of this ever published?
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: OpenXsensor Configurator
Mike, that is, what I found here.
Might have a look. It was written in java ...
br KH
Might have a look. It was written in java ...
br KH
- Attachments
-
- OXS_Configurator_v2.1_linux.zip
- (4.53 MiB) Downloaded 370 times
Re: OpenXsensor Configurator
How do you think I do it??
No I don't I prefered the configurator by far.You will love that way too
And it would make life easier to users that never had contact with programming, and people like myself that can't do math
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..
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: OpenXsensor Configurator
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
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
looool
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" meansBut João, I am used to do the configuration in the config file, but I hate it being split up in basic and advanced
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
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
OpenXsensor and D8R-11.
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
These are the remarks REV sensor:
br KH
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.**** 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
br KH
Re: OpenXsensor Configurator
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.
What function does the configurator perform?
Does it provide an interface between the users desktop and a connected Arduino device?
Jim.
Re: OpenXsensor Configurator
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.
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
Please note that some one reported a bug in the files being generated and I have not yet fixed it.
Re: OpenXsensor Configurator
Very good, thanks for the answer.
I am trying to find the linux version to download and install.
Re: OpenXsensor Configurator
It runs under python 3.
So I expect it should run on linux but I never tried it.
So I expect it should run on linux but I never tried it.
Re: OpenXsensor Configurator
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.
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
With windows it is easy because there is just an exe that contains all. Just run the exe.
Re: OpenXsensor Configurator
Ok. I will try that.
Or I will install an Win emulator.............Wine or something............in my much preferred Linux Mint OS.
Or I will install an Win emulator.............Wine or something............in my much preferred Linux Mint OS.
Re: OpenXsensor Configurator
What a fuss.
Just run it in your preferred LM.
This is LM 19.3.
Do a in terminal to install the missing thinker package and then run the Configurator.
br KH
Just run it in your preferred LM.
This is LM 19.3.
Do a
Code: Select all
sudo apt install python3-tk
br KH
Re: OpenXsensor Configurator
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.
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
Jim, did you
- download the oXs zip package from here and unpack it? https://github.com/openXsensor/openXsensor
You should see those folders
- install this package here ? Any error messages?
- then do, what you see in that pic here and the program starts. You must be in subfolder 'Python 37 Sources'
br KH
- download the oXs zip package from here and unpack it? https://github.com/openXsensor/openXsensor
You should see those folders
- install this package here ? Any error messages?
Code: Select all
sudo apt install python3-tk
br KH
Re: OpenXsensor Configurator
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.
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.