Search found 1369 matches

by mstrens
Sat Mar 07, 2020 8:57 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

First, a RC filter does not cut off 100% of the frequencies higher than a value. It is a progressive filter. More important: the formula applies on a sinusoîdal signal but the signal coming from the Hall sensor is not sinusoïdal. It is a digital signal and probably look more as a pluse. So it contai...
by mstrens
Wed Mar 04, 2020 7:18 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

For RPM, oXs counts the number of pulses in an enlapsed time. If the signal coming on pin D8 is noisy, the arduino can recognise some "noise" as a pulse and so report a to high RPM value. In order to avoid (reduce) this, you can try adding a RC filter between the CDI and the pin D8. Resistor is put ...
by mstrens
Tue Feb 25, 2020 11:51 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: PPM_SPORT Mode, not found VSPEED
Replies: 7
Views: 1425

Re: PPM_SPORT Mode, not found VSPEED

I do not yet know.
I did not yet look at your setup.
by mstrens
Sun Feb 23, 2020 8:10 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

Fine that you continue the project and are finally happy. If the values are erratic when using the CDI, it is probably due to some noise in the signal. You could confirm this if you can look at the output signal from CDI with your scope. There are probably some high frequencies. If so, I expect it w...
by mstrens
Sat Feb 22, 2020 9:05 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

There is no reason crossing up the power rails.
You just need a common ground.
In my schema, I do not use the power rail from the CDI.
When I say to connect a diode to Vcc it means Arduino Vcc which is generated from raw pin (with internal regulator) which is coming from you Rx power supply I presume.
by mstrens
Sat Feb 22, 2020 11:48 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

After studying your diagram for some minutes, I think I know how you have wired it up. But I am not at all sure, I must be honest. I will do a small CAD sketch tomorrow (it is very late here). Just to make sure I have it right. I have a 6.6 volts LiFe powered CDI unit, so I will have to add a regul...
by mstrens
Sat Feb 22, 2020 11:46 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

Fine that it works. Is the rpm value on the Tx a logical value?........................ I am not sure what you mean by "a logical value", sorry. ................... If you want, I can make a version removing those 2 items. In principe, I will just go back to the "official" version with the right co...
by mstrens
Sat Feb 22, 2020 11:25 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

--------------[diode --->----]------------[to 5V Vcc] | signal from motor----------[resistor about 10k]--------x--------------[Arduino D8] | | Ground ----[ diode ------->-------]--------------------------------------[Arduino Ground] I hope this is clear (display could depend of font size of your bro...
by mstrens
Sat Feb 22, 2020 10:51 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

Fine that it works. Is the rpm value on the Tx a logical value? In a previous post you said you got 6000 (when oXs sent 1000). Normally, it should be 60000 because TX converts the Hz to turn/min) Normally oXs should not - sent a dummy value to Tx for temperature - generates messages for the serial m...
by mstrens
Sat Feb 22, 2020 10:15 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

I understand what you explain. It is strange. I checked once more the differences between the 2 versions. I found a tipo fout in the latest version (a "," instead of a ";"). It is very strange that the compiler did not detect it. Furthermore, the generated code has exactly the same length with or wi...
by mstrens
Fri Feb 21, 2020 6:14 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

.......................................... It is not abnormal that you do not get really a signal on the scope if you look at the output pin D4 because the data are sent only a few time per sec and there is no easy way to trigger the signal on the scope. ............................... That makes s...
by mstrens
Thu Feb 20, 2020 5:16 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

