Motor one tow three four go !

I do it. I finally managed to start my 1st motor!




On top: 2 wires to the LIPO battery
On left: the 3 control wires of the ESC. Black to mass and white on a pine GPIO of raspberry (red is not used) 

I use ServoBlaster to control l'ESC
Parameters are : /usr/local/sbin/servod --cycle-time=20000us --step-size=10us --min=1000us --max=2000us

What you must know :

  • a pulse of 1ms = motor at 0% : echo 1=100 >/dev/servoblaster
  • a pulse of 2ms = motor full at 100% : echo 1=200 >/dev/servoblaster
I created a python function to drive my motor :

 def servo(servo, val):  
      servoStr ="%u=%u\n" % (servo, val)  
      with open("/dev/servoblaster", "wb") as f:  
           f.write(servoStr)  

Processing time is very good (1ms)

PS: I was unable to run RPIO even on my Raspberry Pi Zero W. So, I drop RPIO because it is too hardware dependent. ServoBlaster seems to work properly



Commentaires

Posts les plus consultés de ce blog

Attiny13A sleep mode

Esp-01 deep sleep mode

Install and configure OpenVPN on OSMC