That's a really broad question. But generally, you would want an ADC board to collect the sensor voltages and convert them to digital values for your which you would then write to a file (.csv or .json, whatever format you like) and then use either libcurl (or simply use the shell curl utility) to batch transfer the collected data to wherever you are calling the cloud. (you could even set up a cron job to do the transfer for you at whatever interval you need)
If you can use 10-bit resolution (you most always can), then I would choose a MCP3008 ADC chip (that will let you collect data from 8 sensors, and you can chain them together to collect data from 16 or 24 or 32 sensors, etc...). It uses the SPI interface and is blistering fast. If for some strange reason you need 16-bit resolution, then the ADS1115 chip is fine, but is limited to 4-channels (it can also be chained) and uses I2C instead of SPI (slower, but usually more than fast enough for any project) You can find examples for both the MCP3008 and ADS1115 in the Raspberry Pi Peripheral Access Wtihout root repository.
That's all my crystal-ball has for the night, and that would allow a solid, secure solution for your data collection and batch transfer over the internet.
If you can use 10-bit resolution (you most always can), then I would choose a MCP3008 ADC chip (that will let you collect data from 8 sensors, and you can chain them together to collect data from 16 or 24 or 32 sensors, etc...). It uses the SPI interface and is blistering fast. If for some strange reason you need 16-bit resolution, then the ADS1115 chip is fine, but is limited to 4-channels (it can also be chained) and uses I2C instead of SPI (slower, but usually more than fast enough for any project) You can find examples for both the MCP3008 and ADS1115 in the Raspberry Pi Peripheral Access Wtihout root repository.
That's all my crystal-ball has for the night, and that would allow a solid, secure solution for your data collection and batch transfer over the internet.
Statistics: Posted by drankinatty — Sun Jun 02, 2024 7:53 am