DEV Community

Stefan Stöhr for Studio M - Song

Posted on • Edited on

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.

Top comments (0)