Project:Traffic Lights: Difference between revisions

From London Hackspace Wiki

Line 23: Line 23:


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''.
====Lamp to GPIO mapping====
{| class="wikitable"
! style="font-weight:bold; background-color:#ffffff;" | Function
! style="font-weight:bold; background-color:#ffffff;" | GPIO Pin
|-
| style="background-color:#ffffff;" | Red Lamp
| style="background-color:#ffffff;" | IO12
|-
| style="background-color:#ffffff;" | Amber Lamp
| style="background-color:#ffffff;" | IO5
|-
| style="background-color:#ffffff;" | Green Lamp
| style="background-color:#ffffff;" | IO4
|}


=== Bulbs ===
=== Bulbs ===
242

edits