Im needing to use CH32 as an analog input so cannot use the Stop logging option on this pin. Other hhan connecting a terminal is there another way to stop logging and close the current log fike on the sd card? Im in control of sampling as im using CH11 not the RT clock so i can cease sampling but how can i close the log file? If i just shut down the 3.3V regulator using PSWC will i end up with an unterminated file?
Hi John (@John_Stokes ),
The firmware only supports “stop logging” on pin 32. You would need to recompile the firmware to select a different pin.
The TX and RX pins (12 and 13) can also be used for analog input.
If you shut down the regulator, you will almost certainly lose data. And the RTC will almost certainly lose sync too. A graceful “stop logging” is the only way to prevent both…
I hope this helps,
Paul
Hi Paul, thank you for your guidance
For my application i need to log 3 analog channels and i want to have variable samplingg using pin 11 driven by a pic microcontroller. This means i cannot employ cb 32 to gracefully stop logging.
So it seems my only option is to connect a terminal to the USB C port to stop logging and put into deep sleep.
Hi John (@John_Stokes ),
Would the ADS1015 meet your needs? The OLA firmware supports that - via the Qwiic bus.
Best,
Paul
Hi Paul.
Yes that is a possibility although space is limited but definitely an option if I can source the ADS1015 board in the uk.
Cheers
John
Hi John,
Pimoroni stock the Adafruit ADS1015 - with Qwiic connectors.
Best wishes,
Paul
Hi Paul.
Yes I saw and ordered one today. It’s a good idea as I get another few analogue channels I can use for logging less important signals.
Cheers
John.