Hi everyone,
I’m quite new to arduino and have basic knowledge of C++ programming.
I have a project on the go at the moment at university where we are making a MIDI device from the arduino. My idea was to have a laser pointing at a light dependent resistor, and when the light was broken (by a hand), it would turn an infrared sensor to ‘high’, which would be located just under the laser.
Would it be a case of saying…
if (LDR < threshold){
digitalWrite(LDR, HIGH);
}
I have tried this before but unsuccessfully!
Just wondering if anyone would have any suggestions for code in this scenario.
Thanks so much.