Hello,
Can I program this device:
in order to send the measurements on specific timestamps. Say, for example I want to get the measurements at 12:00:00 and at 20:00:00 every day. Can I achieve that? Do they use internal clock? It uses ATtiny85.
Something more: it says in the description: "... with a couple levels of PWM dimming for increasing current..."- what is this??
Thanks...
The device will continuously send your Arduino messages like:
V: 5.3 I: 297 mA Watts: 1.6
An Arduino is not a very accurate timepiece and may be off by ten minutes per day. To get accurate timing you will need a Real-Time Clock (like a DS3231) connected to your Arduino.
At 12:00:00 and 20:00:00 you should read characters from the serial connection until you find a 'V', then. use Serial.parseFloat() three times to get the Volts, Amps, and Watts values. Don't worry about the letters and ':'s as they will be ignored.
If you want to use Serial to communicate with a PC you can use SoftwareSerial to connect to the device.