Hacker News new | past | comments | ask | show | jobs | submit login

Any suggestions for remotely switching LEDs on and off within a system that can also read the camera.



You could use addressable RGB LEDs, like the WS2812B. You just need to supply power and a single IO line to control them so you don't need any external hardware like MOSFETs.

The ESP32 can read the camera, recognize objects/colors, and control the LEDs without any external systems.


So we want to build a simple game.

Light up one tube out of 10.

Ball needs to pass through tube.

Once the ball has gone through another tube lights up. Goto step 1...

More can be added to the game, but that's the starting basis.

How would I coordinate the various ESP32? I'd need a raspberry pi, no?


Ah ok I see.

Using ESP32s connected via Wifi and MQTT to a host (Pi or something) would be the easiest way I can think of to coordinate that.

You could also go without a host, by having the ESP with the ball randomly choose another and send the command to it, and connect them all together with ESP-NOW which is direct P2P communication.


I've never bought any hardware before but am a programmer, any shopping list you or anyone could provide would be appreciated. Canada.


There are some low cost kits with all necessary parts to start with microcontrollers, ESP32 included.

For example:

https://www.freenove.com/store.html

https://www.ebay.com/itm/304704446185

(no affiliation and never bought from them, just an example of what to look for)

If you never worked before with electronics, however, you'll probably also need some basic equipment to test things and/or add functions (say you want one more LED, or need to add/replace a capacitor, drive more current with an i/o line etc.).

Take also a look at the beginners section at the EeevBlog forums. It contains some good advice on how to set up a basic workbench: https://www.eevblog.com/forum/beginners/




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: