Difference between revisions of "Project:Traffic Lights"

From London Hackspace Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
 +
'''The traffic light no longer exists as it went missing :('''
  
 
'''Warning: You should read and understand this document ''in full'' before opening or hacking on the traffic light'''
 
'''Warning: You should read and understand this document ''in full'' before opening or hacking on the traffic light'''
Line 23: Line 25:
  
 
The traffic light is powered from 90-250v AC (50/60Hz). The controller contains an AC-DC convertor to bring it down to the 3.3V required by the ESP8285. The 4 relays output mains voltage, which is then dropped down to ~12v AC by an individual transformer ''per bulb''.
 
The traffic light is powered from 90-250v AC (50/60Hz). The controller contains an AC-DC convertor to bring it down to the 3.3V required by the ESP8285. The 4 relays output mains voltage, which is then dropped down to ~12v AC by an individual transformer ''per bulb''.
 +
 +
It was suspected that the transformers were generating Electromagnetic Interference (EMI) when switching on and off, so an off the shelf snubber has been put in parallel with each. A commercial filtered IEC socket has also been added. Since these modifications no further EMI problems have been reported.
  
 
====Lamp to GPIO mapping====
 
====Lamp to GPIO mapping====
 
{| class="wikitable"
 
{| class="wikitable"
! style="font-weight:bold; background-color:#ffffff;" | Function
+
! style="font-weight:bold;" | Function
! style="font-weight:bold; background-color:#ffffff;" | GPIO Pin
+
! style="font-weight:bold;" | GPIO Pin
 
|-
 
|-
 
| style="background-color:#ffffff;" | Red Lamp
 
| style="background-color:#ffffff;" | Red Lamp
Line 41: Line 45:
 
=== Bulbs ===
 
=== Bulbs ===
  
The "real" bulbs for these traffic lights are 12V, 50W Halogen Bulbs with a GY6.35 base from General Electric, however they have been replaced with generic 4W LED bulbs to reduce the brightness and power consumption.
+
The "real" bulbs for these traffic lights are 12V, 50W Halogen Bulbs with a GY6.35 base from General Electric, however they have been replaced with generic 4W GY6.35 LED bulbs to reduce the brightness and power consumption.
  
 
There is 2x spare LED bulbs inside the amber section of the traffic light.
 
There is 2x spare LED bulbs inside the amber section of the traffic light.
 +
 +
'''Note:''' It turns out G4's will fit in the bulb holders. These are cheaper than GY6.35s and much easier to get hold of - Poundland stocks 3x 20W Halogen G4s for £1, or you can get LED G4s from £1 each on Ebay. My suggestion would be to use G4s in future.
  
 
=== Programming ===
 
=== Programming ===

Latest revision as of 20:03, 22 September 2023