Compare commits

...

7 Commits

Author SHA1 Message Date
Kenwood e414f63425 Update end of day: 2021-06-21 20:57:36 -04:00
Kenwood 513fe74228 Add servo to assy 2021-06-21 14:23:31 -04:00
Kenwood 1e98970dc3 Assemble face and rear in assy 2021-06-21 13:52:20 -04:00
Kenwood d13b74ed47 Create rear of mastcam: 2021-06-21 13:52:01 -04:00
Kenwood 8dcbaded2d Add servo example, servo action is jerky but functional 2021-06-21 13:21:32 -04:00
Kenwood fe1c4cf389 Create basic configs 2021-06-21 12:49:13 -04:00
Kenwood 3ce68231eb Rename crawler software 2021-06-21 12:46:33 -04:00
7 changed files with 24 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,5 @@
wiper_servo:
pin: 17
min_pulse: 0.000544
max_pulse: 0.0024

View File

@ -0,0 +1,19 @@
import RPi.GPIO as GPIO
import time
servoPIN = 17
GPIO.setmode(GPIO.BCM)
GPIO.setup(servoPIN, GPIO.OUT)
p = GPIO.PWM(servoPIN, 50) # GPIO 17 for PWM with 50Hz
p.start(2.5) # Initialization
try:
while True:
p.ChangeDutyCycle(10)
time.sleep(2)
p.ChangeDutyCycle(2.5)
time.sleep(2)
except KeyboardInterrupt:
p.stop()
GPIO.cleanup()