Compare commits
7 Commits
c33d4c0350
...
e414f63425
| Author | SHA1 | Date | |
|---|---|---|---|
| e414f63425 | |||
| 513fe74228 | |||
| 1e98970dc3 | |||
| d13b74ed47 | |||
| 8dcbaded2d | |||
| fe1c4cf389 | |||
| 3ce68231eb |
Binary file not shown.
Binary file not shown.
BIN
CAD/MastCam/MastCamRear.FCStd
Normal file
BIN
CAD/MastCam/MastCamRear.FCStd
Normal file
Binary file not shown.
Binary file not shown.
5
crawler_software/config/hardware.yaml
Normal file
5
crawler_software/config/hardware.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
wiper_servo:
|
||||||
|
pin: 17
|
||||||
|
min_pulse: 0.000544
|
||||||
|
max_pulse: 0.0024
|
||||||
|
|
||||||
19
crawler_software/servo_test.py
Normal file
19
crawler_software/servo_test.py
Normal 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()
|
||||||
|
|
||||||
Reference in New Issue
Block a user