Notifications
Clear all

Controlling an RC car with an ESP32 and the MAE (Mit App Inventor

13 Posts
3 Users
5 Reactions
861 Views
(@the-legend)
The Electronics Hobbyist
Joined: 5 months ago
Posts: 7
Topic starter  

Hi Everyone!!!

I hope everyone is doing well.

I have began making a project to make an RC car move using an ESP32 and the MAE (Mit App Inventor) to control it via Bluetooth.I checked on youtube for any tutorials on how to do this.They were very little tutorials on youtube so I had to make use on what I found.One of the tutorials was how to make 3 LED lights turn on and off using the MAE and the ESP32.

I watched his video and then modified the Arduino Code and the MAE code.Right now I am at the end of my project but I am having a slight minor error. When using the MAE application with the MAE software, after setting up the MAE application, in the youtube tutorial the "DISCONNECT" button immediately after starting the application is disabled.However on my app, the "DISCONNECT" button immediately after starting the application  is enabled.(You have to click it once for it to turn disabled) I might have left out some very important block code in the MAE when modifying the code to my need.

Please Note: I have deliberately changed the Button Block code and the name for each component in the MAE code.

I have uploaded the necessary files below.(the youtube tutorial video, the youtube tutorial arduino and MAE code and my arduino and MAE code)You just need to download them.(except the video)

video:   

   my Arduino file:

 tutorials Arduino file:

 my MAE code:

https://drive.google.com/file/d/1UIWPX6IHa0y5M2KrYH0x4k-AQ36FbNCj/view?usp=drive_link

tutorials MAE code:

https://drive.google.com/file/d/1QPrvxlCYOycs5b4Mh1rEajh1RKxsdoMQ/view?usp=drive_link

**You will need to set up an account to be able to use the MAE.To do this, go to https://appinventor.mit.edu/   **

Any advice will be appreciated !!!

Thank You !!!

 

 


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

@the-legend You said

the "DISCONNECT" button immediately after starting the application is disabled.However on my app, the "DISCONNECT" button immediately after starting the application  is enabled

It's probably a difference in either an external pull up/down or the pinMode statement. 

 

 

 

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
(@the-legend)
The Electronics Hobbyist
Joined: 5 months ago
Posts: 7
Topic starter  

@zander 

hi !!!

hope you are doing great!!

I don't think it is the Arduino code that is the problem.I think but the MAE code is.(I may be wrong)

Could you please take a look at the MAE code?

Thanks So Much!!!


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

@the-legend No. Post the code here, I am not going to click a link or sign up for something.

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: 7782
 

@the-legend I downloaded the two ino files. They compile fine, and I see no connection to an MAE 'thing'.  This code was written by someone else and since it compiles then if it does not do what you expect, the design is wrong and that is impossible for me to comment on since I am missing 100% of the needed information.

You need to explain what should happen, and what is happening as if you were talking to a 10 year old.

If you can eliminate the MAE thing from the problem description that would help as this is NOT an MAE forum. Since it appears to be associate with MIT I would assume it is NOT the problem, and if it is an existing 'thing' that also suggests others are using it with no difficulty.

The bottom line is you seem to want help with things you did not create and others may be using with no difficulty. I think you need to re-frame your question possibly with simpler code and setup.

I watched a bit of the video. Now I think I understand what the MAE thing is, it appears to be similar to the Arduino cloud. Since we only support Arduino cloud here and not MAE, I think you should get your support from either the video author, or the MAE community.

Good luck.

-30-

 

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
HeliSteve
(@helisteve)
Member
Joined: 12 months ago
Posts: 23
 

@Muhammad, I tried doing the same thing you are trying, but I ran into issues between classic bluetooth and BLE. This may not help you, but I switched from bluetooth and went to WiFi control instead. There are a few YouTube vids with others doing this. Here's a couple,:

https://github.com/embeddedlab786/Wifi_Robot/tree/main

I used the MIT App Inventor and with lots of research was able to get it to work. I used an app I downloaded from Google Play store like the guy in the vids uses. 

I'm in the middle of something right now, but I wanted to reach out with the above links. I will also try to look at your code soon to see if I can help, but right now the above is what I have.

Gone Flying, Sailing, or Both..


   
Ron reacted
ReplyQuote
(@the-legend)
The Electronics Hobbyist
Joined: 5 months ago
Posts: 7
Topic starter  

@helisteve 

Hi,Thanks for your feedback.I much appreciate it!

Thanks a ton!!! 


   
ReplyQuote
(@the-legend)
The Electronics Hobbyist
Joined: 5 months ago
Posts: 7
Topic starter  

Hi,

Hope everyone doing well !!!

Thanks to everyone who tried to help me with my project.

After looking at some of the posts I modified the code and finally completed the project. 😊 

I look forward to making more fun bluetooth projects in the future !!!

Thank a ton!!!


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

@helisteve I would never use any kind of Bluetooth if I could avoid it, just too unreliable. ESP-NOW is a MUCH better solution.

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.


   
HeliSteve reacted
ReplyQuote
HeliSteve
(@helisteve)
Member
Joined: 12 months ago
Posts: 23
 

@the-legend , did you stick with Bluetooth, or switch to WiFi?  Whatever you did I am glad you got your project working. That's always a great feeling.

Gone Flying, Sailing, or Both..


   
ReplyQuote
(@the-legend)
The Electronics Hobbyist
Joined: 5 months ago
Posts: 7
Topic starter  

@zander 

I know. I am just getting started. This is one of the first projects I made so I am just trying to get my project started by doing the easiest thing😜 . I know it is not very effective. I am trying to expand my knowledge with coding and maybe later,  I can integrate my project to work with ESP-NOW.


   
ReplyQuote
(@the-legend)
The Electronics Hobbyist
Joined: 5 months ago
Posts: 7
Topic starter  

@helisteve

Thanks !!!

I stuck with bluetooth. It is a great feeling that I completed a project !!!

Maybe later, I can expand it to work with WIFI or ESP-NOW.

 


   
DaveE reacted
ReplyQuote
HeliSteve
(@helisteve)
Member
Joined: 12 months ago
Posts: 23
 

@the-legend , so glad to hear you got it working. It is a great feeling when you struggle and then figure it out. Give yourself a pat on the back, and enjoy your project.

Gone Flying, Sailing, or Both..


   
DaveE reacted
ReplyQuote