Skip to content

kaaatsu32329/raspi-test-servo-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Servo Test


Japanese version is here.


Install Rust on Raspberry Pi

Reference: rust-lang

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Check your pin assign

pinout

In this program, I suppose that the servo's signal line is connected to pin 16 (GPIO 23).

Build and Run

cargo run

If you want to set range of motion manually, run like below.

cargo run -- -h 1800 -l 1200

Kill process

You can kill this process by Ctrl+c.

Releases

No releases published

Packages

No packages published

Languages