thank you
please, keep me honest here; i didn’t see any command to move the robot, right?
There are several commands that can be used to drive the robot. The main ones are:
1. Code [137]: Drive ==> Must send +/- Speed in mm/s and +/- Radius in mm
2. Code [145]: Drive Direct ==> Must send Left/Right Speed in mm/s (+ for Forward and - for Backward)
3. Code [146]: Drive PWM ==> Must send +/- PWM data for Left and Right wheels
I got some time some value (the PR for temperature) at the start. And since their a can’t get anything new even restoring previous version or anything else. Also tries a level shifter didn’t change anything.
I try to find a PNP for the moment.
Also tension drop from 5V to 3.1V when connecting Roomba tx to anything (resistance divider or level shifter) so I do not know if the Roomba tx isn’t dead?
I measured the roomba connector and for the TX / RX pin I see a 5v and a 3.3V.
that’s correct? if yes that means that I can connect directly the 3.3 pin to the ESP without passing through the bucket step down, correct?
I would also like to upgrade my old Roomba with a d1 mini (no hardware series available). Step-down for the supply voltage and TX level shifting is all understandable to me. I’ve read a lot but I’m a little confused. Which BIN/code should I use now? And which d1 mini pins for tx/rx should i connect?
HI can you please share your library if you have all activities showing correctly and some help steps,. Thanks in advance. I managed to get the data from the in ESPhome i just dont have activity and no oi mode. I used GitHub - davidecavestro/ESPHomeRoombaComponent at d4db1a22137eb4caaa1425fb828d9a64d1a9fe6b. Also i added the buttons for the commands. If anyone want’s i can do a noob tutorial step by step
I’not an electronic expert, but reading the docs I would say that if you are using a 3.3V board, like and esp8266 you can send a 3.3V signal to the roomba (RX line) but the roomba will answer back with a 5V signal that may fry the esp8266. You still need a buck converter, at least on TX from roomba (but converting everything to/from 3.3V/5V seems a good approach to me).
I just wanted to post here that I did a quick and dirty fork of davidecavestro’s repository with a focus on being able to start/stop/dock the vacuum. It’s kind of a hack but it works. There’s a working example config included, some updated circuit diagrams, and a PCB file that may or may not be useful.
I’ve been using it for a little over a week with no problems so I thought I’d post it here. This thread has been incredibly helpful in getting my roomba connected to HA
I changed my code to use the ESPHome UART bus instead of initializing the serial communication in the component.
This means that you are able to choose the pins yourself and ESPHome will figure out if it needs to use a hardware or software serial (depending on the chosen pins).
I had to copy some of the methods from the Roomba library, but the rest of the library is no longer needed, so it does not have to be provided or be compiled anymore.