# Advanced traffic light tutorial

**URL:** <https://forum.xod.io/t/advanced-traffic-light-tutorial/450>\
**Category:** Look What I’ve Done\
**Created:** [January 24, 2018, 3:03am UTC](https://forum.xod.io/t/advanced-traffic-light-tutorial/450 "2018-01-24T03:03:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [January 24, 2018, 3:03am UTC](https://forum.xod.io/t/advanced-traffic-light-tutorial/450/1 "2018-01-24T03:03:55Z")

</div>

[https://xod.io/libs/gweimer/traffic-light-advanced/](https://xod.io/libs/gweimer/traffic-light-advanced/)

This builds on the simple traffic light tutorial on the XOD documentation page & assumes users have already been through that tutorial. It steps through the process of how to figure out what to put into patches/nodes and works up to a more advanced state-machine for controlling a traffic light for cross traffic plus turn lane with traffic sensors.

I made a pretty significant re-write just before posting, so let me know if you find errors, comments that don’t match code, additional points that should be brought out, or you think of a better way to present something.

---

_[View the full topic](https://forum.xod.io/t/advanced-traffic-light-tutorial/450)._
