Infrared Sensor

Here is an example of a student project using the ZA6 and an infrared sensor. We are using a conveyor controlled in the robot program with a relay. The Conveyor is turning on and off via the infrared sensor.

https://drive.google.com/file/d/11x8eeD1_9ukUkdfTdJjl1CVPNm9k8LNp/view?usp=sharing




2 Likes

Well that is pretty neat. Good work.

from robot_command.rpl import *

set_units(“mm”, “deg”)

def main():
set_digital_out(“Conveyor”, True)
while get_digital_in(“Distance_Sensor”) is False:
sync()
set_digital_out(“Conveyor”, False)
while get_digital_in(“Distance_Sensor”) is True:
sync()

1 Like

OT: @sorgule Do you see this “USB mount /media/pathpilot” error more frequently? If so, what is usually happening with the USB flash drive?