To create a motion sensor that collects acceleration data and sends it to the cloud.
WiPy 3.0 Development Board: WiFi & Bluetooth IoT development platform. Pytrack Sensor Shield: 3 axis 12-bit accelerometer.
- Maximum sampling rate of about 300Hz.
- Data stored within IoT device.
- When main.py is run by the IoT device, the device attempts to
- Connect to the WiFi.
- Configure AWS (Client ID, security certificates, host, port, etc.)
- Connect to AWS with MQTT and subscribe and publish data to AWS topic.
- When data is published to AWS, it is sent to DynamoDB.
- Data in DynamoDB can be extracted into output.csv using the DynamoDBtoCSV tool.
- Data in output.csv can be graphed with graph_data.py script.
- When using pymakr, usb port must have administrative rights, otherwise the device will not be able to connect. See here.