Hey, hello!!!First of all, I don't know why nobody has written a comment yet in YouTube.Second. Its almost a plug and play code for what I am looking for!!!!, and I am going to tell you why,. You are going to be surprised!!Flir released a thermal camera designed for drones, called FLIR VUE PRO.Has 2 PWM inputs to control 2 functions of the camera.For 1 of them, zoom, has 2 stages for zoom in/out (1ms, and 2ms), and for the second Channel, needs 3 stages to control 3 different Pallets (1ms, 1.5ms, 2ms) at 50HZ, values that match the industry standards for servos on RC Toys, and is used to control the camera via receiver PWM outputs in the drone.Now. I want to be able to use it in a hand held device (besides a drone), but need to use push buttons for inputs (1 per channel), and PWM outputs with 'servos values' to the camera.The only thing I have to figure out now, is the code to be used with 2 push buttons, and 2 servos.If you could help me with that, I would TRIPLE appreciate it, since I already own you a double THANKS!!Regards Juan.
Use a servo for precise position control (unlike a DC motor). Color scheme vary, but generally the red/orange wire is 5V, the black/brown wire is ground, and the white/yellow wire is the control signal. Servos can consume a lot of power, so consider connecting the 5V wire to a separately regulated 5V supply instead of the Arduino’s 5V power.