So, it seems to work. You can see in the screenshot that when RMP is not 0, some values being sent change. Eg. when Rpm = 17 (decimal), you find a "11" before (which is a hexadecimal representation of 17 decimal = (1x16)+1 = 11 hexa. It is not abnormal that you do not get really a signal on the scop...
by mstrens
Thu Feb 20, 2020 12:12 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

did you check with the scope the signal on the input pin D8 when you move the magnet?

When you connect oXs to the PC (via USB) and open the arduino serial terminal (CTRL+SHIFT+M), you get Rpm = 0.
Does this Rpm value change when you move the magnet fast enough?
by mstrens
Thu Feb 20, 2020 11:20 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

I have looked at the arduino output 2 pin #8 on my little portable scope. It is noisy, just a lot of low level hash. Zero response from the hall sensor when it is excited by the rotating magnet. What do you mean by arduino output 2 pin #8 Do you mean digital pin 8 (=D8). Note: It is an input and no...
by mstrens
Thu Feb 20, 2020 10:26 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

I plan to connect my little scope to the arduino pin# 8 tonight and rotate a magnet in front of the hall sensor. I just happen to have made a little magnetic stirrer last week, so I can use that to simulate a rotating magnet in an engine hub. Like Karl did, described at the top of page # 3. It is f...
by mstrens
Thu Feb 20, 2020 7:56 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

In a previous post you said "I can use the pulse signal from the CDI to provide an input to pin #8 on the Arduino nana via an electrolytic capacitor". Do you know the voltage that the CDI provide? If it is a high voltage, you need a capacitor that support such a high voltage. If it is more than 5 V,...
by mstrens
Thu Feb 20, 2020 7:44 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

In order to get RPM, oXs needs to get a pulse each time your motor makes one revolution. So you need some hardware to generate those pulses. You can't just connect a wire on the plug because it is a high voltage that would just distroy your arduino (that does not accept more than 5 V on his input). ...
by mstrens
Wed Feb 19, 2020 8:54 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

So, the new sketch is uploaded in a correct way. Now you must test if the hardware module you build to capture pulses is working as expected. Which kind of hardware module did you build? Best is to test you hardware module without connecting it to the openXsensor. So connect you hardware module to y...
by mstrens
Wed Feb 19, 2020 7:56 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

Here a new set of files. You can just use it like the previous set of files. The purpose of this one is to let you make a test where oXs is connected to the PC (via USB) and not connected to the Rx. You should get continously a line of text. At the end of the line, you have Rpm=xxx where xxx is the ...
by mstrens
Wed Feb 19, 2020 6:35 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

Are you sure that the value on the TX is 6000? I expected it would be 60000 because the value that is sent is supposed to be in Hz (so 1/sec) and the value on Tx in tour/min (so X 60). What is the value that you get for Temp1. Is it 20 or 2? Anyway, the values does not matter a lot. What is importan...
by mstrens
Wed Feb 19, 2020 11:48 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

I will have to leave for a few hours (probably 6 hours).
We can continue later on if you want.

I presume it is very late for you. If so, sleep wel.
I am in Europe ant it is about 13:00
by mstrens
Wed Feb 19, 2020 10:32 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

Here all the files your need for this test. Just unzip it in a new directory (don't reuse any previous because there are some changes in different files. Check that openXsensor.ino file is in a directory named openXsensor (if not rename the directory). Open file openXsensor.ino. It should open ardui...
by mstrens
Wed Feb 19, 2020 10:09 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

what is the arduino pin that you connected to your Rx. Is it D4 or D2?
by mstrens
Wed Feb 19, 2020 10:04 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

Ok, I will prepare a whole set of oXs files that should just provide a dummy field.
by mstrens
Wed Feb 19, 2020 8:45 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

OK, sorry. If you want to try again later, just ask for. If you want, I could make some change to the code in order to force the sensor to send always a dummy value. If you Tx receives this value, then at least you should know that the communication works. The issue would then be in the way the RPM ...
by mstrens
Wed Feb 19, 2020 8:02 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

On this forum, you can upload your files as attachement if you can't easily make a copy/paste in the body.
by mstrens
Wed Feb 19, 2020 7:50 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

It is a good point that you continue trying to solve your issue. In your last post there was only one file content. I had expected that you would put 2 files (oXs_config_basic.h and oXs_config_advanced.h) In order to make it easier, I put here the 2 files that you should use. I already edited the "b...
by mstrens
Tue Feb 18, 2020 7:58 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

OK. No problem at all, It is your choice.

If you want to try again later, just let me know.

For info, as said, it is possible to edit the 2 files outside of arduino IDE and then to compile.
So it would for sure be possible to find a solution.
by mstrens
Tue Feb 18, 2020 11:50 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: Two computers, two different problems!

On my Dell Vostro 220 computer running Linux Mint 19.1, I am able to open the Arduino IDE by clicking on the openxsensor.ino file. Then I find the tabs. However, the tabs for the basic and the advanced files are not present! Lots of other tabs are offered but not the ones required. Mysterious! It n...
by mstrens
Tue Feb 18, 2020 9:01 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: RPM resolution?
Replies: 177
Views: 14664

Re: RPM resolution?

I think I begin to understand your mistake. It seems you try to put every thing inside one single file (with a function setup() and a function loop() at the end). This is not good. In openXsensor projects the code is spread on quite are many diferent files (about 20 or more). First check that you fo...

Go to advanced search