I connected the signal and ground (not VCC) of the output cable of my engine’s ingition module to Pixhawk’s AUX pin.
I don’t remember exactly which one. It was either 4,5 or 6. I’ll check on Monday when I get to the lab.
I set the parameter BRD_PWM_COUNT.
Also take care not to set any RELAY_PIN* parameters to that pin.
Mission Planner displays the RPM count when you
Click the Tuning box to the bottom of the screen
Double click the black graph area
Tick the rpm1 box from the pop-up menu
If your engine spins (a bit faster than you can spin it by hand), it should display the RPM value in real time.
The documents should be a bit clearer about this procedure.
I use the 3.7.1 firmware
change the BRD_PWM_COUNT to 7 well it effect other PWM
I rotate the motor by hand for test , but the info not update as real time and when I stop the rpm value keep the last read value .
but I did the same thing with my Pixhack ( chines pixhawk ) and it doesn’t work .
I don’t know why Pixhack doesn’t work the same as the Pixhawk. Maybe @proficnc knows something about it? It sounds like a hardware problem, not a software problem.
I don’t have any more information to give you. Perhaps you could contact the development team and ask for more.
Let us know what you find out.
Hi guys. I’d like to homologate the info about setting up motor RPM count into the Pixhawk. There is a bunch of stuff above in old posts but it’s slightly ambiguous and is spread out now.
So to read RPM on mission planner (and to log to dataflash I hope also) we would connect a RPM pulse signal to AUX OUT 5 signal pin, we set RELAY_PIN to -1 to make sure that pin is not used for relay trigger, we set BRD_PWM_COUNT to 4, set RPM_TYPE to 1 leaving the other RPM parameters alone. We add the RPM1 display to the Mission Planner status view. And it should work…
Is that all correct?
If so I’m not reading RPM yet on MP. My pulse source is from a brushless RPM sensor module and gives me a 116.6Hz per 1000rpm out square wave (on a 14 pole motor). On my CRO the signal is reasonably clean.
In the older posts it’s not 100% clear to me if the Pixhawk is expecting a scaled PWM signal of variable duty cycle like a servo signal, or if it’s expecting pulses at a frequency proportional to the RPM, like I’m giving it.
Anybody confirm which is definitely right ?
Regards,
Martin
Hello @sneezy,
I can’t tell you anything more regarding the parameters, apart form the parameter file I have uploaded previously.
I am using the frequency RPM option, not PWM, where there is 1 low edge for every Hz. Essentially, the signal output from the ICE magnet. This is the same signal that one would use to drive a standalone RPM display LED module.
Hi, I am using ArduCopter v3.3.3 right now, and I would like to obtain RPM readings for the motors. I saw that there are several ESC logging messages defined in the firmware. They include motor RPM as one of the logging variables. But my IRIS+ does not log these ESC messages currently. I was wondering what kind of ESCs could enable the RPM logging for these ESC messages.
Hello,
Does anyone know if I can read the RPM data on the Mission Planner using the Platinum 100A V3 ESC, by somehow connecting the RPM output cable to the PixHawk 2 ?
For all those interested in data from ESC’s, some BLHeli and Dshot ESC’s have telemetry that can be sent and logged by the flight controller. See the following linke for details. http://ardupilot.org/copter/docs/common-dshot.html. This is a new development of the ardupilot by @tridge in early 2018.