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: 15699
Latest: Nicole4Z
New This Month: 17
New This Week: 1
New Today: 0
Stats
Total Posts: 128638
Total Topics: 15831
Most Online Today: 53
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 26
Total: 27

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

Flexible ws2811 panels by Mark_M
March 29, 2023, 09:39:37 PM

Problem with one of my Remotes - syslog always starts with "soliciting.." by Jayl
March 28, 2023, 11:03:41 PM

F48v4-NS unable to connect to WiFi Hotspot by joeyblasko
March 28, 2023, 03:18:46 PM

F/S Arduino UNO R3 with extras by StickyWicket
March 28, 2023, 09:28:23 AM

DMX to pneumatic solenoid by deanathpc
March 27, 2023, 07:54:22 AM

Libre SBC with oled by mel4853
March 24, 2023, 04:04:06 PM

K8-Pi - Random Pixels on by cybercop23
March 24, 2023, 10:44:49 AM

Limitations on Video file size? by Jayl
March 23, 2023, 11:06:14 AM

FPP 7 Kubernetes Error by Jlwright325
March 22, 2023, 11:11:59 AM

FPP Install on Raspberry Pi Zero W by k6ccc
March 21, 2023, 05:53:50 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod