13 Consider a mobile robot with two LEDs (green and red), one Infrared (IR) digital Sensor (at front of robot to detect obstacles), and one motor. Assume that the switch and IR are active HIGH. Write the Arduino code for the system (12 Points) Start Switc

匿名用户 最后更新于 2021-11-29 19:07 电气工程Electrical Engineering

program the arduino (C-code)

13 Consider a mobile robot with two LEDs (green and red), one Infrared (IR) digital Sensor (at front of robot to detect obstacles), and one motor. Assume that the switch and IR are active HIGH. Write the Arduino code for the system (12 Points) Start Switch Closed No Yes Green LED On Move forward Obstacle No Yes Stop Green LED OFF Red LED Flash On/Off Enter your answer

已邀请: