Create arduino code for the Max11210 ADC
Budget: $30 – $250 USD
I need some code to read from the Max11210 ADC using an ESP32.
ADC datasheet: https://datasheets.maximintegrated.com/en/ds/MAX11200-MAX11210.pdf
The ADC is connected using SPI (HSPI bus on ESP32):
CS pin = GPIO16
SCK pin = GPIO14
MOSI pin = GPIO13
MISO pin = GPIO12
Please can you write an example arduino file:
1. Set the samples per second (sps) to 100hz
2. Offer options for the Digital Programmable Gain (1,2,4,8, or 16).
3. In the main loop, print to screen every second the 100 readings in a Json array. Please use this library to compose the JSON:
https://github.com/bblanchon/ArduinoJson
I have found this liberary on the internet: https://github.com/macifique/max11200_arduino (but I havent tested it). If this will make your work faster, please incorporate this library and simply call out the relevant functions in your example code. Please note that I am using the Max11210 not the Max11200.
Thanks!
ADC datasheet: https://datasheets.maximintegrated.com/en/ds/MAX11200-MAX11210.pdf
The ADC is connected using SPI (HSPI bus on ESP32):
CS pin = GPIO16
SCK pin = GPIO14
MOSI pin = GPIO13
MISO pin = GPIO12
Please can you write an example arduino file:
1. Set the samples per second (sps) to 100hz
2. Offer options for the Digital Programmable Gain (1,2,4,8, or 16).
3. In the main loop, print to screen every second the 100 readings in a Json array. Please use this library to compose the JSON:
https://github.com/bblanchon/ArduinoJson
I have found this liberary on the internet: https://github.com/macifique/max11200_arduino (but I havent tested it). If this will make your work faster, please incorporate this library and simply call out the relevant functions in your example code. Please note that I am using the Max11210 not the Max11200.
Thanks!