I’d like to build a robot car based on esp32 board that would operate in two modes:
- basic remote control with buttons
- voice control
Ideally, I want to do that through a mobile application (mobile app framework, whether it’s via Bluetooth/WiFi don’t really matter). I’m still new to the topic and all I’ve found are projects connected via already existing solutions like Blynk, Thunkable. Can someone please suggest me the way how can I do that with a custom app? I’m familiar with .NET stack so I was thinking that maybe in Xamarin Forms there’s already existing library to connect to esp32? I’m open to any solution and any suggestion will be appreciated.
Many thanks in advance
You can do this with websockets over the esp wifi. Basically, you build an html page that connects to the esp with a websocket (via javascript), and the esp listens for commands and they can talk back and forth. There are a lot of tutorials out there that can explain better like these:
https://iotdesignpro.com/projects/websocket-server-with-esp32-and-arduino-ide
https://randomnerdtutorials.com/esp32-web-server-websocket-sliders/
You can host the html page either directly in the esp and go to the IP address in a web browser, or, create the html page in a Xamarin app like you said to build a mobile application. I wish I had some code examples to give you but the ways I have done this are in much larger projects and I am not able to write any simple, usable tests at the moment.