logo
background
 Home and Links
 Your PC and Security
 Server NAS
 Wargames
 Astronomy
 PhotoStory
 DVD making
 Raspberry Pi
 PIC projects
 Other projects
 Next >>

Notes index links

Links to all my notes (includes mini-projects and source code etc)

(+) 0001 How do I change the Pi System partition size ?

(+) 0100 Device tree settings



(-) 0201 Power over Ethernet - (PoE)


How to power a Pi via an Ethernet cable (PoE)


PoE (in 'Mode B') makes use of the 2 'spare' pairs of wires in a 10/100 standard Ethernet cable. These 2 pairs (pin 4,5 = DC V+, and pins 7,8 = 0v) are 'not used' for 10/100 data transmission, however they ARE used for Gigabit data transmission. The Pi, however, only supports 10/100 (directly or via a USB-Ethernet 'dingle'), so pins 4,5 (blue, blue/white) and pins 7,8 (brown, brown/white) will always be 'spare' - however using them is not as easy as you might think (see Pi model B Ethernet socket issue, below) 'Professional' PoE solutions cost the usual 'arm and a leg', with 37-57v sent down up to 100m of cable (see here for 'proper' PoE specs). Plainly 'aimed' at the Corporate user base, the DC-DC converters required are ludicrously expensive (the 'cunning use' of a 37v 'minimum' is plainly designed to prevent the use of cheaper regulators, which are limited to 36v max). Whilst 'professional' PoE DC-DC converters are prohibitively expensive, if your 'DIY PoE' limits itself to less than 36v (rather than 38v+ used by 'professional' solutions) you can use 'off the shelf' converters. Even the Farnell (6.5-36v to 5v, 1A for about £4) are a fraction of the 'professional' PoE cost. If you are prepared to wait (and are OK with an open PCB product), it's even cheaper from China via eBay ("1/5PCS LM2596S DC-DC Power Supply Buck Converter Adjustable Step Down" 40v in, 2A out, 5cpcs for £3.69 so 74p each) If your cable length can be kept under 50m, a 24v 'feed in' supply voltage can be used ... and for cables of 25m or less, at the typical power consumption level of a Raspberry Pi (even with camera, it's less than 500mA at 5v = 2.5w), a feed-in voltage of 12v (so 2.5w = 210mA) should work just fine (a 12v to 5v (1.8A continuous current rated) DC-DC converter can be had for 68p (Qty 5 off) from China (via eBay)) When going for a DC-DC converter at the Pi, look for a 'buck' converter rather than a 'linear' type (sold by some expensive UK High Street chains, such as Maplins), especially if you are driving more than about 18v down the PoE wires, since (for a 'linear' converter) the higher the 'input' voltage, the higher the heat dissipation.
Photo: ../Raspberry_Pi/photos/24-12v-charger.jpgPhoto: ../Raspberry_Pi/photos/24-12v-specs.jpg
You can find 'buck' style converters in almost every 'USB car adapter'. Those (such as the 'Smart' adapter) rated for 'car/lorry' use (12v/24v) can be found for a couple of quid (including micro-USB plug cable) from eBay.

Be warned that most of those found in the £1 stores only output 500mA, although this should be (just) enough for the Pi Zero/A+. More to the point, many cheap ones are only 12v input limited - so check the specification 'sticker' carefully before using them for 24v PoE :-)

Whilst the 'car USB charger' will give you the required 5v 'steady state' voltage, many fail to cope with the Pi's wildly variable current demands. This can be addressed with a decent 'reservoir' capacitor (100uF, 6v) at the output of the converter, although you may have to use shielded Cat6 Ethernet cable (to stop it acting as an aerial)

Of course you can buy a 'real' PoE 'HAT' - see, for example, one from RS components (for the rip-off price of £25, for which you get the Pi HAT only, no cable, no 'injector' no 12/24v PSU).

Since it's specified to support an input voltage of 36-56v, plainly RS expect you to pay another £25 for their PoE power 'injector' power block (remember, the 36v PoE minimum requirement has been carefully chosen to prevent the use of cheap 24v sources, and for sure to prevent the use of the 'dedicated' 12v PoE injectors that can be found on eBay for less than £5)

Using a PoE hub

Don't bother = all PoE hubs are (of course) limited to 100mbs (a Gigabit hub uses the PoE wires for 1000mbs transmission), and (even on eBay), a PoE hub is at least 3x the cost of a Gigabit hub with the same number of ports.

Since it costs only £1 for a PoE 'power injector' (or PoE 'split off') adapter and less than £2.50 for a 12v power-block (eBay), it makes no sense to pay £10 a port extra for a PoE hub.

Note that the 4+1 port PoE hub rated at 10/100 can only support an 'up-link' data rate of 100mbs. When spread over 4 'down-link' ports that's 25mbs each. If one 'down' port uses the full 100mbs, the other ports must get 0 !

However a 4+1 port Gigabit hub will support an 'up-link' data rate of 1000mbs - spread over 4 ports that's 250mbs each. That means all 4 'down-link' ports can be run at a full 100mbs each (or one at 100 and the other 3 at 300mbs each :-) )


The Pi model B (B/B+/B2,B3) Ethernet socket issue

The problem with the Pi B series is that the designers have chosen a 'clever' Ethernet socket that has internal circuitry which shorts pin 4 to 5 and pin 7 to 8 (so far so good) but then feeds them via some sort of internal resistor / capacitor network into the 10/100 receiver transfer circuits !! (see page 3 of the Pi circuit diagram). This, of course, means any 'noise' on these wires (as would be caused by using them to power the Pi) will be 'injected' straight into the Ethernet data wires leading to data corruption and a massive deterioration in throughput.

