Mecanum Wheel Robot...
 
Notifications
Clear all

Mecanum Wheel Robot Issues

58 Posts
7 Users
12 Reactions
3,834 Views
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1046
Topic starter  

@jrrobb

This might be a better home for resolving your Mecanum Wheel issue.

I had started building the Mecanum Wheel robot from Bill's video, but have run into a vision issue that is now on the mend.  So hopefully I will be back on the project very soon.  The last post in the Intro thread asked if you were using Bill's video.  If that is what you are using we might be able to bounce things of of each other in the near future.

And welcome to the forum!

SteveG


   
Quote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1046
Topic starter  

@jrrobb

Are you still interested in working through your Mecanum wheel project?  If so please let me know.  My vision is improving everyday and I may be able to get back to my Mecanum wheel project, where I was just getting to wiring up the motors.  Please just use this thread and ignore the intro thread where you first posted.

SteveG


   
ReplyQuote
(@jrrobb)
Member
Joined: 2 years ago
Posts: 10
 

@codecage  Hi, Thanks for your post. I am using the Bill tutorial and codes. Unfortunately I am stuck, I am unable to proceed as I can't get the first 4wd test code to compile. I have had some suggestions for solutions but nothing works.


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2585
 

@jrrobb 

The error that the value 'low' was not available is valid, given the sketch sample that you provided.

We're going to need to see the whole sketch to determine the problem.

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7700
 

@jrrobb 2 things. 1 show us all the code, 2 understanding errors is something of an art. I see I one post a { is highlighted. This is often indicative of a incomplete copy.

I am including a do nothing sketch that should compile if your environment is correctly set up. Select UNO for the board.
IF it fails, copy ALL the output window, NOT just the errors so I can see what is happening.

```cpp
void setup(){
}

void loop() {
  uint8_t pin = 2;
  int value = LOW;

  analogWrite(pin, value);
}

```

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1046
Topic starter  

@jrrobb 

I'm very close to being able to get to my Mecanum wheel projuect so maybe we can work together in the very near future.  I might even suggest a Zoom call if you are up to it.

SteveG


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1046
Topic starter  

@jrrob,

Please refrain from any more posts about your Mecanum wheel issues in the "Introduction" thread!  Please use this thread instead.  And be a little more patient with my as my eye issue has taken a turn for the worse at the moment. But not quite as bae as it was.  So maybe give me a few more days and maybe I can offer some real help.

SteveG


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1046
Topic starter  

@jrrobb, Jim,

Well I was able to play around a little bit today on my Windows 10 laptop and came up with the same error compiling Bill's "4wd-test" sketch!  Then I tried the do nothing sketch that Ron/zander provided, while leaving the selected board as a ESP32 Dev Module, and came up with the same error.  Switching boards to a Arduino UNO the code compiles as expected with no errors.

I suspect we have some library issues to deal with, but my vision problems are limiting the time I can look at my computer screen and concentrate on the problem.  Bear with me and I'm sure will will be successful in our endeavors.

The main work with my Mecanum wheel robot was not on my Laptop, which is right in front of me, but on another machine that I am unable to access at the moment.  As soon as I can see better I'll try to see what may be different between the two Arduino IDEs.

Please be patient.  I may be even more frustrated than you with this situation.

SteveG


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7700
 

@codecage Steve, that is very weird. Can you do a screen shot of the exact esp32 board that throws the error? I am attac thing screen shot of what I am using with NO errors at all on Compiler errors ALL.

Screenshot 2023 05 05 at 12.14.05

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1046
Topic starter  

@zander 

I've got the same board selected!  But I just discovered an oddity I need to look into further before saying more or beginning to chase my tail!! 😥   Wish my vision wasn't so impaired that I could spend longer periods looking at the code.  I want to try something first that will entail more time than I seem to be able to devote to one sitting.

I WILL post an update as soon as I can!

SteveG


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7700
 

@codecage No rush, Steve. Take your time and certainly don't risk your sight. This is a minor problem compared to your health.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7700
 

@codecage I am using IDE 2.1.0 which I think is the latest. I also just tried IDE 1.8.19 using the same 4wd-test.ino and it compiles clean with warnings ALL.

I recommend a fresh install of 2.1.0, especially if the simple sketch I put up is failing, that only relies on IDE libraries or more correctly board libraries which explains the UNO working but not the esp32.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1046
Topic starter  

@zander 

I'm using IDE 2.1.0 as well.  And I just modified Bill's "4wd-test.ino" to use the "lcdcWrite()" method and it compiles cleanly!  Haven't uploaded and tested yet on my setup as that will require some better vision than I'm experiencing at the moment.

Since Bill moved to the "lcdcWrite()" method in his final code, I may just go forward with my new found knowledge with the understanding it may well come back to bite me in the you know what later on.  But at least maybe I can get moving, and help @jrrobb get moving.

Once I have uploaded the new version to my ESP32 and Mecanum wheel setup and tested its operation I'll put the new code in this thread.

SteveG


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7700
 

@codecage That's very weird. It compiles for Bill and me but not for you or @jrrobb. How is that possible? Sorry, but making a change, as you suggest, is probably a coincidence and masking the underlying issue. Have you searched for boards and libraries that need updating? Please take a look at the attached pictures. 

Screenshot 2023 05 05 at 16.20.36
Screenshot 2023 05 05 at 16.20.44

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1046
Topic starter  

@zander, @jrrob,

And it gets even stranger!  For the past few days while using IDE v2.1.0 I was never prompted by a message that there were any updates available.  However today I received notice that there were updates available.  I went ahead and installed the updates.  And now the original "4wd-test.ino" compiles without error!  The modified version that uses the "lcdcWrite()" method instead of the "analogWrite()" method also compiles fine.  As it did before the updates.   Maybe the shadow knows.

Jim, if you are using IDE v2.1.0, try seeing if it wants to upgrade any boards and/or libraries.  If it does, let it upgrade them, then try compiling the original "4wd-test.ino" and let us know what happens.

SteveG


   
ReplyQuote
Page 1 / 4