I attempted to use a photosensor to feign a sense of compatibility by assessing the input from the sensor when the ‘machine’ is pressed (makes it darker, changes input) and comparing it to a second input. I then applied a numeric condition that will determine compatibility, which will then activate the appropriate LED.
Sample from Serial Monitor (any difference < a certain number will result in a match):
Initial code to test the concept (before building around it):
Final code:
Random ideas for implementation:
Demo:
Final:
Leave a Reply