User Tools

Site Tools


mbotneo:lesson1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mbotneo:lesson1 [2023/10/28 16:08] – created jstruebelmbotneo:lesson1 [2023/10/29 15:43] (current) – Added images jstruebel
Line 1: Line 1:
 +===== Objective =====
  
 +This first lesson will show you how to assemble the mBot Neo. It will then show you how the default program allows you to control the mBot Neo.
 +===== Parts Required =====
 +
 +The parts below are required to complete this lesson. Note that all parts are included in the [[https://www.makeblock.com/pages/mbot-neo-coding-robot|mBot Neo kit]] that can be purchased on Amazon.
 +
 +  - mBot Neo Main Chassis
 +  - mBot Neo Encoder Motor and wheel x2
 +  - mBot Neo Mini Wheel
 +  - mBot2 Shield
 +  - mBot CyberPi
 +  - mBot Neo Ultrasonic Sensor
 +  - mBot Neo Quad RGB Sensor
 +  - Cables & Hardware
 +
 +===== Hardware Assembly =====
 +
 +<WRAP round important>When handling any of the circuit boards make sure to wear your ESD wrist strap and have it connected to an earth ground point</WRAP>
 +
 +<WRAP round tip>When installing items with multiple screws or nuts, leave them loose until all are installed and then tighten to ensure that you can get them all inserted</WRAP>
 +
 +  - Connect a 6-pin encoder motor cable to the left side encoder motor and install it on the chassis with 2pcs M4x8mm screws from the hardware kit as shown below\\ \\ <WRAP round tip>There are 6pcs M4x8mm screws in the hardware kit</WRAP> <WRAP round tip>Feed the encoder motor cable through the hole in the chassis before screwing the motor to the chassis</WRAP> <WRAP round tip>Use the hex end of the bit in the screwdriver to install the screws</WRAP> <WRAP box>{{ :mbotneo:lesson1:h1.png |Install left motor}}</WRAP>
 +  - Connect a 6-pin encoder motor cable to the right side encoder motor and install it on the chassis with 2pcs M4x8mm screws from the hardware kit as shown below\\ \\ <WRAP round tip>Feed the encoder motor cable through the hole in the chassis before screwing the motor to the chassis</WRAP> <WRAP round tip>Use the hex end of the bit in the screwdriver to install the screws</WRAP> <WRAP box>{{ :mbotneo:lesson1:h2.png |Install right motor}}</WRAP>
 +  - Install the rubber treads on the wheels and install the wheels on the motor shafts with 2pcs M2.5x12mm screws from the hardware kit as shown below\\ \\ <WRAP round tip>There are 4pcs M2.5x12mm screws in the hardware kit</WRAP> <WRAP round tip>Work the rubber treads around the wheels until the teeth fit into the groove of the treads</WRAP> <WRAP round tip>Tighten the screws until you spin the motor</WRAP> <WRAP round tip>Turn the bit in the screwdriver around so that it is the Phillips or cross end to install the screws</WRAP> <WRAP box>{{ :mbotneo:lesson1:h3.png |Install wheels}}</WRAP>
 +  - Install the quad RGB sensor and mini wheel on the chassis with 2pcs M4x14mm screws from the hardware kit as shown below\\ \\ <WRAP round tip>There are 6pcs M4x14mm screws in the hardware kit</WRAP> <WRAP round important>The mini wheel goes between the quad RGB sensor and the chassis.</WRAP> <WRAP round tip>Put one screw through the quad RGB sensor and then through the mini wheel. Then hold those together while screwing the screw into the chassis.</WRAP> <WRAP round tip>Turn the bit in the screwdriver around so that it is the hex end to install the screws</WRAP> <WRAP box>{{ :mbotneo:lesson1:h4.png |Install line sensor and mini wheel}}</WRAP>
 +  - Plug a 10cm 4-pin cable into the quad RGB sensor and route it through the front hole in the chassis as shown below\\ \\ <WRAP round tip>There are 2 pcs 10cm 4-pin cables in the kit</WRAP> <WRAP round tip>Push on the white connector until you feel it click into place</WRAP> <WRAP box>{{ :mbotneo:lesson1:h5.png |Route line sensor wire}}</WRAP>
 +  - Install the ultrasonic distance sensor on the chassis with 2pcs M4x14mm screws from the hardware kit as shown below\\ \\ <WRAP round tip>Use the the middle two holes on the chassis</WRAP> <WRAP round tip>Put one screw through the ultrasonic distance sensor and hold the sensor while screwing the screw into the chassis</WRAP> <WRAP box>{{ :mbotneo:lesson1:h6.png |Install distance sensor}}</WRAP>
 +  - Plug the 4-pin cable from the quad RGB sensor and the other 10cm 4-pin cable into the ultrasonic distance sensor as shown below\\ \\ <WRAP round tip>Push on the white connector until you feel it click into place</WRAP> <WRAP box>{{ :mbotneo:lesson1:h7.png |Route ultrasonic sensor wires}}</WRAP>
 +  - Install the mBot2 shield on the chassis with 4pcs M4x25mm screws from the hardware kit as shown below\\ \\ <WRAP round tip>There are 6pcs M4x25mm screws in the hardware kit</WRAP> <WRAP round tip>Hold the encoder motor cables to the back of the chassis when installing the shield. Route the ultrasonic distance sensor cable around under the front right post of the mBot2 shield when installing the shield</WRAP> <WRAP box>{{ :mbotneo:lesson1:h8.png |Install mBot2 shield}}</WRAP>
 +  - Connect the cables to the mBot2 shield as described below
 +    - Connect the 4-pin cable from the ultrasonic distance sensor to the mBuild port as shown below
 +    - Connect the cable from the left encoder motor to the EM1 port as shown below
 +    - Connect the cable from the right encoder motor to the EM2 port as shown below\\ \\ <WRAP round tip>Use one hand to wiggle the wire from the left motor to see which one it is</WRAP> <WRAP round tip>Push on the white connector until you feel it click into place</WRAP> <WRAP box>{{ :mbotneo:lesson1:h9.png |Connect Cables}}</WRAP> <WRAP box>{{ :mbotneo:lesson1:wire1.png |Cable connections}}</WRAP>
 +  - Install the CyberPi controller on the mBot2 shield as shown below\\ \\ <WRAP box>{{ :mbotneo:lesson1:h10.png |Install CyberPi}}</WRAP>
 +
 +===== Robot Testing =====
 +
 +Follow the steps below to test out the included default robot program
 +
 +  - Place the mBot Neo on the floor and slide the power switch on the mBot2 shield to the ON position
 +  - Select your desired language by moving the joystick up or down to highlight the language and press the 'B' button \\ \\ <WRAP box>{{ :mbotneo:lesson1:t1.png |Select Language}}</WRAP>
 +  - Move the joystick down to highlight the Switch Program option and press the 'B' button to select it \\ \\ <WRAP box>{{ :mbotneo:lesson1:t2.png |Switch Program}}</WRAP>
 +  - Move the joystick down to highlight the mBot2_demo 3 option and press the 'B' button to select it \\ \\ <WRAP box>{{ :mbotneo:lesson1:t3.png |Select Demo 3}}</WRAP>
 +  - Design a set of movements for the mBot Neo by pushing the joystick up, down, left or right. \\ \\ <WRAP box>{{ :mbotneo:lesson1:t4.png |Design Path Program}}</WRAP>
 +  - Press the 'B' button on the CyberPi to run the path that you designed \\ \\ <WRAP round important>make sure you have lots of room so the mBot Neo doesn't crash into anything!</WRAP> <WRAP round tip>Press the 'A' button on the CyberPi to stop the mBot. Press the 'HOME' button on the side of the CyberPi to end the path mode and go back to the menu.</WRAP> <WRAP round tip>Remember that the direction you specify with the joystick is always relative to how the mBot Neo is facing when it reaches that step.</WRAP> <WRAP round help>Does the mBot always move the same amount for each arrow? Try to explain why or why not.</WRAP>
 +  - Move the joystick down to highlight the Switch Program option and press the 'B' button to select it \\ \\ <WRAP box>{{ :mbotneo:lesson1:t2.png |Switch Program}}</WRAP>
 +  - Move the joystick up to highlight the mBot2_demo 2 option and press the 'B' button to select it \\ \\ <WRAP box>{{ :mbotneo:lesson1:t5.png |Select Demo 2}}</WRAP>
 +  - Press the 'B' button on the CyberPi to start the obstacle avoidance mode \\ \\ <WRAP box>{{ :mbotneo:lesson1:t6.png |Obstacle Avoidance Program}}</WRAP> <WRAP round tip>Press the 'A' button on the CyberPi to stop the mBot. Press the 'HOME' button on the side of the CyberPi to end the line following mode and go back to the menu.</WRAP> <WRAP round help>Follow the mBot around for a while, does it run into anything? Try to explain why or why not.</WRAP>
 +  - Move the joystick down to highlight the Switch Program option and press the 'B' button to select it \\ \\ <WRAP box>{{ :mbotneo:lesson1:t2.png |Switch Program}}</WRAP>
 +  - Move the joystick up to highlight the mBot2_demo 1 option and press the 'B' button to select it \\ \\ <WRAP box>{{ :mbotneo:lesson1:t7.png |Select Demo 1}}</WRAP>
 +  - Unfold the line following track and place it flat on the ground
 +  - Place the mBot on the track and press the 'B' button on the CyberPi to start the line following mode \\ \\ <WRAP box>{{ :mbotneo:lesson1:t8.png |Line Following Program}}</WRAP> <WRAP round tip>Press the 'A' button on the CyberPi to stop the mBot. Press the 'HOME' button on the side of the CyberPi to end the line following mode and go back to the menu.</WRAP> <WRAP round help>What happens if the mBot gets too far off of the black line?</WRAP>
 +  - Slide the power switch on the mBot2 shield to the OFF position when you are finished
 +
 +
 +[[:mbotneo:start|Return to Main mBot Neo page]]