Codes that make codey rocky or mbot drive through a maze


#1

Good day everyone. Please I need codes that make codey rocky and mbot drive through a maze. thank you


#2

@Bun
You need codes for both, are they working together, or what? Also, is this an obstacle maze, a line maze, etc.?


#3

@Best_codes They are not working together, I need different codes for each of the robots. For both obstacle maze and line maze.
Thank you.


#4

@Best_codes Please can you help with this task. Thank you.


#5

@Bun I am busy this week, but I’ll see what I can do. Mention me every day or so if I don’t respond :smiley:


#6

@Best_codes Ok thank you, I will remind you again on Wednesday.


#7

@Bun
It looks like there are already examples for Codey Rocky for obstacle avoidance. Click this in the topbar:

image

Then choose Codey Rocky:

image

There is an example code for obstacle avoidance:
image

When I have time, I will help you with a line following code.


There are also example programs for mBot:
image

For both obstacle avoidance and line following:

If you don’t have the mBlock desktop application, you can access these examples programs online at https://ide.mblock.cc.

Good luck!