Feed on
Posts
Comments

It’s been a few years since I’ve updated the hardware/software for Standalone Temperature/Voltage Logger but my recent Mini Temp Logger (MTL) project has made me think about improvements that I could also put back into the SATVL so there’s just a few quick things worth mentioning for the v1.3 update.

SATVL_v1.3_Built_Top

There has been a small hardware change, the 2 diodes have been removed which now allows for up to ~28V input voltage logging and the automatic voltage switcher has also been updated like I designed in the MTL, the PCB’s size was reduced slightly too. The reason for the 2 diodes was to protect against high input voltages because I believed that if we exceeded the 1.1V ADC reference voltage that the ATtiny would be damaged.

satvl_1.3_1

However after careful reading of the datasheet it turns out that all that would happen is it would read close to max value of 1023 so all is good.

Changing the delay times/function’s code wasn’t laid out as it could have been so I’ve reworked it, we now keep count of button presses and releases. Instead of having a long watchdog delay time, we quickly loop a few times with short watchdog delays and that allows us to capture if the button was pressed multiple times while still saving power instead of using a timer. We then sleep again and determine which function to execute, from 48 lines to 30 lines now.

When doing the actual configuration I’ve changed it so once the button presses have been done, you wait 4 seconds and the configuration will be stored.

Instead of just having it be configured by buttons, I’ve borrowed some of the A25TTL code to have it all be configured by the PC too.

I’m also using the A25TTL delay time style and the easiest way to break out of the logging loop in this case is to reset the AVR if a button is pressed.

Once the watchdog reset occurs when the AVR resets we check to see the MCUSR register to see if we were reset by a power on reset which means it wasn’t the watchdog, then and only then will we reset the EEPROM memory size variable and we turn off the watchdog as we could keep resetting ourselves. The EEPROM memory size variable has been declared as a no initiliase variable which prevents the AVR from changing the value at all unless we say otherwise.

Apart from all of these changes everything remains pretty much the same. Download Standalone_Temperature_Voltage_Logger_v1.3_Rev_1

4 Responses to “Standalone Temperature/Voltage Logger updated to v1.3”

  1. Jonathan says:

    I was wondering if you’ve thought of moving to the interrupt free V-USB described at https://cpldcpu.wordpress.com/2014/03/02/interrupt-free-v-usb/
    Supposedly it uses less memory (important for the tiny line of chips) and speeds up data transmission.

    • Alex says:

      Hi Jonathan,

      Thanks for bringing that up, I may look at using that in the near future to see how good the speed increase really is.

  2. Ty Tower says:

    So can I alter the units I have to incorporate these improvements?

Leave a Reply to Jonathan