Create an Object Detection-Activated Robotic Arm with Arduino and Bottango!

Опубликовано: 24 Октябрь 2024
на канале: BMonster Laboratory
1,007
15

In this video, we dive into an exciting robotics project where we transform a previous Bottango project into an object detection-activated 6DOF robotic arm using Arduino. Watch as we enhance the robotic arm’s functionality to identify objects, pick them up, and set them aside with precision. We’ll guide you through the process of modifying the Bottango software project to integrate object detection capability and demonstrate how to program the robotic arm to perform these tasks seamlessly. The HW-201 sensor is often used as an obstacle avoidance sensor in motorized robots. In this video I use this IR sensor for object detection. They are small, cheap, and easy to use!

Join us for a detailed walkthrough of the code modifications made to the exported Bottango code, showcasing how it enables the robotic arm to handle objects effectively. This tutorial covers everything from setting up the object detection system to controlling the 6DOF robotic arm, providing a comprehensive look at the integration of Arduino and Bottango in robotics projects.
🔔🔔 SUBSCRIBE 🔔🔔 don't forget to subscribe and click the bell!
   / @bmonsterlaboratory  

Facebook:   / bmonster-laboratory-101410418059806  
Search "6dofarm" on Facebook to find this post.
Twitter:   / b_monsterlab  

-**here is the previous project I reference in this video-   • Create Amazing Animations: Build a 6D...  
CHECK OUT THIS BOTTANGO VIDEO AS WELL -    • Enhance Your Projects with Bottango: ...  

check out our Arduino play list! We try to make it easy 👍
   • Easy Arduino projects anyone can do  

Chapter:
0:00 intro
0:15 items used
0:32 the HW-201 object detection sensor
0:52 open Bottango project
1:46 upload Bottango driver
3:06 adjust previous animation in real-time
4:43 edit animation duration
5:44 export Bottango animation code
6:11 create and change animation keyframes directly from 3D model
8:17 open exported code in Arduino IDE
9:10 add code for object-detection
10:19 object-detection arm demo

Learn about the key features of this project, including object detection integration, robotic arm control using Bottango, and Arduino programming. Whether you’re a beginner or an avid robotics enthusiast, this video offers valuable insights into creating sophisticated robotic systems in a very simple way.

Don't forget to like, comment, and subscribe for more Arduino, robotics tutorials, and projects! Hit the bell icon to stay updated on our latest content. For questions or project-related discussions, feel free to leave a comment or connect with us on Facebook.

Once youu export your own Bottango code you can modify your BottangoArduinoDriver.ino tab. My code modification is posted below for reference.

// !!! DRIVER VERSION: 0.6.4a !!!
// !!! Api Version: 7 !!!

#include "src/BottangoCore.h"
#include "src/BasicCommands.h"

const int sensorPin = 11; //where the IR sensor is connected
bool animationRunning = false; //track if the animation is running
bool lastSensorState = HIGH; //track the previous sensor state

void setup()
{
pinMode(sensorPin, INPUT); //sensor pin set as an input
BottangoCore::bottangoSetup(); // initialize Bottango
}

void loop()
{
// read the current state of the sensor
int currentSensorState = digitalRead(sensorPin);

//check if sensor state has changed from HIGH to LOW (object detected)
if (currentSensorState == LOW && lastSensorState == HIGH)
{
// begin animation if an object is detected
animationRunning = true;
BottangoCore::commandStreamProvider.startCommandStream(0, false); //default animation without looping
delay(200); // delay to prevent bouncing
}

// update the last sensor state to the current state
lastSensorState = currentSensorState;

// run animation loop if the animation is active
if (animationRunning)
{
BottangoCore::bottangoLoop();
}
}