Hi,
I am working on NRF52840, I want to read some ADC (Potentiometer) using I2C communication in NRF52840 MCU, Can you please help me, how to implement the code for this.
Thanks
Hi,
I am working on NRF52840, I want to read some ADC (Potentiometer) using I2C communication in NRF52840 MCU, Can you please help me, how to implement the code for this.
Thanks
Hi,
If I understand you correctly, you want to read an external ADC device that is interfaced over I2C? I2C devices have different command set to read values, so you will have to look in the datasheet of your specific device which commands you need to send to read the data. You can start out with the TWI sensor example, which showcases how to interface a TWI/I2C sensor device.
Best regards,
Jørgen
Hi,
Thanks for the reply.
I have one more doubt also, can you please help me. After read ADC data I have to send through BLE. Is it possible ??.
Ex: ADC+I2C+BLE...
Thanks
Hi,
Thanks for the reply.
I have one more doubt also, can you please help me. After read ADC data I have to send through BLE. Is it possible ??.
Ex: ADC+I2C+BLE...
Thanks