Go Down

Topic: Send commands to USB serial interface from NodeMCU/ESP8266 (Read 910 times) previous topic - next topic

gfhoihoi72

Hi all,

I recently bought a Neato XV-21/25 robotvacuum, it works great but I want to connect it to my home automation system via WiFi. I thought maybe it would work with a NodeMCU V3 (ESP8266), but I have a few questions.

Is the NodeMCU (or Arduino in general) able to act as an USB host to send commands to the Neato via USB? On Windows, the Neato is just a COM port, with "echo COMMAND > COM5" I can send commands to the Neato and it responds to the commands. I want to to exactly this but on an NodeMCU or any other WiFi enabled microcontroller.

So would this be possible with the NodeMCU or any other device? Thanks in advance!

Juraj

https://github.com/gdsports/esp8266-usb-host-demos
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

gfhoihoi72

https://github.com/gdsports/esp8266-usb-host-demos
I've seen a couple of USB host shields, but none of them seem to support USB serial connection. At least it's not stated anywhere, or I didn't look good enough.

Juraj

looks like I am better in googling than you :-)
https://github.com/felis/USB_Host_Shield_2.0#spp-library
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

gfhoihoi72

looks like I am better in googling than you :-)
https://github.com/felis/USB_Host_Shield_2.0#spp-library
I've looked at that one, but that library is made for the USB Host Shield 2.0 which is pretty big and won't really fit well inside the Neato, there's only limited space. Is there a smaller version of the USB Host working with this library?

Otherwise I think I'll just buy a bit more expensive Raspberry Pi Zero W to do the job and create something myself. But I would love to use neatoscheduler.com which is made for ESP8266 (for botvacs, with a serial connection instead of USB).

Juraj

wouldn't the library work with any MAX3421E based breakout board?

this is the origin of the shield and the library. they have a Mini version
https://www.circuitsathome.com/arduino_usb_host_shield_projects/
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

gfhoihoi72

wouldn't the library work with any MAX3421E based breakout board?

this is the origin of the shield and the library. they have a Mini version
https://www.circuitsathome.com/arduino_usb_host_shield_projects/
I thought the Mini didn't support SPP, but if it uses the same chip it will probably just work fine. Guess I'll just buy one and test is out. It's not that expensive anyway.

gfhoihoi72

wouldn't the library work with any MAX3421E based breakout board?

this is the origin of the shield and the library. they have a Mini version
https://www.circuitsathome.com/arduino_usb_host_shield_projects/
So I bought the USB Host Shield, but what now... I need the Arduino to send a serial command via the USB Host Shield to the usb to serial converter inside the robot vacuum. But how can I send it to the USB Host shield and with what class of the USB Host Shield library?

sampratt

I'm having trouble when sending a serial command to the USB Host shield and with what class of the USB Host Shield library.
192.168.0.1

Go Up