RPM resolution?

Development & General Chat for the superb openxvario project.

Moderator: rainer

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

Re: RPM resolution?

Post by Endorphin »

Kilrah wrote: Wed Jan 22, 2020 6:43 am
EDIT: It seems I've answered my own question - the idea is to Open the openXsensor.ino file in Arduino IDE and this populates the entire project [...] and then Upload
Thanks Kilrah; I'm sure you know what it means!
I guess I will work it out in the fullness of time...........

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

Re: RPM resolution?

Post by Endorphin »

After some assistance from Kalle over on the other thread, I finally got an arduino nano successfully uploaded with OpenXsensor using the Configurator.
I had many failures. The "fix" was to change over to the old bootloader. A tip I found here: https://stackoverflow.com/questions/197 ... responding.

All worked fine after the change.
I hope to test the RPM tacho tomorrow.
Attachments
Old bootloader.png
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: RPM resolution?

Post by mstrens »

Great that you continued and found a solution.
Success with your RPM sensor.
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

Re: RPM resolution?

Post by Endorphin »

mstrens wrote: Thu Jan 23, 2020 10:25 am Great that you continued and found a solution.
Success with your RPM sensor.
Many thanks for the code and all the development work your and others have done towards this project.
I look forward to reporting on my sensor again after operational testing.

Jim.
Endorphin
Posts: 167
Joined: Tue Jan 26, 2016 7:46 pm
Country: Australia

Re: RPM resolution?

Post by Endorphin »

Kilrah wrote: Wed Jan 22, 2020 6:43 am
EDIT: It seems I've answered my own question - the idea is to Open the openXsensor.ino file in Arduino IDE and this populates the entire project [...] and then Upload
Sure enough, the clues were in that quote all along, thanks Kilrah!
(Oohh, why did I ever doubt it????).

Once I changed my arduino IDE bootloader over to the old bootloader, everything started to work as advised.

Jim.

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

Re: RPM resolution?

Post by Endorphin »

Which is the correct port to plug the openXsensor into a "D" series receiver?
Can somone tell me please?
I was never able to interpret the notation on the rx.

Edit:

I think I have figured it out. Please ignore.
Attachments
D series telemetry.png
Last edited by Endorphin on Fri Jan 24, 2020 8:02 am, edited 1 time in total.
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: RPM resolution?

Post by kalle123 »

It is the 'data-stream port'.

How to handle those 3 ports on the RX side is quite clear documented here

Image

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

Re: RPM resolution?

Post by Endorphin »

Deleted Post.

Project abandoned.
Attachments
Pin #8.png
Pin #8.png
Input and output pins.png
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: RPM resolution?

Post by jhsa »

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

Re: RPM resolution?

Post by Endorphin »

jhsa wrote: Fri Jan 24, 2020 1:30 pm Project abandoned? Why?? :O
João
Joao,

Only because it is taking far too much time for me to get it working. I have lots of other stuff to attend to. I will not be flying this plane that I wanted RPM for until June, and besides it is not important.
I might get back to it again later on.
Thanks for asking.

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

Re: RPM resolution?

Post by jhsa »

Jim, I did do it with an Hal sensor and installed it on an glow engine that I use only for testing. I have been working on some cool stuff for a glow airplane that I have, but will also have to finish it.. One of the things is a fuel gauge. all using openXsensor. I also built an onboard glow plug driver that reports if a plug goes bad. But I had to put this on hold because of other projects. The RPM part is working fine though. when you come back to it, please remind me of this little conversation :) Perhaps I can also work on my unfinished stuff. I didn't say anything before because I would have to spend some hours checking what I did and I don't have the time at the moment :(

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: RPM resolution?

Post by kalle123 »

Isn't that a thing, we all are suffering from? Too many unfinished projects, projects I want to start with ..... :mrgreen:

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

Re: RPM resolution?

Post by jhsa »

You are absolutely right :mrgreen: I have so many (not only for radio control) and I don't know if / when I will have time for them.. TIME is the big problem :)

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

Re: RPM resolution?

Post by Endorphin »

jhsa wrote: Fri Jan 24, 2020 7:55 pm Jim, I did do it with an Hal sensor and installed it on an glow engine that I use only for testing. ........................
João

Joao,

I was just thinking that if and when I get back to it, I will use a hall sensor with a magnet rotated on the chuck in a drill press.
That avoids always going back to the model installation that I have finally got set up really well. I don't want to run the risk of upsetting anything there until, and if, I get an RPM sensor working.
Good tip, thanks.

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

Re: RPM resolution?

Post by kalle123 »

Hi João.

In German forum I posted this thread about rpm sensors for bl-motors.
http://www.rc-network.de/forum/showthr ... it-Arduino

Both sensors work with oXs.

Then I modified one of those

Image

with an inverter, so that also works now, but that is nothing for putting actually on a model, can only use it on a test stand. Relies to much on a good reflecting surface.

About your solution with the hal-sensor and a magneto. Could you post the circuit of that senor please and did you use it with oXs?

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

Re: RPM resolution?

Post by jhsa »

Hi, yes, I use it with oXs of course.. Will definitely check your optical solution, thank you. I have chosen the hall sensor because i want to have an onboard RPM sensor, and I guess optical would not work so well in this application :) I will need to check the circuit and which sensor I used. But it is very simple. I believe it needs only +5V, GND, and I believe it has an open collector output, so it might need a pullup resistor to the +5V on the output pin, depending on if oXs enables the internal pullup on the input or not.. But using an external resistor should not hurt I guess.. And that is it, it should detect when you pass a magnet quickly in front of 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
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: RPM resolution?

