Control-Surface-Motor-Fader
Control-Surface-Motor-Fader copied to clipboard
At start, at I2C control mode, the fader goes to zero, but the motor don't stop
Hello Peter,
at first, I'm very happy about your program. The fader moves very fast and precise. This is really great!!! I see, your C++ is much better as my own C++ programing know how. I'm not so fit in object-oriented programming.
About the issue: I put the controller_to_print on, that I can see, what's happen. At the moment, I use only one motor fader. If I start the NANO, the fader moves down. He try to catch the setpoint 0. But he came only to adcval 3 or 7. So the motor try's to move the fader more. If I touch the the sensor, the motor stops. And the adcval is 0. For me, it's looks, that he do not measure the correct analog value.
Have you an idea? and a solution?
An additional suggestion: After start, the fader moves up and down, and find the min and max value of each fader. So all will be calibrate. Over the map function, can be expand, to the 10 bit or 12 bit value.