-
Notifications
You must be signed in to change notification settings - Fork 10
Exercise 4
whyaxee edited this page Dec 14, 2022
·
15 revisions
- An assembled Smorphi mini / Smorphi 2 robot
- A computer
- A USB to USB-c cable
- Internet connection
- Download and set up SmorphiBlockly
- Learn how to use SmorphiBlockly
Steps | Description |
---|---|
1 | [Download SmorphiBlockly] Go to https://github.com/roarLab/Smorphi-Blockly to download the latest version of our files via the download zip button. It can be found in the drop down after clicking on the green Code button. Make sure you downloading from the Main Branch. SmorphiBlocky is a visual graphical programming editor for Smorphi robots. It Provide static type language blocks and code generators for programming on Smorphi robots. By dropping code blocks in the programme, C++ code will be generated which you can open in your Arduino IDE and upload to the Smorphi Master board. Features of SmorphiBlockly consist: |
2 | [Setup SmorphiBlocky] Unzip the downloaded zip file. In the Smorphi-Blockly-main folder, click on arduexec->server->start After clicking on start, the programme will open. This will be where you will work with SmorphiBlocky. |
3 | [Blockly code blocks] Blockly code On the interface, you can see the first 4 tabs mentioning Smorphi. This 4 tabs contain code blocks that you can use regarding Smorphi. The rest are common code blocks that you can use generally. |
4 | [How to use SmorphiBlockly] If you take a closer look, you will see that these code blocks look like puzzles pieces. You can think of building your code like matching puzzles. INSERT IMAGE Some code blocks have missing piece in them, so you will have to fill in the missing code block. |
5 | [Setup your Arduino IDE] In order to run the code from SmorphiBlockly, we will need you to install the required Smorphi libraries into your Arduino IDE. You can refer to Exercise 2 for more information. |
6 | [Test your setup] Place the following code blocks into the programme. Once you done click on the yellow button to open the code in Arduino IDE Upload your code from the Arduino IDE to the Smorphi Masterboard. Once upload is completed, press on the ENABLE button on the masterboard. Your Smorphi should move forward for 3 seconds, stop for 3 seconds and then repeat. NOTE: Usually, when you upload the code to the master board, the process should complete automatically. However, sometimes the upload will be stuck at ‘connecting……’ ![]() There are 2 solutions for this.
|
Wefaa Robotics Pte Ltd