10.
Select a delay MILLIS milliseconds panel from the control tab, snap it as shown and change its value to 5000.
Page 1: ......
Page 2: ...and the Arduino refer the getting started manual STEP 3 There are two components that we have to connect with the Arduino in this activity 1 First connect the infrared sensor to the Arduino Infrared...
Page 3: ...ion see Getting Started Manual Make the Code as follows 1 Drag and drop a do loop panel from the control tab 2 Select a Set Digital Variable panel from the Variables Constants Tab and snap it as shown...
Page 4: ...al variable name to Fire and change the digital pin to 2 5 Snap a SerialPrintIN panel replace the message panel with the glue panel clone the Fire Panel Right click and select clone and snap it as sho...
Page 5: ...6 Snap an if else loop below the Serial PrintIN panel 7 Select a panel from the Test Tab and snap it in the test slot of the if else panel...
Page 6: ...t the Fire panel Clone it by right clicking in it and selecting clone and the LOW panel as shown 9 Snap five set digital pin panels and two Analog Pin panels in the then slot and change their values a...
Page 7: ...10 Select a delay MILLIS milliseconds panel from the control tab snap it as shown and change its value to 5000...
Page 8: ...values as shown in the figure 12 Upload the code into Arduino 13 Now your CODIBOT is a firefighter It will move forward until it encounters a flame once it finds a fire it will stop and will turn on...