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):
- Open your Proteus software and add infrared sensor, resistor, LED and LOGICSTATE to the workspace.
- Connect GND, VCC, TestPin pins to the ground, power, and LOGICSTATE. Connect LED from pin OUT to ground through a resistor.
- 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
- Start the simulation
- If LOGICSTATE = 0 infrared sensor detects an obstacle or object. If LOGICSTATE = 1 infrared sensor does not detect obstacle or object
- 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):
- Add Arduino UNO R3 component to the workspace
- Change infrared sensor OUT pin to the pin 2 Arduino. Connect LED from pin 13 to ground through a resistor.
- Click HERE to download the Arduino project code. Extract the project code and verify
- Copy the Hex file, then paste it into the Proteus Arduino board.
- Start the simulation
- 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:
No comments:
Post a Comment