Controlling servo with RPi3B+
Hello, I’m a 14-year-old kid from the Czech Republic interested in programming JavaScript and technology with my dad. We wanted to try driving a servo motor using hardware PWM from my Raspberry Pi 3B + together with Node JS library node-rpio. I will explain here, how I have done it because there is no good summary for me on this topic now on the internet. The hardware and software used Raspberry PI3b+ Servo 6g TBD.... Debian TBD Nodejs TBD node-rpio library https://www.npmjs.com/package/rpio Theory https://www.js4iot.com/2021/05/30/HardwarePWM-RPIO.html there is explained the theory of PWM( Pulse With Modulation). Nice description how the servos work can be found here: https://www.jameco.com/Jameco/workshop/Howitworks/how-servo-motors-work.html The Servo motor works on pwm signals long 20ms/50Hz. You must set up your pwm in the Raspberry Pi with the rpio library. The hardware pwm module has 2 modes balanced mode - spreads the up and down signasls across the whole cycle Rt uniform...