Need Help with Line Sensor Blocks for mBot 2 in Sumo Program


#1

Hello.
I did a program sumo for MBot and it works ! But with my new MBot2, i’m in trouble cause there’s new bloc for line sensor, and i can’t find a solution. Someone did it with the MBot2 and share with me ? thanks a lot !


#2

Can you clarify “sumo”?


#3

Sumo is a fight between 2 robots. As real Sumotori, robot push each other outside the ring to win.
https://www.youtube.com/watch?v=As54R0OjslI

Thx


#4

For mBot 2, the blocks for the line sensor are in an extension. You can find it and use it by clicking the extension icon at the end of the category panel in the cyberpi device:

image


#5

Hello. I know this extension, but there is no help to describe the block in the app. Fo example, the blocks for the Quad RGB sensor have a lot of parameter, and we are lost…


#6

Ah, what do you want to code with them? I can help you soon, sorry, I am so busy.


#7

I’d like to make a sumo robot that moves towards its opponent and pushes him off the track. The track would be black, withv a white outline delimiting the track.


#8

OK, I’ll make an example code and get it to you when I can. It might be a bit. :frowning:

Best Regards!


#9

thx a lot ! have a nice day


#10

Here is a screenshot:

I made it rather on the spot, haven’t had time to test it yet.

Download here:

https://drive.internxt.com/sh/file/8fe80f18-3927-4e56-9204-81db2af96cf8/537bc96ed9a3e77ad821270c2893280f2fd163a37383055e44def46201584de1

Let me know if it doesn’t work. Best Regards!


#11

Thx a lot. I Will test it this evening !


#12

Great! I hope it works!


#13

Hello
Sorry but the sumo is turning around like a crazy dancer…
:joy:

I wIll continue my quest…


#14

Sorry! Change the blocks shown to white:

image


#15

@warnaultlionel Try this code:


#16

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.