How do I connect the board and analog sensor?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How do I connect the board and analog sensor?

ソリューションへジャンプ
1,195件の閲覧回数
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,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

元の投稿で解決策を見る

2 返答(返信)
1,106件の閲覧回数
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,105件の閲覧回数
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 件の賞賛
返信