測試: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.