Obtain a stable 5V output

Hello to everybody,
i would recover a gsm module that work with 5V power and logic and use with my mkr1000. My problem is how obtain a stable 5V for power and communicate correctly with mkr1000 in both situation when mkr is powered from usb and battery (for example for determine a blackout in house).

I have read the datasheet, if i not wrong, the 5V pin has an output to 5 volt only when connected to usb, in this way i cannot use a llc for my project.

There is a solution for this problem?

Thanks for help

Most GSM modules have a minimum or maximum volatge.
They can vary slightly but you didnt give any information so it is impossible to give a real answer.

Also you could feed the module from a slightly different feed by splitting a supply so that you know the GSM module is getting what it needs and feeding the remainder to the USB port.
Dont forget a common ground if you take that approach.

Thanks for reply ballscrewbob,
The gsm module is adafruit Adafruit FONA - Mini Cellular GSM Breakout - SMA Version [v1] : ID 1963 : $44.95 : Adafruit Industries, Unique & fun DIY electronics and kits, my goal is power directly from mkr100 using the 5V input of the module so i have only the input usb connected to mkr (both module have a backup battery connected).
My scope is to send an sms when there is a blackout in house.
But during blackout the 5V pin of mkr change voltage from 5V to 3.7V (if i have understood correctly the specifics).

Sorry but i have no idea on how produce a constant 5V

Thanks again

Thats better. The extra info means so much more to me now.

That circuit when fed to a voltage divider would allow you to sense when power to the USB port is lost (house power) dont forget that your voltage divider needs to be calculated to the 3.3 volt range to suit the MKR.

You would only need to splice into the power and ground cables and NOT the DATA lines.

Thanks, great idea :slight_smile:

I try to use this method for power the GSM module.

According to your opinion, can i use the same usb power cable for power both mkr and GMS ?

Thanks.

Yes so long as both items together do not exceed the current capacity of the supply you should be just fine.
It would simply be a matter of two extra wires from that shown above just to supply the GSM too.

Most USB power supplies have a limit of around 500mA so whatever it says on your PSU is your limit.