Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/14/2016 in Posts

  1. Hi Jaytee, Ok, it's simple, there's a infrared led and an infrared detector in the same package. The light will reflect on an object and come back to the detector. In fig.8 page 5 of the datasheet you will see the response between the object position and detector collector current. best response is for distance d in the range of 0 to 4 mm which is exactly the length travel of a cherry MX, now the 'object' where the light reflect is the moving part of the MX, you just have to cut the bottom centering plastic pin of the MX and place the detector under the center of the MX, MX mechanical The sharp detector works better with red object, you just have to buy red model which is a linear one. See Mikroelectronika color demo For electronic you just need a dual comparator chip to detect 2 separated threshold(one high one low) and timer counter between the two, it's the way I will follow in my test. BR Antichambre
    1 point
×
×
  • Create New...