How do I connect the board and analog sensor?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How do I connect the board and analog sensor?

跳至解决方案
1,194 次查看
T2
Contributor III

Hello,

I want to get analog sensor values using NXP board "TWR-KE18F".
However, it is not done for the following reasons.

 - I don't know much about the hardware, so I don't know how to connect the board and sensor.
   How can I connect the board and sensor?

 - I don't know the code to use the external analog sensor.
   Please tell me the sample code to get the value of external analog sensor.
   I understand how to get the value of the potentiometer attached to the board in the SDK sample project “adc12_polling”.
   However, the code that uses an external analog sensor is not known.

Notes:
I have the "TWR-ELEV" and "TWR-PROTO" necessary to configure the tower module.
I have external sensors such as light sensors and temperature sensors.

Best regards.

标签 (1)
标记 (2)
1 解答
1,104 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Takagi,

Please download TWR-KE18F SDK from Welcome | MCUXpresso SDK Builder . It has ADC examples. You can see them in SDK_2.5.0_TWR-KE18F\boards\twrke18f\driver_examples\adc12.

TWR-KE18F has a thermistor on board, it is RT1. If you want to connect your own sensor by TWR-PROTO, please download TWR-KE18F schematic from https://www.nxp.com/webapp/Download?colCode=TWR-KE18F-SCH-DESIGNFILES 

TWR-PROTO's schematic https://www.nxp.com/downloads/en/schematics/SCH-26187.pdf 

Regards,

Jing

在原帖中查看解决方案

2 回复数
1,105 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Takagi,

Please download TWR-KE18F SDK from Welcome | MCUXpresso SDK Builder . It has ADC examples. You can see them in SDK_2.5.0_TWR-KE18F\boards\twrke18f\driver_examples\adc12.

TWR-KE18F has a thermistor on board, it is RT1. If you want to connect your own sensor by TWR-PROTO, please download TWR-KE18F schematic from https://www.nxp.com/webapp/Download?colCode=TWR-KE18F-SCH-DESIGNFILES 

TWR-PROTO's schematic https://www.nxp.com/downloads/en/schematics/SCH-26187.pdf 

Regards,

Jing

1,104 次查看
T2
Contributor III

Hi Jing,

Thanks for your quick reply.

Your advice was very helpful.

As a result, I was able to get the analog sensor value.

Best regards,

Takagi

0 项奖励
回复