OpenXsensor Configurator

Development & General Chat for the superb openxvario project.

Moderator: rainer

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

Re: OpenXsensor Configurator

Post by jhsa »

Yeah, sorry. It was definitely too late for me.. :)
As I stressed on my post above, I am not criticizing, far from it, I'm just trying to help ;)

Thank you for this configurator. It will make our lives a little easier..

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

davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

jhsa wrote: I'm just trying to help
That's what I understood and I was just trying to explain the current choices. ;)

I've a pretty clear idea of what I think is good for the first release, then, we could make further changes based on user experience.
davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

Hi,

Second beta !
OXS_conf_07.jpg
Now, you have to use the write button :)

The aim (if you accept the mission), is to check if the configurator can spot every possible mistake we could do in the settings. As you probably guessed, all the tests code is activated by the famous write button so...

I've also replaced all the text field entries by number boxes (clic and drag horizontally), because the library I use for the GUI doesn't handle them very well :roll:

Good luck ;)
Attachments
OXS_Configurator_beta2_win32.rar
(4.05 MiB) Downloaded 293 times
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenXsensor Configurator

Post by jhsa »

can't select temperature?
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
davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

Hi João,

Yes, temperature is disabled because I was using a MCP9700A sensor with a special compensation error calculation, and mstrens found it too restrictive and preferred that it be done with a volt(x) measurement and some offset settings.
It's, indeed, possible, but I couldn't do that, as I don't have a thermometer to calibrate the sensor. So I kept it in the configurator and I'll use it with a special OXS version...

Bye.

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

Re: OpenXsensor Configurator

Post by jhsa »

Ah ok. That explains it ;)

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
davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

Hi,

I am pleased to announce the release of the first version of OXS Configurator :)
OXS_conf_08.jpg
Actual and future downloads & docs links: https://code.google.com/p/openxsensor/wiki/OXS_Index

Hope you like it ;)

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

Re: OpenXsensor Configurator

Post by jhsa »

Wow, of course we will like it :) you do know the problems people have to configure the damn thing (oXS) otherwise you wouldn't have done this :)

THANK YOU SO MUCH..

João
EDIT: And did the oXs google code page also get a face lift? It looks like it did.. NICE :)
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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenXsensor Configurator

Post by jhsa »

Ok, First impression, still didn't flash the arduino, I'm only playing with it at the moment ;)
It took me a while to find out how to change the divider ratio for the voltages.. But i found out that I must hover the mouse over the numbers and turn the wheel.. On the offset though, it takes a few spins to change the number by one :)

Also, could the configurator calculate the maximum voltage allowed for that divider? You can calculate it based on the reference voltage and divider ratio, correct? Then you could display it under the offset. I think that would help people not to use the wrong divider by mistake and destroy the arduino because they applied a too high voltage due to a wrong divider.

That is what I found for now..
Great job. Thanks

João

EDIT: What value should I insert for a 4:1 divider? 4.00??
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
KAL
Posts: 552
Joined: Thu Oct 10, 2013 4:36 pm
Country: Germany
Location: somewhere near Rothenburg ob der Tauber

Re: OpenXsensor Configurator

Post by KAL »

Splendid work,

according to the dividers: what about reading the 2 resistor values instead of their ratio?

@João: If you hover over the number, try to press left button and move mouse to left or right.

Klaus
( TH9X / 9XTreme / FrSky DHT / Spektrum / Multi / RotEnc )
( 9XR PRO / erSKY9x  / FrSky DHT / Spektrum / Multi / RotEnc / P3 as Slider )
davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

jhsa wrote: It took me a while to find out how to change the divider ratio for the voltages..
As KAL already said, you can also click and drag to change the value of these numberbox.
I've replaced the texfields because they were very buggy...
Also, could the configurator calculate the maximum voltage allowed for that divider?
Good idea, will see.
What value should I insert for a 4:1 divider? 4.00??
Yes, the divider factor is what you put under the line with 1 above ;)
To be more accurate, you should measure your resistors with a good multimeter and put the right value in the divider factor field, that's why I've set them up to 2 decimals.
KAL wrote:according to the dividers: what about reading the 2 resistor values instead of their ratio?
It was a possibility, but I wanted a simple, compact interface and if you're using more than 2 resistors ?

I will work on wiki documentation to explain how to use and set up OXS with OXS Configurator.

Thanks for your feedback guys !

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

Re: OpenXsensor Configurator

Post by jhsa »

Ah yes, that works with the m0use.. thanks.. :)

