elbridge / yard_bot

GPS-RTK based autonomous lawn mower
GNU General Public License v3.0
0 stars 0 forks source link

Starting with a small robot chassis #9

Open frivas12 opened 5 years ago

frivas12 commented 5 years ago

sudo pigpiod # start daemon

./x_pigpiod_if2 # check C I/F to daemon ./x_pigpio.py # check Python I/F to daemon ./x_pigs # check pigs I/F to daemon ./x_pipe # check pipe I/F to daemon

Connections: connections IMG_0303 IMG_0302

frivas12 commented 5 years ago

To get the motor moving, create a new python file yardbot.py.

import pigpio import time

print("Start") pi = pigpio.pi() # pi1 accesses the local Pi's gpios

pi.set_mode(17,pigpio.OUTPUT) pi.set_mode(22,pigpio.OUTPUT)

pi.write(17,1); pi.write(22,0); time.sleep(5) pi.write(17,0); pi.write(22,1); time.sleep(5) pi.write(17,0); pi.write(22,0);

print("End")