Shop OBEX P1 Docs P2 Docs Learn Events
4-Way Traffic Light Simulator Using a State Table, 4 Pins, 12 Charlieplexed LEDs — Parallax Forums

4-Way Traffic Light Simulator Using a State Table, 4 Pins, 12 Charlieplexed LEDs

CJMJCJMJ Posts: 225
edited 2021-02-16 10:12 in Propeller 2

A simple 4-way traffic light simulator using a State table, four (4) pins and 12 charlieplexed LEDs. I've included a wiring schematic and a SPIN2 program. My next phase is to embed this into a small 3D printed traffic light.
What's the proper etiquette for embedding videos? Here's a youtube video of the simulator in action.
https://youtu.be/HQ41THLVbXc

@"Ken Gracey" Would this make a good Quick Byte?
UPDATE: Sorry, caught a typo in the comments for the Charlieplexing table. MSb should be most significant nibble not bit and LSb should be least significant nibble not bit. The execution of the code is unaffected by these typos.

Sign In or Register to comment.