 Hello everyone! In this video we are going to learn all about dual shaft BO motor a.k.a. battery operated DC motor, how it works, how to interface it with prototyping modes like evive and Arduino, and how to program it in pictoblocks. Finally, we'll have a look at the wonders we can create using it. Let's begin! The dual shaft BO motor has a gearbox along with a DC motor in its casing to control its speed. Similar to the other motors, the DC motor also takes in energy from one end and converts into rotational energy from the other end by rotating the shaft. The shaft can thus be connected to some other machine and make it rotate. Now that we know how the DC motor works, let's have a look at how to interface it with evive and seat in action. You can directly connect and control two DC motors at the same time with evive as it has two dedicated motor channels M1 and M2. Let's connect the motor to the M1 motor channel. Attach the wheel on one of its shafts. Now, switch evive on. Then, from its menu, select controls. Next, select motors. Finally, navigate through to motor channel 1. You'll observe two terms on evive screen. PWM determines the speed of the motor which can be controlled using the potentiometer knob. DIR stands for direction. DIR1 represents rotation in one direction and DIR2 represents the other direction. We can change the direction using evive's slide switch. Now, let's program our DC motor with Pictoblocks. It is a graphical programming software based on scratch blocks. You can download it from the link given in the description box below. Before doing anything else, connect evive to your computer using a USB cable. Next, open Pictoblocks. Then, click on the board button and select evive from the dropdown. Now, from the dialog box set appears, choose the appropriate seal port. Before writing the script, make sure that the firmware is uploaded. If not, upload it using the upload firmware button. Here's the logic of our script. On pressing the app arrow key of the keyboard, the motor should rotate in one direction with 100% speed. Add an FL's arm to check whether the app arrow keys pressed or not. On arrow keys pressed, the motor should go in the other direction with 100% speed. However, if none of the keys is pressed, the motor should be at rest. Use the free motor block to stop the motor from running. To run the script continuously, we'll use the forever block. Place a win flag click hat block above the forever block. It will ensure that the script runs when the green flag is clicked. Now, check whether the motor is running perfectly fine or not by running the script. Since everything is perfectly fine, let's write a script to run the DC motor without having evive connected to the computer. For that, we'll have to work in the upload mode. We're going to make a script to run the motor according to the values entered using the potentiometer 1. We're going to use an FL's block to check whether the slide switch 1 is in the upstate or not. If it is up, then the motor should rotate in the clockwise direction with the speed obtained from the potentiometer 1's reading. Add another FL's below the L's arm of the first FL's block to check whether the slide switch 1 is in the downstate or not. If yes, then the motor should rotate in the counterclockwise direction with the speed obtained from the potentiometer reading. However, if the slide switch is in the center, the motor should stop rotating. Let's drag and drop a free motor block below the L's arm. Use a forever block to run the code continuously. Place the when evive starts up head block to execute the program. Finally, upload the code using the upload button. Now that you know how to work with the dual shaft be your motor, there are a number of projects you can make using it like a DIY swing fan, a four wheel drive robot, a turntable and much more. That's it for this video. If you liked it, give it a thumbs up and share it with your friends. For more such educational content, subscribe to STEMpedia and follow us on Facebook, Instagram and Twitter. Bye bye.