Problem with Mblock5 and Arduino Sensor (Mbot)


#1

Greetings !!!
For a school project I want to connect an Arduino Sensor (turbidity sensor) to Mbot via an RJ25 adapter. When I was using the MBlock3 software I was able to do so with the ReadAnalog Pin command from the Arduino group of blocks. Now that I switched to MBlock5 software I can not find a way to do the same since there is no Arduino command group. Is there a way to do so?
Thank you
K.


#2

You may have to write your own extension

Examples here: https://www.mblock.cc/doc/en/developer-documentation/tutorials/add-arduino.html


#3

thank you for the answer! Maybe I will try to make one although it doesnt seem very easy. The block that I want already exists (read Analog Pin) but for the Arduino device and not for the Mbot…


#4

I got the same problem. I want to use the angular sensor. As it is not supprted in mblock5 I found following post with a good explanation and it worked.

Now i want to create the same function with mblock5 instead of mblock3 but i cant find the read analog pin A (…) command anywhere…

@tech_support
is there any possibility to create that function in mblock5


#5

I wrote an mblock 5 extension myself. Hope it helps


#6

Do you have suggestion how to change this extension from Mbot to ultimatekit. I use a Megapi pro board and the mbot uses a different board.


#7

Here’s where you can create your own block https://ext.mblock.cc/#/exts/device


#8

wrong topic


#9

wrong topic