Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Javier AcevedoCristian
Published © MIT

Hydroponic Agriculture Learning with SensiML AI Framework

New methodologies of horticulture based-on high-end technology are urgently required to transform the way in which the world is fed.

IntermediateFull instructions provided3 days2,784

Things used in this project

Story

Read more

Schematics

Collecting data scheme

Collect data from the quickfeather and transfer it to the raspberry pi

Inference mode

Inference mode running on battery

Code

Led ON/OFF

C/C++
Turn on/off the led
// If prediction ON
if ((int)classification == 1) {
  HAL_GPIO_Write(GPIO_6, 1);
} else {
  HAL_GPIO_Write(GPIO_6, 0);
}

ADC source code

C Header File
qorc_ssi_adc.begin();
//Set parameters for sample rate to read ADC
qorc_ssi_adc.setSampleRate(sensor_ssss_config.rate_hz);
int16_t *p_adc_data = (int16_t *)p_dest;
int16_t chanA0 = qorc_ssi_adc.getSingleEnded(0); //pH
int16_t chanA1 = qorc_ssi_adc.getSingleEnded(1); //Soil Moisture
int16_t chanA2 = qorc_ssi_adc.getSingleEnded(2); //Temperature

Credits

Javier Acevedo

Javier Acevedo

4 projects • 5 followers
Cristian

Cristian

7 projects • 9 followers

Comments