LowPowerLab Forum

Hardware support => Moteino => Topic started by: d00m178 on October 28, 2019, 12:36:18 PM

Title: Digital pins for output 3v on Moteino R4 and R6 with RFM95
Post by: d00m178 on October 28, 2019, 12:36:18 PM
Hello

Please advice - which of digital pins on Moteino R4 and R4 with RFM95 module I can use for get output 3v, for example, for controlling mosfet or power switch with load.

so far I can use 6 and 7 pins like:


#define LIGHT_PWR 6

setup()

//LIGHT
    pinMode(LIGHT_PWR, OUTPUT);
        digitalWrite(LIGHT_PWR, LOW);

.........

loop()

  digitalWrite(LIGHT_PWR, HIGH);

..........blabla

  digitalWrite(LIGHT_PWR, LOW);

  LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);



and when Moteino goes to sleep mode these pins are 0v on my multimeter.

but I suddenly realized that pin8 still == 3v in sleep mode which is lead to power my power switch TPS27081A and current drain in sleep mode.
So is there a list of pins that I can use without such behavior?
Title: Re: Digital pins for output 3v on Moteino R4 and R6 with RFM95
Post by: Felix on October 28, 2019, 02:33:09 PM
It's explained in the guide (https://lowpowerlab.com/guide/moteino/out-of-box/) and on this pinout which pins are used by the FLASHMEM and radio modules.

(https://farm4.staticflickr.com/3818/10585364014_df2e1604bc_o.png)
Title: Re: Digital pins for output 3v on Moteino R4 and R6 with RFM95
Post by: d00m178 on October 29, 2019, 03:05:41 AM
thank you!
pin 5 works better than pin 8 and I have 10uA in sleep mode)