With the resistors is also an excellent idea.. we would just have to measure the resistors with a multimeter and insert the exact values.. That would be accurate as most multimeters have an error of aproximately 1%.
I remember that the oXs calculated the divider that way in the beginning, and I did like it.. no offset needed even if it was there. and the voltage was accurate.
with the present calculation, when the voltage should be 0 it displays 0.1 at times. Don't know why.. But it is accurate when reading higher voltages.. Still prefer the old way as I said above, so if you could do it that way, it would be greatly appreciated ;)

João

EDIT: Davx, what do you mean with more than 2 resistors.. even if you insert a third resistor in series with the arduino pin, only the 2 main resistors count for the calculation.. Also if you make a series with 2 or more resistors, you can measure the value of the series with the multimeter and insert it in the configurator.. That would be easier and user friendly for the people because they didn't even have to calculate a divider as it would be done in the program by using the resistor values.. The people would just have to insert the correct resistor values. easy peasy :) Many people, like me, can't calculate :D So I'm a good example :mrgreen:
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 »

Hi.
Klaus (aka KAL) pointed me to your OSX Configurator.

Good idea to have a linux version! Have several (stupid) questions about some functions, I have seen.

But first of all, tried to put a link on my linux desktop. Funny, could not link the executable directly, but had to create a bash file in my home folder, which then could be linked to an icon on the desktop.

Now it looks good!! Nice icon!!

About those (stupid) questions. Have to sleep over it first, might solve some ;)

br KH
Attachments
Bildschirmfoto67.jpeg
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

Might be a good idea, to have a small extra start script in the linux package.

br KH
davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

Hi,
jhsa wrote: With the resistors is also an excellent idea.. we would just have to measure the resistors with a multimeter and insert the exact values..
That would be easier and user friendly for the people because they didn't even have to calculate a divider as it would be done in the program by using the resistor values..
It's a good idea but there is more to consider, the resistors values have a meaning, we just can't put any resistors with just a right divider. As I am not an electronics engineer, I've to find again a good post somewhere which was explaining how to choose the resistors value.

About calculations, we're talking about simple addition and division here, is it really that hard :)

For the moment, I may rather work on the wiki.
kalle123 wrote:But first of all, tried to put a link on my linux desktop. Funny, could not link the executable directly, but had to create a bash file in my home folder, which then could be linked to an icon on the desktop.
In fact, in linux, OXS_Configurator is not an executable, it's a script. And I'm very new to linux so I don't know it very well :oops:
Might be a good idea, to have a small extra start script in the linux package.
Yes, I agree, will try to understand how to ;)

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

Re: OpenXsensor Configurator

Post by MikeB »

To get a good analog to digital reading the resistance of the voltage being measured must be less than 10K.
If using a voltage divider, then this means the PARALLEL combination of the resistors in the divider must be less than 10K. I know that sounds odd since the resistors are in series as a divider but that is how it works.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

Thanks for your input Mike, I will use it for the wiki.
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

@davx.

Tried to place a link to OXS_Configurator script om my desktop. No chance.

Added a bash script inside the OXS_Configurator_v1.0_linux folder with those two lines

cd /home/user/applications/OXS_Configurator_v1.0_linux/oxs_configurator_v1.0
./OXS_Configurator


That bash script could then be linked to desktop ...

On PCLinuxOS 32 bit KDE system

I am just a simple user, not a programmer ;)

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

Re: OpenXsensor Configurator

Post by jhsa »

Of course people can be suggested a value for the resistors but that's not the only point to consider in my opinion. In any case people will have to measure the exact value of the resistor to achieve the right value for the resistor. Some people might not have that value of resistor and have an aproximate one. Like for example 1.2K instead of 1.5K. That won't give an exact dvider for example. I know we can go to online voltage divider calculators and see the ratio, but some people might not be able to. An the formula is still a formula. I think that by inserting the values of the resistors, the result would be more accurate, and and if it can be implemented, why not? After all that is the reason why you wrote this configurator, right? To make it easier to the people by avoiding all the calculations we had to do before. ;)
I did find the way Rainer did it before more accurate than the way it is done now. And easier.
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 »

Did two screenshots of OX Configurator.

The help texts (when available) show up here very small, nearly unreadable (OK, i am old ... )
Bildschirmfoto69.jpeg
Bildschirmfoto68.jpeg
One question: what is behind "SAVE DATA TO EEPROM"? I don't get a meaning?

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

Re: OpenXsensor Configurator

Post by jhsa »

That is used for example when you do two flights or more with just one lipo and you have a current sensor on board that reads the used capacity. The amount of charge you have taken from the battery on one flight will be stored in the oXs eeprom. So when you fly the second time, it starts from that value and not from zero. This is normally used with a push button connected to the arduino so you can reset the value to zero when you put a new battery in the model..

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 »