Post by kalle123 »

Some better pics of that modified IR Sensor.

Image

Image

It is just an inverter, I put on it.

Image

The problem here was, this sensor needs a good reflection patch or area.
Some props worked, some not.

You might remember those eproms with a window. Have lots of these very sticky aluminum patches and I used parts from the stickers, to create a reflector. That worked very well.

Image

But about the hall sensor and magneto. How do you cope with the imbalance on the prop?

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

Re: RPM resolution?

Post by jhsa »

What imbalance? that doesn't matter,. I did put my magnets on the spinner.. Pictures tomorrow :)

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

Re: RPM resolution?

Post by Endorphin »

jhsa wrote: Sun Jan 26, 2020 12:35 am What imbalance? that doesn't matter,. I did put my magnets on the spinner.. Pictures tomorrow :)
João
Karl is thinking (I guess) about the weight of the magnet on one side of the hub or whatever it is mounted on.

How to you get a hall sensor to fit if you have the magnet on the spinner?
(The prop is in the way!).

Edit: After looking at Karl's picture below, I now see how you would do it. The magnet would fit at the back of the spinner, correct?
Last edited by Endorphin on Mon Jan 27, 2020 7:57 am, edited 1 time in total.
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: RPM resolution?

Post by kalle123 »

I take some effort in balancing.

First the spinner without the blades and when I think, the spinner is OK, blades on and balancing the unit.

No idea, how to fit magnetos ...

Image

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

Re: RPM resolution?

Post by Endorphin »

kalle123 wrote: Mon Jan 27, 2020 7:35 am.................................
No idea, how to fit magnetos ...
.................
br KH
Karl,
If you take a look at the back of the spinner (and maybe show us a picture of it?), I would expect there to be a way to mount the magnet there.
For my CDI, I only use 3 x 2 mm magnets. In an alloy IC engine hub, I stack two of them, one on top of the other.
However, I have reason to expect that one would do.
A small counterbalance weight could be fitted to the opposite side.

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

Re: RPM resolution?

Post by kalle123 »

Jim, I only fly electric.

And for that, I tested this solution with oXs under FrSky and Multiplex successfully.

Image

Image

The rpm probe goes to one of the brushless motor cables.

Alternatively (when one does not want to solder) I ordered one of those. ~ 3$.

Works fine.

Image

The IR Sensor I used for my test stand. But for working with oXs, I had to invert the OUT signal.

But the IR sensor is, in my opinion, not useful for outside application. The reflecting for the IR sensor is critical.

So my question here, what hal sensor, how to mount it, what circuit for use with oXs?

But João will post some pics here :)

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

Re: RPM resolution?

Post by jhsa »

Guys, I am so sorry, been busy with other projects, one of them is building an Flite Test Guinea pig with my little son. Will try posting pictures a bit later.

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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: RPM resolution?

Post by jhsa »

Here are a couple pictures from my test rig. Sensor is on an L shaped piece of aluminium that is screwed to the engine and engine mount.
The sensor is held in place on the L shaped piece by some shrink tube. Magnets are held in place on the spinner with some glue. I actually drilled a hole of the same diameter of the magnet, and glued it in place. But one is missing, so I guess I didn't glue it very well. But as I said, this is a test rig only. :)

JoãoImageImageImage
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: RPM resolution?

Post by kalle123 »

João, so here

Image

-1- is the hall sensor, -2- the aluminum holder and -3- a disk (plastic?) with two holes with magnets.

Makes sense.

Sensor circuit just simple like that here? https://maker.pro/arduino/tutorial/how- ... th-arduino

How did you test? Just with an oscilloscope, or oXs?

br - KH

PS. Now you can sue me for using (unauthorized :mrgreen: ) your picture
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: RPM resolution?

Post by jhsa »

Ha ha, everybody sues everybody for no reason this days :) :mrgreen:
The plastic disk is the back of a broken spinner :)
I tested it with ErskyTX, and oXs. This is part of a project i have for one of my models. it includes onboard glowplug driver that also detects when the glowplug went open circuit, Cylinder head temperature sensor, and tank level sensor.
I am having issues with the temp sensor. You see, the dumb here glued it with epoxy to the engine's cylinder head. when it gets hot, the epoxy becomes softy :( I didn't know it. and the fuel tank level sensor is a work in progress. There is someone that apparently did a good implementation. need to find time to check it out.

I believe the hall sensor i used is a non latching switch. it goes high when one of the poles passes in front of the magnet, and then goes low. I will see which one i used and will post here. will also try to find the circuit i used but I think it is just like the one on the link you posted above.

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: RPM resolution?

Post by kalle123 »

Was faster.

Ordered those here and shall run some tests.

https://www.ebay.de/itm/291793877222

Weather is bad and news tells me, we have climate, refugee and a FrSky crisis, I need some distraction :mrgreen:

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

Re: RPM resolution?

Post by jhsa »

I think those were the ones I used :)
there was another project I did a while ago with hall sensors, but another type. I changed the sticks of one of my 9x radios to hall sensor instead of pots :)

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

Re: RPM resolution?

Post by Endorphin »

I use A3144 hall sensors for the CDI installations.
They were ridiculously cheap from ebay / China. 10 pieces for AU$1:40

https://www.ebay.com.au/itm/10PCS-New-O ... SwNJ5Ze~ni
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: RPM resolution?

Post by jhsa »

yes they are.. and they are good.. that is why we use them :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

Post Reply

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