DEV Community

Stefan Stöhr for Studio M - Song

Posted on • Edited on

3 2

Building a “Follow Light” with Arduino: Part 2

It's been a while since we started our Follow Light Arduino Project (and it's still not installed in our corridor 😳), but I recently stumbled over this awesome online simulator called Wokwi!

So I decided to tidy up our codebase a bit and put it into action there.

How the simulator looks like

Wokwi doesn't support the TFmini Plus LiDAR sensor, but it does have the HC-SR04 Ultrasonic distance sensor.

And there is a (hidden) Wokwi Neo Pixel Canvas component, which acts like a LED lightstrip. You can only add it by editing the diagram.json.

You can find our Follow Light simulation here: https://wokwi.com/projects/334003558896632403

Just run the simulator and click the HC-SR04 component to change the detected distance.

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more