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.
已解决! 转到解答。
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
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