thank you for considering BigClown in your next IoT project.
With our event-driven programming approach and high-level APIs, the accelerometer implementation is really easy.
In short you just put this in your application.c file:
void accelerometr_event_handler(bc_lis2dh12_t *self, bc_lis2dh12_event_t event, void *event_param)
if (event == BC_LIS2DH12_EVENT_UPDATE)
if (bc_lis2dh12_get_result_g(self, &result)
// TODO Process your result.x_axis + result.y_axis + result.z_axis HERE !
bc_lis2dh12_set_event_handler(&accelerometer, accelerometr_event_handler, NULL);
bc_lis2dh12_set_update_interval(&accelerometer, 100); // 100 ms update rate
I did not test it but I believe it will work and if not, we are always here for you to help!
In terms of SD card logging, we have SPI port on Core Module, so you can hook up an SD card and use for example SPIFFS to do some logging in a reliable manner. Unfortunately, we do not have it implemented yet - would you be interested to try it? Again, we will be happy to assist you…