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.


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:
set_digital_out(“Conveyor”, False)
while get_digital_in(“Distance_Sensor”) is True:

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?