• 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
#1
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
Mark
 
Reply
#2
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).
 
Reply
#3
Hey,

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)

Regards
Mark
 
Reply
#4
Is there someone who use udev rules with pilight?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 1,177 06-11-2019, 05:19 PM
Last Post: curlymo
  GPIO input -> starting a rule scootermacro 1 306 06-09-2019, 07:40 AM
Last Post: curlymo
  Segmentation fault wth gpio-platform raspberrypi1b1 meloen 12 1,547 09-10-2018, 07:44 PM
Last Post: curlymo
  [SOLVED] Home Assistant switch gpio segalion 5 1,024 09-10-2018, 12:39 PM
Last Post: segalion
  no gpio-platform configured hansrijn2 2 4,382 06-03-2017, 10:01 PM
Last Post: hansrijn2
  Help: switch a gpio switch with webcontrol on pilight stable segalion 7 3,116 07-31-2016, 03:32 PM
Last Post: playerhot
  AdHoc - GPIO RPI2 & OrangePI2 error powerich 5 2,442 04-07-2016, 08:22 PM
Last Post: powerich
  Rule reset status hazzard 42 12,039 03-20-2016, 07:50 PM
Last Post: jowe2460
Tongue Trying to activate relay/gpio with remote control 433 mhz Horst 3 2,556 02-15-2016, 05:35 PM
Last Post: Niek
  Raspberry Pi Compute Module: 48 GPIO byteruler 1 1,403 08-21-2015, 11:05 AM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)