Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

The OSOYOO building bricks is mechanically compatible with leading building bricks. In this lesson, we will use OSOYOO Bricks to build a robot crab which can use its eyes(Ultrasonic Sensor) to detect objects and use pincers(finger servo) to catch object.

  1. A laptop or Desktop PC which runs Windows or Mac computer
  2. OSOYOO Magic I/O Shield for Arduino x1
  3. OSOYOO DC Motor Module
  4. OSOYOO Ultrasonic Sensor Module
  5. OSOYOO Brick Servo
  6. OSOYOO Bricks

Building Blocks:

Wire Connections:

Firstly, please plug Osoyoo Magic I/O shield into UNO board as following:

Secondly, Connect wires as per following picture:
Arm Motor to L1
Finger Servo to D9 port
IN1 to D12
IN2 to D11
ENA to D5

The Ultrasonic Sensor connects to following port:

Finally, use the USB cable to connect your PC to the OSOYOO UNO board

Step 1) Download mBlock PChttps://mblock.makeblock.com/en-us/download/, select the download file as per your computer OS type:

Step 2)Download OSOYOO_UNO.mext device file from https://osoyoo.com/driver/mblock/osoyoo_uno.mext

Step 3) Run the mBlock PC software by double click the lovely Panda icon. you will see mBlock UI as following picture. Please delete the default device CyberPi by click the cross in the red circle.

Step 4: Drag and Drop osoyoo_uno_mext file(downloaded in Step 2) to mBlock software as following:

Now you will see a new device firmware in mBlock, see following picture:

Now mBlock software and OSOYOO_UNO device firmware have been successfully installed in our PC!

Now we will show you how to use blocks to make our Oscillating Pedestal Fan into reality.
Step 1: Click Control, then Drag and drop Forever block to programming area as following:

Step 2: Click Events, add when Arduino Uno starts up block to the top:

中间步骤省略。。。。。。

最终结果如下:

Upload the program to Arduino

舵机调整方法:

机器开机后,爪子先闭紧3秒

如果爪子不是闭紧状态,或者闭紧了卡卡想

关电源

拔掉齿轮,开机

重写在两个爪子闭合下把齿轮安上去

再重启一次电源

正确状态应该是开机3秒爪子自然抓紧,没有卡卡声音(否则就是齿轮过紧)

3秒后,齿轮自然张开(超声波不能检测到任何障碍物,否则又会闭合)

1)you need connect your Arduino board to your PC with a USB cable first. Then click the Connect button in the bottom of the mBlock software, you will see a USB window pop up,
2) select Show all connectable device check box , then a device drop-down menu will show up,
3) select your Arduino port from device drop-down menu
4) click Connect button to connect your PC to Arduino

5)After you PC is connected to Arduino UNO board, please click Upload button in the bottom of your software, then the code will be uploaded to Arduino UNO board:

Now turn on the power switch in the Magic board, the Arduino will start to work. Press the button on D2, your fan begins to rotate and servo start to oscillate. When you release the button, fan and servo will stop moving.