VM211 anyone implemented realtime clock VMA301

The assembly manual states:
Options, coming soon!

  • Arduino compatible 3 colour RGB SMD LED module (2pcs)
  • UV light sensor Guva-S12SD module
  • DS1302 real-time clock module / with battery CR2032 (2 pcs)

Has anyone started to implement the Realtime module VMA301?
It would really improve the value of the logging data.

Got a VMA301 and fitted it in the Earth Listener like this:

Tuck the cable under the Arduino:

First I bent the male connections, like this:

but THAT is not a good idea, they break easily, so in the end I soldered a pin to the wires and isolated them from each other by a small drop of hotglue.
(No picture of that, the box is already closed).

I am using 3 analog pins A13â€ĶA15. They can be used as digital pins:

  • pin 67=A13 VMA301 label RST
  • pin 68=A14 VMA301 label DAT
  • pin 69=A15 VMA301 label CLK

So far the hardware. And sofar for now.

Have a look at the library for the VMA301 @ https://www.vellemanformakers.com/product/ds1302-real-time-clock-module-with-battery-cr2032-2-pcs-vma301/.
There are multiple examples who can help you on your way.

One you have the time from the DS1302 sensor in a variable, you only need to change this part of the EarthListener3v4_final code:

/****** poll sensors & update vars + log to SD *****/
// make a string for assembling the data to log on the SD card & add the current time:
String dataString = “”;
char buf[17];
sprintf(buf,"%02d %02d:%02d:%02d",runDays,runHours,runMinutes,runSeconds);
dataString = buf;

This part is writing the runningtime of the EarthListener, you should change that to the current time of the DS1302.

Kind regards,
VEL342

@bert.test
Why not connect to the same side as the sensors?
The IIC connections SDA and SCL are available there.

1 Like

@Guus.Assmann good question.

I got inspired by the RGB led mounting instructions (did I?).
And I would never install the RGB led.
Do not like leds trying to get my attention :wink:

Bert

Hello all,

In case anyone does implement the VMA301 on the EarthListener . . . . .
a link to The VM211 forum item about lighning

There is a link to my github repository to SET the date/time on the RealTimeClock.
And an update proposed to the VM211 firmware to support the VMA301.

Kind regards,
Bert