News:

LATEST RELEASE:  FPP 6.3 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/6.3

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15659
Latest: PaulDzRGB
New This Month: 9
New This Week: 3
New Today: 0
Stats
Total Posts: 128433
Total Topics: 15791
Most Online Today: 48
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 4
Guests: 30
Total: 34

PiUPShield - Looking for Input

Started by TexasStingray, January 19, 2018, 11:33:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TexasStingray

Wanted to get a group discussion started here about having a Pi HAT/Shield here that would be a battery backup for you pi that would trigger a GPIO that would let the pi know that it is running on battery power to take action. I think that it would require 2 GPIO's so that the shield knows when the Pi has shut down so that it removed the batteries power from the pi so that when the mains power is back it triggers a start of the Pi.

Bwinter

What type of "action" would it take if it recognized it's on battery?


If the Pi is "shut down," how would a GPIO trigger it to start back up?

TexasStingray

Action would depend on the script, but in most cases if there is no mains power then there is not enough power to run the light show show it should shut down. The Pi by default when power is applied to it would power on. So when the mains power is on then the pi would start up as usual. Then when the mains power is cut off for some reason the shield would kick in keeping the pi up and triggering the GPIO which the script would recognize and take action. Then when the 2nd GPIO goes LOW because the pi is shutdown the shield would have to kill its power going to the pi, so that when the mains power does come back on it would trigger a normal startup.

CaptainMurdoch

This sounds like a good idea to me.  There are some commercially available solutions, but they seem to cost as much as or more than the Pi.
-
Chris

k6ccc

I'm watching this thread...  Very interested to see where this goes...
Using LOR (mostly SuperStar) for all sequencing - using FPP only to drive P5 and P10 panels.
My show website:  http://newburghlights.org

Jim

TexasStingray

Looking for the developers out there that have developed HATS for the Pi, that have made them available to others! What GPIO pins are available for use?

CaptainMurdoch

Most of the pins used by the various Hats are documented on the Channel Outputs popup help page in FPP.  The RGBMatrix output needs updating as it now can use almost all the pins to drive the 3 chains of LED panels.

If you are looking for pins to avoid, avoid the PCM and i2c pins unless you need i2c.  The newer version of the ws281x library has the option of using those to drive pixels and I may see if I can drive 4 strings of pixels off the Pi at one time using those and the two PWM outputs we currently use.
-
Chris

TexasStingray

#7
Maybe i should allow the user to set jumpers for the pins to use?

Bwinter

Quote from: CaptainMurdoch on January 19, 2018, 05:24:46 PM
Most of the pins used by the various Hats are documented on the Channel Outputs popup help page in FPP.  The RGBMatrix output needs updating as it now can use almost all the pins to drive the 3 chains of LED panels.

If you are looking for pins to avoid, avoid the PCM and i2c pins unless you need i2c.  The newer version of the ws281x library has the option of using those to drive pixels and I may see if I can drive 4 strings of pixels off the Pi at one time using those and the two PWM outputs we currently use.

Wait....you're saying the Pi could potentially drive 4 WS281x strings, instead of just the two that we're accustomed to??

CaptainMurdoch

Quote from: Bwinter on January 19, 2018, 06:47:44 PM

Wait....you're saying the Pi could potentially drive 4 WS281x strings, instead of just the two that we're accustomed to??

I am not sure yet but the possibility exists.  I believe the updates version of the library supports outputs over PWM, PCM/SPI, and i2c but I am not sure if it can do all at the same time.  Even if it can't, do all at the same time, I want to explore using the other outputs.  The advantage of using those will mean you could still use the onboard PWM audio while driving pixels at the same time.
-
Chris

Bwinter

How soon would this be implemented?  In enough time to develop new boards that could take advantage of this for the upcoming season?

CaptainMurdoch

Quote from: Bwinter on January 19, 2018, 07:03:26 PM
How soon would this be implemented?  In enough time to develop new boards that could take advantage of this for the upcoming season?

I plan on upgrading the library used in the master branch sometime soon and will then regression test the existing PWM method and also test the new output methods to get them working and see if I can drive 3-4 at the same time.
-
Chris

TexasStingray

Working on this and having a great time learning. Using a breadboard I've been able to run my Pi Zero W with the main power and the power pack hookup up at the same time and when i cut the main power the pi keeps on running off the power pack. Using FPP GPIO I've been able to trigger a shutdown script. Next is to edit the script to check to wait some period of time and see if the main power is still off or take action.
have been able to run

Bwinter

Quote from: CaptainMurdoch on January 19, 2018, 05:24:46 PM
Most of the pins used by the various Hats are documented on the Channel Outputs popup help page in FPP.  The RGBMatrix output needs updating as it now can use almost all the pins to drive the 3 chains of LED panels.

If you are looking for pins to avoid, avoid the PCM and i2c pins unless you need i2c.  The newer version of the ws281x library has the option of using those to drive pixels and I may see if I can drive 4 strings of pixels off the Pi at one time using those and the two PWM outputs we currently use.


Was this ever implemented?  Can a RPi now drive 4 separate ws281x outputs?

Bwinter

Quote from: CaptainMurdoch on January 19, 2018, 07:36:06 PM
Quote from: Bwinter on January 19, 2018, 07:03:26 PM
How soon would this be implemented?  In enough time to develop new boards that could take advantage of this for the upcoming season?

I plan on upgrading the library used in the master branch sometime soon and will then regression test the existing PWM method and also test the new output methods to get them working and see if I can drive 3-4 at the same time.

Still curious on where this project ended up (the ability to drive 3-4 strands off a Pi).

Support FPP

+- Recent Topics

F16V3 with 2 expansion boards at 40 fps MAX PIXELS per output? by BirdingPix
Today at 02:49:02 PM

Warning/Error: Network incomplete frames hit 250. by JonD
Today at 10:59:15 AM

F48V4-NS at 40 fps using all 48 pixel output ports? by Poporacer
February 06, 2023, 10:27:09 AM

Unable to update RPi 5.5 to latest version by JonB256
February 05, 2023, 07:23:16 PM

help getting started, next step? by rayster
February 05, 2023, 04:24:09 PM

F48v4NS - Pi or No Pi? by joeyblasko
February 05, 2023, 09:15:33 AM

Huidu Controllers LED matrix by CaptainMurdoch
February 04, 2023, 10:18:47 AM

FPP6.2 universes by darylc
February 03, 2023, 08:48:57 PM

F16v4 Ports vs Universe Configuration Question by k6ccc
February 03, 2023, 09:32:48 AM

Need Expert Advise on F16v4 Ports vs Universe Configuration by Kairus
February 03, 2023, 09:32:33 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod