Infrared Sensing, Hardware Interrupts, and the Arduino

Aidan just shared a new tutorial: "Infrared Sensing, Hardware Interrupts, and the Arduino"



Infrared (IR) is a great way of using non-visible light to control electronics. However, what do we mean when we are talking about infrared and electronics? Well, IR remotes that control your TV and other appliances are the uses that immediately come…

Read more

1 Like

The code uses an obsolete form for setting the pullup:

pinMode(BEAMPIN, INPUT);           //Initialise break beam pin as input 
...
digitalWrite(BEAMPIN, HIGH);

The description has the correct form
pinMode([BEAMPIN], INPUT_PULLUP);

1 Like

Thanks Jeff,

Edited.

Bryce
Core Electronics | Support