Infrared Sensor Introduction of Infrared Sensor Infrared sensors

  • Slides: 12
Download presentation

Infrared Sensor

Infrared Sensor

Introduction of Infrared Sensor • Infrared sensors are communicating sensors present on m. Core.

Introduction of Infrared Sensor • Infrared sensors are communicating sensors present on m. Core. They are labelled as IRtx and IRrx • Used to transmit & receive messages to robots & from remote respectively • IR transmitter is used to send message to another m. Bot • IR receiver is used to receive message either from remote or m. Bot • It works on line of sight communication • For example we have IR transmitter in TV remote and receiver in TV

Applications • To control m. Bot through remote controller • For communication between two

Applications • To control m. Bot through remote controller • For communication between two m. Bot’s • Controlling the robots to march as a brigade remotely

Let’s make program to control m. Bot Remotely Algorithm Step 1: start the m.

Let’s make program to control m. Bot Remotely Algorithm Step 1: start the m. Bot Step 2: If UP arrow key is pressed on remote, m. Bot should run forward with the power of 100% for 1 second. Step 3: If DOWN arrow key is pressed on remote, m. Bot should run backward with the power of 100% for 1 second. Step 4: If LEFT arrow key is pressed on remote, m. Bot should turn left with the power of 100% for 1 second. Step 5: If RIGHT arrow key is pressed on remote, m. Bot should turn right with the power of 100% for 1 second. Step 6: stop

Flowchart

Flowchart

m. Block Program

m. Block Program

Example- To control LEDs & buzzer with remote Algorithm Step 1: start the m.

Example- To control LEDs & buzzer with remote Algorithm Step 1: start the m. Bot Step 2: If A key is pressed on remote, m. Bot should turn ON the LED’s with red colour Step 3: If B key is pressed on remote, m. Bot should turn ON the LED’s with green colour Step 4: If C key is pressed on remote, m. Bot should play note Step 5: stop

Flowchart

Flowchart

m. Block Program

m. Block Program

Example- Communication between 2 m. Bots 1 st m. Bot works as transmitter 2

Example- Communication between 2 m. Bots 1 st m. Bot works as transmitter 2 nd m. Bot works as Receiver

Thank You!

Thank You!