Greg Erskine wrote: > The power/earth pins are not GPIO's. They are fixed at 5V, 3.3V or 0V > and can't be turned on and off. piCorePlayer can't do anything about > that. > > The GPIO's can be turned off and on but don't have much current capacity > so extra circuitry is usually required. Usually a transistor and a > resistor or 2. This solution will typically have 3 connections, one to > 3.3V, one to 0V and one to a GPIO. The GPIO usually connects to the base > of the transistor which works like a switch. > > So once you decide on your circuitry and pick the GPIO you need to load > the gpio-fan overlay. This will turn your fan on if it gets hot. > > > Code: -------------------- > > Name: gpio-fan > Info: Configure a GPIO pin to control a cooling fan. > Load: dtoverlay=gpio-fan,<param>=<val> > Params: gpiopin GPIO used to control the fan (default 12) > temp Temperature at which the fan switches on, in > millicelcius (default 55000) -------------------- > >
I just tries to find a way to control a fan by temperature on my pi zero+ Hifiberry. Do you know if this also possible for Pi zero? ------------------------------------------------------------------------ SMarti's Profile: http://forums.slimdevices.com/member.php?userid=72393 View this thread: http://forums.slimdevices.com/showthread.php?t=112946 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins