I have tested (and read in the user manual) my current AudioMoth (1.1.0) and found that it has a 3.3 volt output as part of the GPIO. It appears to be always on. I am curious if this could be user programmed to be off and on when the device is recording. Thanks!
top of page
To test this feature, visit your live site.
6 Comments
bottom of page
Hi Hal, We're in the process of writing an application note on using the GPIO pins. We don't support this in the standard library but using the standard EMLib is pretty straightforward as you typically only need to use the GPIO
https://siliconlabs.github.io/Gecko_SDK_Doc/efm32gg/html/group__GPIO.html This would typically mean adding the required include directive into the main.c file: #include "em_gpio.h" Then any particular pin could be enabled as an output:
GPIO_PinModeSet(PORT, PIN, gpioModeInput, 0);
Set or cleared:
GPIO_PinOutSet(PORT, PIN); GPIO_PinOutSet(PORT, PIN);
Then disabled after use: GPIO_PinModeSet(PORT_A, PIN, gpioModeDisabled, 0); Here PORT and PIN are defined in the EMLib and written on the top surface of AudioMoth 1.2.0. These are the same for AudioMoth 1.1.0 but slightly different on AudioMoth 1.0.0. We'll document these differences: This means that for 'a7' on the hardware we have: PORT = gpioPortA PIN = 7 The AudioMoth 1.1.0 and AudioMoth 1.2.0 hardware also has the RX and TX pins of UART1 (Location 2) available which can be used to communicate with devices such as GPS modules. The application note will also describe how to do this with AudioMoth 1.0.0 and provide some code examples.