hi, Can blynk collect accelerometer data for every 1 second interval? i want to obtain 3 data of accelerometer (x,y,z) using nodemcu from MPU6050 sensor. it will be logged into superchart widget before export to csv file. But unfortunately it only collect data for 1 minute interval. I want to collect data for 1 second interval. how can i do that with nodemcu and suprchart widget? please help
Data is buffered over a one minute period then averaged and the average written to the database, so one minute granularity is the best you can get.
Superchart supports currently 2 types of granularity:
- Minute granularity -
- Hour granularity -
This means that minimum chart update interval is 1 minute for
1dperiods. 1 hour for
3mperiods. As Blynk Cloud is free to use we have a limit on how many data you can store. At the moment Blynk Cloud accepts 1 message per minute per pin. In case you send your data more frequently your values will be averaged. For example, in case you send value
10at 12:12:05 and than again
12at 12:12:45 as result in chart you’ll see value
You could try Adafruit IO Plus at around $100 per year, which allows 1 second granularity, or you could set-up a device such as a Raspberry Pi with some additional attached storage and write the data to a database, probably via MQTT and Node-Red.
thanks for the explanation. I will try MQTT with nodemcu. (if available). thx again
You can certainly use a NodeMCU to send data via MQTT, that’s how all of my home automation projects work.
You’ll need a Pi or similar, or a Windows machine that’s on 24/7 with no sleep enabled, as your MQTT/Node-Red server and to run your database on.