• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
usb will reset gpio
Good evening,

i have a pilight setup with 3 nodes.
one of the pi's is also responsible for charging my phone.(with a powered usb hub)
since the pi can use 3A of power i am sure it isn't a power problem.

Since today there are also some relay's connected to this raspberry and everything works fine. however as soon as i connect a phone to the usb port the relay's all turn off.

in the GUI of pilight they are still turned on so i don't think it is a pilight issue.
i have a lot of custom scripts running on the rpi and now i am wondering if this is default or my fault.
is there someone with relay's connected to the pilight system able to test this?
just put a usb device in the rpi (if it is a phone make sure it is not in "charge only" mode. it should be recognized by OS)

Many thanks
I am relatively sure that it is a hardware issue.
Either the wires are too thin so you have a shift in voltage levels,
- or the moment you connect your phone you get spikes on both lines: +5V and GND
- and/or the power supply can not handle the inrush current of your phone.

Create a proper star grid for +5V and Ground and add capacitors (two or three tantalum 4.7µF along the main line wires and ceramic (100nF) close to individual circuit devices.
Ensure that the relais coils do not create spikes either (diode in parallel).

Thanks for the response.

I can confirm that this is a software thing.

i currently have a redundant power supply on my pi with a combined power of 3A
as soon as i stop the udev service everything works fine (only the os wil not notice there is a device added.)

I need this function to let pilight know we are sleeping (both phones are charging in the bedroom)

Is there someone who use udev rules with pilight?

Possibly Related Threads...
Thread Author Replies Views Last Post
  Sender GPIO constantly under power (sometimes) scootermacro 1 285 03-06-2020, 07:37 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 1,634 06-11-2019, 05:19 PM
Last Post: curlymo
  GPIO input -> starting a rule scootermacro 1 548 06-09-2019, 07:40 AM
Last Post: curlymo
  Segmentation fault wth gpio-platform raspberrypi1b1 meloen 12 2,267 09-10-2018, 07:44 PM
Last Post: curlymo
  [SOLVED] Home Assistant switch gpio segalion 5 1,532 09-10-2018, 12:39 PM
Last Post: segalion
  no gpio-platform configured hansrijn2 2 4,796 06-03-2017, 10:01 PM
Last Post: hansrijn2
  Help: switch a gpio switch with webcontrol on pilight stable segalion 7 3,530 07-31-2016, 03:32 PM
Last Post: playerhot
  AdHoc - GPIO RPI2 & OrangePI2 error powerich 5 2,752 04-07-2016, 08:22 PM
Last Post: powerich
  Rule reset status hazzard 42 13,936 03-20-2016, 07:50 PM
Last Post: jowe2460
Tongue Trying to activate relay/gpio with remote control 433 mhz Horst 3 2,831 02-15-2016, 05:35 PM
Last Post: Niek

Forum Jump:

Browsing: 1 Guest(s)