top of page

Motomo Lab 3

Slides

Objective



Students will learn to map a controller to the robot. They will be able to wirelessly control the motomo. 

Activity


  • Students will learn about the dongle and what it does for our robot. 

  • They will also learn how to map the buttons a controller through coding. 

Assessment


  • Students will learn to analyze problems

  • Students will learn the basics to move a robot wirelesly and its limitations. 

For our next lab we will use our dongle. This allows the C2G mini to connect to a controller wirelessly. In short, the controller also has a microcontroller in it which its only purpose is to send information of the buttons to the dongle. The dongle like a sensor decodes the information and sents it to the microcontroller for it to understand the signal. With the signal we can code to descide what to do with the signal whether go right, left, forwards, or back. There is an added twist to the code. Since the motomo has a servo we will need to specifically move it when certain buttons are pressed to move right or left.

Lab Summary:

Required Materials:

Photos
Item Name
Purpose
Required Quantity
Labeled Bag

Step 1

61kWK-HdauL._AC_UF894,1000_QL80_.jpg

First Locate the servo. The servo is the brown cube on top of the front wheel. This servo is called MG90S. There are all types of servos ours can only turn from 0 to 180 degrees. Other servos can turn all around and some are built to lift heavy materials. 


A servo is a DC motor that has been built to move accurately instead of infinetly turning. This allows us to code the servo to move to very specific directions fast and accurately. In our case, the library built for the servo is built to go from -90 degrees to 90 degrees. This means 0 degrees the wheel will point forward, -90 will point left, and 90 will point right. For any troubleshooting with angles and hardware refer to our troubleshooting page. 

Step 1

Step 2

Natural Light Portrait

Once connected, we can start coding for the buttons or mapping the buttons. This will take some trial and error to see what feels confortable to handle. There is a sample code on the examples to get an overview on how to format it. 

Step 3

Natural Light Portrait

Lastly, try to combine servo movement and DC motor movement. What the robot go left and right with the new hardware! Tips: For one motor, we will only have to the the motor to go forwards or backwards since the servo will be in charge of the turning. 

bottom of page