The Joy of Joysticks - Doing Things with Analog Input

The Joy of Joysticks - Doing Things with Analog Input

I'm working on a project making a car-like robot (I'll post on this sometime soon), and I wanted to build some kind of remote to easily control the bot. This made me want to learn more about joysticks and the analog input that they produce.

So, to make sure that I understood everything that was going on, I wired up five LEDs. Whenever you move the switch left, right, up, down or press, a different LED lights up. You can update the C code found in the tutorial and replace the "digitalWrite(LEDColor, High);" sections with whatever other code you'd rather have your setup do (hit an API, call a function, etc).

I hope that this inspires you to build a remote or wire something up. You can find the full tutorial here. Here's a video of the setup in action:


要查看或添加评论,请登录

Michael Bryan Ross的更多文章

社区洞察

其他会员也浏览了