-1

how to interface tcrt1000 optical sensor with nrf51822?

FASTER gravatar image

asked 2017-10-10 09:58:38 +0100

Hi ,there i have tcrt1000 optical sensor wants to interface with nrf51822 so can anybody provide me the tutorial on this things with a code... cheers, Abhijeet

edit retag flag offensive close delete report spam

1 answer

Sort by » oldest newest most voted
0
jornfr gravatar image

answered 2017-10-10 11:04:56 +0100

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.

Best regards

Jørn Frøysa

edit flag offensive delete publish link more

Comments

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

regards,Abhijeet

ASHISH ( 2017-10-10 12:26:55 +0100 )editconvert to answer

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

Jørn ( 2017-10-10 12:37:35 +0100 )editconvert to answer

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.

ASHISH ( 2017-10-10 14:02:49 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower

Stats

Asked: 2017-10-10 09:58:38 +0100

Seen: 44 times

Last updated: okt. 10