News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15299
Latest: Psonic
New This Month: 2
New This Week: 2
New Today: 2
Stats
Total Posts: 125118
Total Topics: 15244
Most Online Today: 71
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 25
Total: 25

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

Upgraded to FPP V6.1.1 - Network Settings do not have "Interface Routing" option by Poporacer
October 01, 2022, 10:24:15 PM

FS Kulp K-8B Controller, Complete by poolprousa
October 01, 2022, 08:31:43 PM

60+ Ray Wu Cables, Pigtails, misc by jnealand
October 01, 2022, 08:57:49 AM

Sequence issues from Rasberry pi by Poporacer
October 01, 2022, 07:49:10 AM

New K4-PB wifi problems by fauxton
September 30, 2022, 07:19:15 PM

Projector video for just one video source by XmasInGalt
September 30, 2022, 03:54:30 PM

F16V4 port 5 Lights flicker by JonD
September 30, 2022, 01:55:34 PM

Smart receiver 2.01 on F16v3 not sending data by JonD
September 30, 2022, 12:51:45 PM

Micro-SD by JonD
September 30, 2022, 08:58:19 AM

Unable to get FPP working on RasPi-4 by k6ccc
September 30, 2022, 08:11:06 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod