
Ellis
USA
Asked
— Edited
I have been looking on the forum for a wiring tutorial for the ezb and create 2. There are a lot of ideas and very complicated ideas that seem to work but no simple tutorial to connect ezb to a create 2.
Please let me know if there is a tutorial or can you provide me with one.
Thanks,
@Ellis A couple things I noticed:
You are connected to UART0, if Richard's Example Project uses UART1 so you'll have to make those changes in the project. (Or you could switch your connection points on the EZ-B side if you want)
You will want TX to be connected to Receive and RX connected to Transmit. This is a common thing to have connected in reverse.
Thanks Jeremie.
I can switch the wires on the Ezb. Help me understand what the difference between UART0 and UART1 as far as I can see there is only one UART. Is it a software or physical difference?
The pins are marked TX, RX, GND and 3.3v. Is the 3.3v powerful enough to power Ezb?
There are actually 3 UARTs
UART0 is the connector that you are interfacing too UART1 is digital pins D5/D6 UART2 is digital pins D18/D19
UART0 is dedicated to only UART communication while UART1 and UART2 are alternate functions of the digital pins mentioned above.
Please see the EZ-Bv4 datasheet for reference.
3.3V is regulated voltage from the EZ-B on-board switching power supply. You won't need to plug anything into it.
This is great information. I will switch the wires to UART1. I will let you know how it goes.
Are the Digital ports on I oTiny also dual purpose digital and UART1 AND 2? I do not see a UART0. I would like to use l o Tiny for this controller.
@Ellis The ioTny does not have a UART port...
However you can use it to control the roomba if you switch all UartWrite commands for SendSerial commands...
I followed your and Franks instructions. I understand better now.
I wired the wires correctly with black ground and white signal to port D5 Ezb and white to pin 3 and black to pin 7 on Roomba plug. I ohmed the wires to make sure they were connected correctly before plugging the cable into the Roomba.
I loaded Riches Roomba sample plugin into the Ezb program, turned on Ezb controller heard the beep, connected to Ezb wireless and tried Riches sample plugin. It did nothing. I started all over again rebooting everything. Still didn't work.
Found out that after failing to work it disconnected wireless each time. I had to completely reboot everything and disconnect Roomba cable to get it to connect to wireless again.
I am not at all knowledgeable about the UART programming in Ezb. I looked at Richards software and could not fully understand what each script was doing. I finally took pictures and decided to see if anyone could help.
All I want to do is control the Roomba Create 2 with a movement panel, with speed control. I just want to be able to drive it around using Movement Panel with the panel, joystick, wireless and over the internet.
I am so frustrated I feel that my only choice is to look at Arduino board and their plugin. I have never bought another microprocessor other than Ezb. It is the greatest software, micro and support forum I have ever seen.
I see several people say it works great on UART but I have read over and over the tutorials and forum info to still no avail. Is it possible to have a Ezb script to provide a simple Movement Panel for Create 2.
I hope all my investment and time has not gone to waste with the Create 2 and Ezb on this project.
Create2.zip
Ellis,
Take a deep breath...
There are so many tutorials and forum posts, after reading your previous posts i got the conclusion you ignored a few helpful resources e.g.:
I understand you want fast results, but, without learning takes longer to move forward.
Sorry to hear that... but you don't know what is an Arduino and how painful will be for a newcomer without patience... First there is no plugin, there is an IDE where you drop code: (C Code), arduino is an open hardware, that means you need to find someone's forum or the arduino forum for help. If you don't ask the correct questions and/or after a few posts, your thread will go into silence mode.
I believe you are on the right place to get your project moving.
Hi @Ellis, I'm not sure if anyone ever mentioned this, but you need to push the "CLEAN" button on the Roomba just once so that the EZB can talk to it. The CLEAN light should come on...
If you still have a problem, please try the project I loaded "EZB Roomba Basic" as its very stripped down and I can help you troubleshoot it better.
Frank