Home United States USA — software Advanced Raspberry Pi Traffic Lights Simulator

Advanced Raspberry Pi Traffic Lights Simulator

600
0
SHARE

Check out this IoT project that builds on a previous traffic light simulator. The new version has better architecture and more flexible design.
Let’s be friends:
Comment ( 0)
Join the DZone community and get the full member experience.
My previous post about Raspberry Pi traffic lights introduced a simple traffic lights simulator. I developed the solution further and came out with a more advanced version that has a better architecture, more flexible design, and support for traffic lights schedules that are automatically downloaded from a remote server.
I published the new and more advanced version of my traffic lights project where the software side is more advanced and architecturally more generalized. You can find a link to my work on GitHub below.
Source code available! To get the whole source code with explanations and guidance please go to my GitHub repository: WindowsIotTrafficLights .
The solution includes the following:
Feel free to dig around in my code and try it out. Also feel free to make improvements to the code and give me feedback.
You can be evil and screw with your kids’ brains with this sample. Just try to explain what it means to blink the yellow light, but do it through guiding questions so they really have to think. Maybe I’m not very good on discussions like, this but here is my example that you can improve.
You: How do you say to the computer, “I want to blink the yellow light?” Kid: You tell it to do it — just blink the yellow light! (You make the yellow light blink and the red one constantly on) You: Is it really enough? Kid: Hmm… umm… ooo…. no? You: So, what else do I have to do? Kid: You have to turn out the green and red lights! You: Right you are. But now, what’s blinking? Kid: The yellow light blinks! You: It’s actually two steps, just remember what we did with red and green. Kid: Aaah! We turn the yellow light on and off! You: Yes, right! You just earned some candy.
Creating PDF on ASP. NET Core
Free DZone Refcard
Comment ( 0)
Published at DZone with permission
of
Gunnar Peipman
, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.

Continue reading...