Servo SG90
I connected a Servo SG90 to the pcb i made in Week 8
Here is the Servo:
What to connect where:
Control Signal -> GPIO6 (yellow wire)
VCC -> 3V3 (red wire)
GND -> GND (brown wire)
Code
Error
I first tried the public code through File->Examples->Servo->Sweep
but it gave an error:
Success
So I installed ESP32Servo by Kevin Harrington, John K. Bennett
and checked the library description. The only changes I had to make after was under setup()
Spin code:
|
|
Video: