Not working here either!!! From the settings page the rate set there is sent to the CRateCals class. The sub TargetUMP() takes the rate setting and multiplies by Hectares per minute to give the target units per minute. This is sent to the Nano to try and match.
The code in the Nano has to be changed to run the motor continuously. Sounds easy. Not so far.
great job, can’t wait to test this tomorrow…
maybe you are using too good quality sensors!
I use a Chinese chinese sensorinductive npn sensor with 8 magnet on a plastic disk mounted on the shaft. But before the nano I go through an optocoupler, like the switches on the pcbv2_autosteer.
it seems to work pretty well on the desktop. I will try to mount the real engine on my metering unit in the coming weeks and test in real conditions.
I made a small change, instead of returning UPM for rate applied I am averaging 10 upm readings before sending it. Because otherwise the figures go up and down a lot while the pwm seems rather stable.
Only KP, High Max, Min PWM and Deadband settings are used for motor control. UPM is very stable here. KP and Min PWM could be adjusted lower to see if that helped.
My current implementation reads a pulsed speed signal from a trimble GPS or if not present uses the tractors canbus speed to set the motor speed on drill. It uses PWM to drive the seed motor but you must monitor the motor rpm and adjust as the load can vary for different seeds etc. I have a setting that allows me up or done the rate if I need to while sowing.