Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maximum Number of Zones
#53
(2021 Jun 24, 06:24 PM)astrogerard Wrote: (un)plugging an usb device is always a bit tricky especially when it is a fan. A fan is a motor and by disconnecting the fan there will be a (huge) spike on the 5v rail since the usb 5v is directly connected to the 5v pin on the pi. Earlier you mentioned when switching on/off devices on the mains the undesired switching also occurs. I assume you don't have an oscilloscope to identify the problem so you must eliminate the problem with trial and error. putting the right capacitors in various places is a good start.

To your questions/remarks the following:
- the 47uF capacitor should be at rated at 16v or higher when using it on the 5v rail.
- assuming the top rail gets power from the Pi and is only powering the shift registers decoupling with 1 (or 2 on each end) is a good practice
- the bottom power rail makes no sense to me why you have this connected. The best is to use the extra psu only for powering the relay boards and try to keep these wiring away prom the Pi and shift registers.
- do not connect both GND's (top and bottom) together. Keep them isolated from each other.
- the Pi is very sensitive on the supplied voltage. The original psu's deliver 5.1 or 5.2V.  Most 5v adapters are made for charging and usually show a voltage drop to way below 5v. The Pi can then easily brown out or gives erratic behavior.  So, use a good psu for the Pi with the right voltage and use the cheaper ones for the relay board(s).

The UPS I can't say much about it. From the datasheet I see there is noise suppression on the outlets but I'm not sure if this is sufficient or of any influence on your issue.
I always salvage inlet filters (e.g. like this) from old equipment and reuse these on most of the diy stuff I do. Also on my SIP irrigation system such a filter is present so the garden is not watered when I'm turning on the table saw, lathe, mill or start welding  Tongue

For a book recommendation, I'm not the right person to give advice. Although I studied "higher electronics" many many ears ago, the last 30 years I learned by doing. The internet is one huge book of which some is true.  Smile 

Hopefully you will find the solution soon. Don't give up, your almost there.

The USB fan is NOT connected to the POWER RAIL it is connected to a USB adaptor and plugged into the NON BATTERY side of the UPS.

"putting the right capacitors in various places is a good start."

Should I anticipate that the 47uF will resolve the issue at hand?

"only powering the shift registers decoupling with 1 (or 2 on each end) " 

Just to verify I make the connection between the POSITIVE and the NEGATIVE using the 47uF on the TOP RAIL?

"the bottom power rail makes no sense to me why you have this connected. The best is to use the extra psu only for powering the relay boards and try to keep these wiring away prom the Pi and shift registers."  "do not connect both GND's (top and bottom) together. Keep them isolated from each other."  

There is a ground wire connecting each of the SHIFT REGISTERS to the BOTTOM RAIL. The BOTTOM RAIL GND is CONNECTED to the TOP RAIL GND.  Doesn't there need to be a common GND between the Pi powered shift registers and the secondary powered RELAYS?

I was using the BOTTOM RAIL for power distribution for the RELAYS.  ie I attached the secondary power to the BOTTOM RAIL and then attached the RELAYS JD-VCC and GND.  I will remove the secondary power supply from the BOTTOM RAIL.
Reply


Messages In This Thread
Maximum Number of Zones - by HereComesTheRain - 2020 May 28, 03:01 PM
RE: Maximum Number of Zones - by dan - 2020 May 28, 03:14 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2020 May 28, 03:43 PM
RE: Maximum Number of Zones - by dan - 2020 May 28, 05:40 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2020 May 28, 07:14 PM
RE: Maximum Number of Zones - by dan - 2020 May 28, 08:07 PM
RE: Maximum Number of Zones - by astrogerard - 2020 May 29, 04:16 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2020 May 29, 07:45 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2020 May 29, 09:42 PM
RE: Maximum Number of Zones - by astrogerard - 2020 Jun 04, 04:08 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2020 Jun 09, 04:38 PM
RE: Maximum Number of Zones - by astrogerard - 2020 Jun 09, 06:18 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2020 Jun 09, 08:03 PM
RE: Maximum Number of Zones - by dan - 2020 Jun 09, 09:46 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2020 Jun 09, 10:55 PM
RE: Maximum Number of Zones - by dan - 2020 May 30, 03:42 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 May 24, 01:10 AM
RE: Maximum Number of Zones - by dan - 2021 May 25, 04:00 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 May 25, 05:41 PM
RE: Maximum Number of Zones - by dan - 2021 May 26, 02:08 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 May 26, 04:02 PM
RE: Maximum Number of Zones - by dan - 2021 May 27, 12:13 AM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 06, 01:08 AM
RE: Maximum Number of Zones - by dan - 2021 Jun 06, 02:23 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 06, 04:28 PM
RE: Maximum Number of Zones - by dan - 2021 Jun 06, 04:52 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 06, 10:09 PM
RE: Maximum Number of Zones - by dan - 2021 Jun 13, 01:53 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 13, 07:59 PM
RE: Maximum Number of Zones - by dan - 2021 Jun 14, 01:11 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 18, 11:43 AM
RE: Maximum Number of Zones - by dan - 2021 Jun 18, 02:27 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 18, 02:47 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 18, 03:51 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 18, 08:36 PM
RE: Maximum Number of Zones - by dan - 2021 Jun 19, 01:20 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 20, 01:54 AM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 22, 02:18 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 22, 03:40 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 22, 04:56 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 22, 06:30 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 22, 07:49 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 22, 08:34 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 22, 08:45 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 22, 09:40 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 22, 10:10 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 22, 11:48 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 23, 07:31 AM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 24, 12:07 AM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 24, 06:55 AM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 24, 12:51 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 24, 06:24 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 24, 09:01 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 24, 09:58 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 24, 11:47 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 25, 09:49 AM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 25, 12:37 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 25, 01:13 PM
RE: Maximum Number of Zones - by dan - 2021 Jun 25, 01:26 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 25, 04:27 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 25, 06:57 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 25, 07:57 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 27, 01:19 PM
RE: Maximum Number of Zones - by dan - 2021 Jun 27, 03:12 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 27, 03:54 PM
RE: Maximum Number of Zones - by dan - 2021 Jun 27, 04:43 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 27, 05:02 PM
RE: Maximum Number of Zones - by dan - 2021 Jun 27, 06:21 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 27, 07:25 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 28, 12:22 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 28, 04:56 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 28, 06:05 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 28, 07:59 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 29, 12:09 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 29, 03:02 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jun 29, 07:59 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jun 29, 10:39 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jul 08, 09:24 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jul 08, 09:50 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jul 09, 08:54 PM
RE: Maximum Number of Zones - by HereComesTheRain - 2021 Jul 11, 02:11 AM
RE: Maximum Number of Zones - by astrogerard - 2021 Jul 11, 06:47 PM
RE: Maximum Number of Zones - by astrogerard - 2021 Jul 29, 07:54 PM

Forum Jump:


Users browsing this thread: 11 Guest(s)