测试:ESP8266通过wifi websocket控制直流电机(android客户端)



只是测试一个新项目…

我正在使用ESP8266(nodemcu板),运行arduino固件来调出http服务器和websockets支持。

在此视频中,通过我的接入点通过wifi进行连接,我的手机也已连接到该接入点。

http服务器提供了一些JavaScript,可将来自virtualjoystick.js的数据打包到websocket中,并以25hz的速度更新pwm(目前)。客户端可以是任何现代Web浏览器。

仍然有一些优化需要完成,但是我很高兴能一起工作。

电机控制器是Ti DRV8833双H桥电机驱动器
来自Pololu。

https://github.com/esp8266/Arduino
https://github.com/jeromeetienne/virtualjoystick.js。

6 comments
  1. I'm new to all this ESP8266. Is it possible to control many stepper motors each one needing to position stepper in left/right position and always back to center. I plan on phone app to control steppers. More then one phone but all phones being able to control each stepper.??? Is Ti DRV8833 a good choice and will a basic ESP8266 transmitter work for this? I like ESP8266 due to compact size. the nodemcu board looks big!

Comments are closed.