i have tcrt1000 optical sensor wants to interface with nrf51822 so can anybody provide me the tutorial on this things with a code...
Hello Abhijeet kapse
Unfortunately we do not have any reference designs or codes with the TCRT1000.
If you look at the TCRT1000 datasheet you can see the TCRT contains a BJT transistor whose base-emitter voltage is dependent on the received light intensity. You could for example use it as part of a common emitter circuit, and then use the ADC of the nRF to measure the voltage over the transistor. Just make sure the analog input is not exposed to voltages beyond its capability as described in the product specification.
HEY,Thanks jorn for your help but i am new to nrf51822 can you provide me the tutorial that explains how to read sensor values using adc of nrf51822? it will be great help
For the nRF51 series the latest SDK is 12.3.0. In the SDK folder you can find the ADC example under examples\peripheral\adc. Documentation for the example can be found here. Information on the ADC of the nRF51 can be found in the nRF51 series reference manual and the nRF51822 product specification. An example using the ADC to measure battery voltage can be found here
i have used optical sensor interface with nrf51822 but when i touch the sensor i am just getting garbage values which is in unreadable format. what should i do ?can i put rc filter between sensor and adc of nrf51822.