robthomson / s.portGasHub

Use arduino to read two voltages and RPM
1 stars 0 forks source link

No need to measure voltage, only RPM, How to do? #1

Open xiaoyigg opened 7 months ago

xiaoyigg commented 7 months ago

Hi,if I only need RPM,how to do it? Can you use rp2040-zero make this?thanks~ and if using a second hall sensor pickup of rpm,not from cdi,need change code? 80e9add4d2421f2fa4b7cd5faa7dbde

robthomson commented 7 months ago

Simplest would just be to comment out the lines that return the voltages to the telemetry library.

You could then just ignore the voltage dividers when soldering up the board.

No idea if the code will work on a Pi. Never used one. But technically most things can be made to work.

xiaoyigg commented 7 months ago

Thank you for your prompt reply, I am a salesman and not good at programming and electronics. Can you please provide me with a detailed schematic if you can? I can understand schematic like the one below RCT-CDI_Schematic

this is hall sensor,I want use this for my methanol fuel engine,Can you help modify the code to make it run in arduino nano? https://www.rc-thoughts.com/jeti-hall-rpm-sensor/

robthomson commented 7 months ago

There is already a diagram in the source code.

https://github.com/robthomson/s.portGasHub/blob/main/circuit.png

robthomson commented 7 months ago

You can actually simplify this down to the bare basics and it will work.

So hard wire the rpm signal to the rpm pin And the sport to the sport pin.

The rest of the stuff you can just bypass and it will still work.

xiaoyigg commented 7 months ago

You can actually simplify this down to the bare basics and it will work.

So hard wire the rpm signal to the rpm pin And the sport to the sport pin.

The rest of the stuff you can just bypass and it will still work.

It's there still need a 10K resistor on RPM pin line?

robthomson commented 7 months ago

Its only there to help filter out potential noise from the CDI unit.

So will work fine without

xiaoyigg commented 7 months ago

Its only there to help filter out potential noise from the CDI unit.

So will work fine without

thanks,I'll try it these day

xiaoyigg commented 7 months ago

Please help to check if D9 and D2 are connected correctly,and how should 5V, GND, VIN be connected? Getting closer to success, thanks again. 20231122210019

xiaoyigg commented 7 months ago

https://www.youtube.com/shorts/fPEM0uFAcso Check out this video please, plugging in the 5v pin to the receiver does not recognize it, pulling it out and connecting the USB afterward recognizes it, but no rpm data! Should I connect to GND?Should I connect to GND?

robthomson commented 7 months ago

You will 100 percent need ground connected

xiaoyigg commented 7 months ago

You will 100 percent need ground connected

20231123154626 You mean connected like in the picture?GND need both connect to receiver s.port - and CDI rpm - wrong video link sorry,look this :https://www.youtube.com/shorts/fPEM0uFAcso

xiaoyigg commented 7 months ago

There is already a diagram in the source code.

https://github.com/robthomson/s.portGasHub/blob/main/circuit.png

this picture RPM connect to D2,but I find code #define RPM_PIN 8 //digital pin 8 must be used for CDI timing. Do not change so I should connect D2 or D8 ?

robthomson commented 7 months ago

Ah . Indeed.

Connect to pin 8.

Think I must have changed sometime to use the other pin as it was updated to use a timer that was more accurate.

Clearly forgot to update the diagram.

xiaoyigg commented 7 months ago

Ah . Indeed.

Connect to pin 8.

Think I must have changed sometime to use the other pin as it was updated to use a timer that was more accurate.

Clearly forgot to update the diagram.

Can you re-update a diagram and new code for me here.when you're not busy, RPM only. I use GPT4 comment out the lines that return the voltages to the telemetry librarycomment out the lines that return the voltages to the telemetry library,too many errors ~ I'm sorry for the trouble. This is my last request. Thank you very much. Really, really need this rpm sensor for my gas engine plane~

xiaoyigg commented 7 months ago

rpm I think the connection should be correct this time, the RPM is gets fetched but there is no data, is it because the code has not been changed?

xiaoyigg commented 6 months ago

Hi,can you update codes?still waiting for you,thanks

xiaoyigg commented 3 months ago

Please help~~