Raspberry PWM LED Control

From BITPlan Wiki
Revision as of 18:31, 22 June 2019 by Wf (talk | contribs)
Jump to navigation Jump to search

We'll use GPIO 24/ Pin 18 to drive the LED as in the default configuration of rc-dukes.

Raspberry-pi-pinout.png

PILEDPWM-2019-06-21.png

see Self_Driving_RC_Car#Servo Interface - Servoblaster

GPIO 24 has ServoId 6 so

echo 6=120 > /dev/servoblaster

will set the LED to half bright