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
没有找到相关结果