Store value in MegunoLink

A place to just chat
Post Reply
jersonjose
Posts: 1
Joined: Wed Feb 24, 2021 6:58 am

Wed Feb 24, 2021 7:08 am

Hi,

I am fairly new to MegunoLink, I am wondering on how to store incoming values in MegunoLink. My project is about fuel consumption meter (gravimetric method) and I am creating a user interface for it. The idea is very simple when I click a button I want to store the value (weight in my project) appearing in a textbox. I already did the onClick command of the button, is that command already considered as storing of values? How do I retrieve that value and use it later to compute fuel consumption? Also, is there a built-in timer in MegunoLink that I can incorporate in my program?

I also attached a temp&humidity sensor and it's working fine so no problem with it. Just the one above.


Here are the materials I am using:

Arduino Uno
Load cell connected to a digital display (serial communication)
Temp and Humidity Sensor (i2c communication)

Thank you.
philr
Posts: 446
Joined: Mon May 26, 2014 10:58 am

Fri Feb 26, 2021 5:55 am

Hi, there isnt strictly a way to store values. The best way is probably to store it on the arduino using the eeprom. We have an example on this
https://www.megunolink.com/documentatio ... promstore/

Then when megunolink starts you could grab the values from the micro if you wanted to read or update them.

Yep we have a timer
https://www.megunolink.com/documentatio ... nel/timer/

Cheers
Phil
Post Reply