So, in order to use a B series Pi with PoE, you have to 'split off' the pins used for PoE (4,5 and 7,8) from the incoming Ethernet cable before it reaches the Pi (PoE adapters exist or you can physically cut open the cable). The final choice - replacing the socket - risks damaging the Pi motherboard.

Of course you also need to 'feed in' the PoE DC voltage at the LAN end - and an Ethernet hub with 'real' (48v) PoE costs an 'arm and a leg'. You can find 12v or 24v PoE hubs on eBay for not much more than one without, however most have only 4 sockets, many are limited to 500mA per socket and (of course) all PoE hubs are limited to 100mbs.

By far the best solution (and the only solution for those using Gigabit hubs) is a pair of PoE 'split in/out' adapters. These can be had on eBay for £2 the pair (or more than double that from a 'Pi shop'), and an off-the-shelf 2A+ 24v 'power block' can be found for less than £5 (or 12v 2A for less than £2.50) if you search around on eBay.


Pi A/A+ PoE

The Ethernet socket is not fitted to the A, so there is plenty of space to 'stick' a DC-DC converter (the output of which can be wired to the USB power-pins, although you will have to bridge the USB 'reverse protection' diode).

Assuming you want to 'talk' to the Model A Pi by Ethernet (why else did you run the wires ?), you will then need a USB to Ethernet 'dongle', about £2.50 from eBay (the Ethernet comms chip (LAN9512) is simply not fitted to the Model A) = see below.

The plastic case of most 'USB to Ethernet' dongles can be popped open (the rest can be cut open) allowing you to 'get at' the PoE pins inside - indeed in some cases it's even possible to add a DC-DC regulator inside the dongle !

I've not (as yet) found any 'dongle' using the same sort of 'clever' Ethernet socket (that feeds noise from the PoE wires into the 100mbps pins) as used by the Pi B's, however if you do run into one then you will need a PoE 'break out' adapter between the incoming Ethernet cable and the USB dongle.

The output of the converter then has to be fed to the Pi micro-USB power socket - or better, you can 'back drive' the Pi from the dongle


Pi Zero PoE

As per the A/A+, however, the Pi Zero (which effectively replaces all but the Pi B3) has the advantage that you can power it straight from it's USB data socket without even needing to add wires or bridge diodes !

So PoE is actually a lot easier to use with the Pi Zero (even compared to the A/A+). Just open up the USB to Ethernet 'dongle', wire the incoming PoE (pins on the Ethernet socket) to the DC-DC converter, then wire the 5V (output from the converter) direct to the micro-USB 'feed in cable' pins = and case closed !

Note. For the Pi Zero almost any 'off the shelf' 12/24v car/lorry 'cigarette lighter socket' USB power adapter can be dismantled and the insides will often be small enough to fit inside an 'Ethernet-to-USB' dongle (especially after de-soldering the full sized USB socket).

However, if you are using an 'Ethernet+3port hub' dongle, then the typical car adapter (rated at 500mA) is not going to deliver enough power (3 ports at 500mA each = 1.5A !).

So you will need a 12/24v DC to 5v DC converter rated at 2A, and these are actually cheaper than the Poundshop 'car adapter' ('5PCS DC-DC buck adjustable step down Regulator' can be had for £3.40p, eBay = so 68p each). The PCB width is only 11mm (length 17mm) so these will fit within most USB Ethernet 'dongles' (they are rated for a continuous current of 1.8A, same as the 'headline 3A' product).


In short, the ease of using it with PoE is just one more reason to stick with the Pi Zero.

This note last modified: 29th May 2018 14:36.

[top]

(+) 0202 Solar Power - (with WiFi)

(+) 0203 Power Bank pass through

(+) 0400 Accessing the SDHC card system image

(+) 0401 Accessing PC shares from the Pi

(+) 0402 Installing samba - (the Pi as a Network Share on your PC)

(+) 0900 Can this approach be scaled up to a PC UPS ?

(+) 1001 Pandora Spotify on the Pi

(+) 1002 Playing movies on the Pi

(+) 1003 Getting VGA from the HDMI socket

(+) 1004 Using the RCA socket

(+) 1005 Using the Pi RS232 serial links

(+) 1006 Using the GPIO pins

(+) 1007 Controlling the Pi Zero ACT LED

(+) 1200 List of standard camera modes

(+) 1300 Auto file names

(+) 6500 How to make the System partition read only ?

(+) 6501 Minimising SDHC corruption on power down

(+) 9000 diode switch

(+) 9001 Auto shut down

(+) 9001 MOSFET switch

(+) C201 High speed photos

(+) Dec 1969 (no desc)

(+) a000 Display setup - (for PhotoFrame)

(+) a001 go photoframe - (how it works)

(+) a002 set photo - (select for display)

(+) a003 go button script - (photoframe pause control)

(+) a005 get photos - (fetch resize)

(+) a00x Other display utilities

(+) c000 CCTV UPS requirements

(+) c001 countering low speed motion detect

(+) c002 Pi Overclocking

(+) c203 Pi ram disk - (tmpfs)

(+) c901 iR illumination

(+) c902 Viewing a video stream

(+) c905 Image anotation

(+) Dec 1969 (no desc)

(+) raspicamdocs.txt (no desc)

(+) s010 Elevation sensing

Next subject :- index

[top]