Yes, you can use the sensor readings to control the motor outputs from PicoBorg.
If you use the ubServoFromDistances.py script from UltraBorg example as a starting point.
What you want to do is change the servoX values to be between 0 and PWM_MAX (100 in our examples).
You can then pass the value(s) on to wiringpi to control the motor outputs.
See the 4dc_gui.py script for setting up the PicoBorg and use the wiringpi.softPwmWrite calls to set the motor speed(s).
piborg
Thu, 06/02/2016 - 17:57
Permalink
Controlling motors from UltraBorg
Yes, you can use the sensor readings to control the motor outputs from PicoBorg.
If you use the
ubServoFromDistances.py
script from UltraBorg example as a starting point.What you want to do is change the
servoX
values to be between 0 and PWM_MAX (100 in our examples).You can then pass the value(s) on to
wiringpi
to control the motor outputs.See the
4dc_gui.py
script for setting up the PicoBorg and use thewiringpi.softPwmWrite
calls to set the motor speed(s).kuydigital
Thu, 06/02/2016 - 18:01
Permalink
Thanks! I'll take a look at
Thanks! I'll take a look at it.