Tuesday, June 1, 2021

How to Interface | Use Infrared Sensor With and Without Arduino in Proteus 8

Hi guys, today I'm going to share how to use and interface the infrared sensor with Arduino and standalone in Proteus 8. This post is based on my previous post about adding the infrared sensor in Proteus 8. 


Components:

  • Infrared sensor
  • Arduino
  • Resistor
  • LED

Steps (Standalone):
  1. Open your Proteus software and add infrared sensor, resistor, LED and LOGICSTATE to the workspace.



  2. Connect GND, VCC, TestPin pins to the ground, power, and LOGICSTATE. Connect LED from pin OUT to ground through a resistor.



  3. Double click the infrared sensor and click the folder icon at the Program File box. Go to Local Disk (C:) > Program Files (x86) > Labcenter Electronics > Proteus 8 Professional > DATA > LIBRARY > InfraredSensorsTEP.HEX > Open > OK




  4. Start the simulation 

  5. If LOGICSTATE = 0 infrared sensor detects an obstacle or object. If LOGICSTATE = 1 infrared sensor does not detect obstacle or object

  6. Click LOGICSTATE to change the number from 0 to 1 and 1 to 0. LED ON when LOGICSTATE = 0 and LED OFF when LOGICSTATE = 1
Steps (Infrared Sensor with Arduino):
  1. Add  Arduino UNO R3 component to the workspace

  2. Change infrared sensor OUT pin to the pin 2 Arduino. Connect LED from pin 13 to ground through a resistor.


  3. Click HERE to download the Arduino project code. Extract the project code and verify

  4. Copy the Hex file, then paste it into the Proteus Arduino board.


  5. Start the simulation

  6. Click LOGICSTATE to change the number from 0 to 1 and 1 to 0. LED ON when LOGICSTATE = 0 and LED OFF when LOGICSTATE = 1

Video:


If you have any suggestion, please write in the comment section. Thank you for your time 👷.

No comments:

Post a Comment