João, thanx. That explains.

No time at the moment. Formula 1 is on!!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenXsensor Configurator

Post by jhsa »

Ha ha, I used to watch it years ago.. :mrgreen:
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
davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

kalle123 wrote:@davx.
Added a bash script inside the OXS_Configurator_v1.0_linux folder with those two lines
Ok, will try that.
jhsa wrote:...I think that by inserting the values of the resistors, the result would be more accurate, and and if it can be implemented, why not?
The result would not be more accurate because the divider takes 2 decimals but I think that I've quite understood what you want João :mrgreen:
This feature needs some thinking to make it right, and I want to write some docs, and my time is limited, and...no, nothing more :)
kalle123 wrote: The help texts (when available) show up here very small, nearly unreadable (OK, i am old ... )
That's what I thought but it's better than nothing for the moment, don't know if I can make them bigger...
And João already answered your second question.

Bye.

PS: @kalle123, and how did you like that Grand Prix ?
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 »

davx wrote: PS: @kalle123, and how did you like that Grand Prix ?
Renault is closing the gap to Mercedes a bit. And Mercedes has a big problem with Hamilton vs. Rosberg. 2nd round, and both cars collide ... :roll: and for sure Ricciardo is amazing!!

But for sure I have further questions about the OX configurator. I will come up with those.

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

Re: OpenXsensor Configurator

Post by jhsa »

davx wrote: The result would not be more accurate because the divider takes 2 decimals but I think that I've quite understood what you want João :mrgreen:
This feature needs some thinking to make it right, and I want to write some docs, and my time is limited, and...no, nothing more :)
On earlier versions of oXs it worked like this:

Code: Select all

#define RESISTOR_ANALOG_TO_GND 4700        // 4.7kOhm resistor
#define RESISTOR_ANALOG_TO_BATTERY 15000   // 15kOhm resistor
We would then measure the resistors ans insert the values in the values above. Obviously the values would be a bit different as there are tolerances, so maybe:

Code: Select all

#define RESISTOR_ANALOG_TO_GND 4732        // 4.7kOhm resistor
#define RESISTOR_ANALOG_TO_BATTERY 14970    // 15kOhm resistor
Then from here the code would do all the calculation, we only needed to measure the resistors and insert the number. we didn't have to calculate the divider ratio. Only the name "Divider Ratio, or divider Factor" might scare some of the guys ;) :) Of course there was also an offset so people could correct insert the offset value, the same as at present.
So what I have been talking about is something like this:

Voltage Number - (All the Cell 1, cell 2, cell3, etc..
Pin Number - A0, A1, A2, etc, as you have now..
R1 (to Batt) - 15100 (Ohms)
R2 (to GND) - 4760 (Ohms)
Offset (mV) - Same as currently
Range (Or max Voltage allowed) - 20.86V This would be calculated based on the resistors used and the arduino reference voltage. In this case 5V.

So basically the code could make all the calculations based on the reference voltage and the resistor values. Much easier to understand for the normal mortal people that doesn't understand anything about mathematics :)
That is how it worked before. Sorry if I'm not very good explaining stuff. It is as bad as my math, believe me :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
davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: OpenXsensor Configurator

Post by davx »

Thanks João for your explanation but I was saying that I had already really very well understood what you were talking about :mrgreen:
ABBC3_OFFTOPIC
kalle123 wrote: F1
Yes, right analysis.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenXsensor Configurator

Post by jhsa »

Ha ha ha ha, :mrgreen: Yeah, I've read what you wrote again and realized that you in fact did say you understood.. Hmm, it could have saved me writing that long post :( I'm gettin' old :(

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
KAL
Posts: 552
Joined: Thu Oct 10, 2013 4:36 pm
Country: Germany
Location: somewhere near Rothenburg ob der Tauber

Re: OpenXsensor Configurator

Post by KAL »

Question/suggestion to current parameters:

The output offset for bidirectional current sensors has to be set at about half of Vcc.
Can/should this be managed by the configurator or is it sufficient to mention that in the future documentation?

What also puzzles me a bit is the offset in mV for a current measurement...

Klaus
( TH9X / 9XTreme / FrSky DHT / Spektrum / Multi / RotEnc )
( 9XR PRO / erSKY9x  / FrSky DHT / Spektrum / Multi / RotEnc / P3 as Slider )
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenXsensor Configurator

Post by jhsa »

when you calibrate a sensor, you have to look in the datasheet. And as the sensors send out a voltage that is proportional to the current, the datasheet says that for zero amperes, the sensor outputs (x)mV. That is why the offset is calibrated in mV

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

Post Reply

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