Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 671 Bytes

README.md

File metadata and controls

40 lines (33 loc) · 671 Bytes

RobotDYN_Raspberrypi_Triac

TRIAC two channel control PWM over raspberry pi Golang

run program run program

install

git clone https://github.com/vBlackOut/RobotDYN_Rasberrypi_Triac
go get github.com/warthog618/gpiod

run

go run main.go

compilation go

go build
./binary

Command percent

the script accept to 2 float number in percent

pwm1 10.8  
pwm1 10.99  
pwm1 80.75
or 
pwm2 80
pwm2 65.6
pwm2 10.87

GPIO config

the script run on zero crossing pin 6
pin 16 [pwm1] and 20 [pwm2]

Enjoy