- #L298n motor driver with vex claw how to#
- #L298n motor driver with vex claw update#
- #L298n motor driver with vex claw driver#
Check out the next section for more details.įor a better performance and more accuracy, it is strongly recommended that you tune the BluPants robot for your environment. Use four female-to-female jumper leads to connect the Raspberry Pi GPIO pins to the pins on the motor controller board.Īs you noticed on the video, our MVP robot may require some tuning.
#L298n motor driver with vex claw update#
If you use different GPIO pins, you will also need to update your blupants.json file to reflect your choice and restart the blupants service. Which GPIO pins on your Pi that you use is up to you in this project, GPIO 7, 8, 9, and 10 have been used. On the board used here there are pins labeled In1, In2, In3, and In4. Make sure you look at the documentation for your board to see whether this is the case. Other boards may connect differently, and some boards can simply be placed onto the Raspberry Pi GPIO pins as a HAT. The L298N board used in this project needs to be wired to the Raspberry Pi.
#L298n motor driver with vex claw driver#
Try changing the setup until you get your motors polarity right.Ĭonnecting the L298N motor driver controller to your Raspberry Pi In this case, you should keep the OUT1 and OUT2 (left) as is, but swap OUT3 and OUT4 (right). In this example the robot would spin clockwise rather than moving forward. Let's say you notice your left motor is running on the correct direction, but the right motor is driving backwards. After you finish the whole assembling try coding your robot to move forward. The red wire from right motor was connected to OUT3 and right motor black wire to OUT4. In our case, we connected black wire from left motor to OUT 1 and red wire from left motor to OUT2. Regardless the documentation you use, just make sure you flash the correct BluPants image file to your SD card.
#L298n motor driver with vex claw how to#
We suggest the official Raspberry Pi documentation for that, or use this video for instructions on how to flash an SD card using Balena Etcher. But, before we jump into that, let's make sure we have a proper SD card working with the BluPants image.ĭownload the BluPants image file available on this link and flash it to a micro SD card (8G minimum). If you haven't built the "robot buggy" yet, no problem, we will bring you a step by step tutorial on how to build one. So, if you already have your robot bug working, all you need to to is to flash the BluPants image to an SD card, and insert it to your existing robot. The robot we present here is analogous to the "robot buggy" from the official Raspberry Pi Project page. Let's see how you can start creating your own Raspberry Pi robot and learn to code with BluPants. But regardless whether or not you add more things to it, keep in mind that the basic/MVP robot is already a very good start for learning how to code.
It is up to you how many extra gadgets you want to add to your bot.
Add a camera to the robot (find the camera tutorial here ).
Add a distance sensor (find the distance sensor tutorial here ).Add a claw/gripper to the base robot (find the claw tutorial here ).In order to get a robot similar to the video, you will need to complete all the 4 tutorials in the BluPants robots series: For more information about BluPants visit or watch our Intro to BluPants video. Other than the basic drag and drop coding blocks shown, it also natively supports Python for more advanced students. The video shows lesson 5 from BluPants coding class. * * Created by ArduinoGetStarted.Drag and drop BluPants coding with Raspberry Pi