45
5.4. IR Photoreectors
The IR Photoreector uses reected infrared light to measure its distance from an object.
5.4.1. Connecting an IR Photoreector
Connect an LED to Sensor/LED/Buzzer connector A4 on your Studuino and your IR Photoreector to A7.
5.4.2. Port Settings
Before programming, you'll need to set the ports in the Block Programming Environment to match the parts
connected to your Studuino. Select Edit from the menu and choose Port Settings to open the Port Settings
dialog box. Check A7 under Sensor/LED/Buzzer and choose IR Photoreector. You’ll also need to check
A4 and choose LED.
Gray
Black
Black
A4
A7
Keep an eye on your cables!
The gray wire should be at the top.
LED
IR Photoreector
Check and choose
LED
Check and choose
IR Photoreector