Giter Site home page Giter Site logo

alikazanci / arm-robotic-hand Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

It is the robot arm control project of our Computer Vision works with Opencv. In this project, a Firebase-based robot project was realized by using Opencv and Mediapipe artificial intelligence libraries. Below I tried to explain the details of the project step by step.

Python 100.00%
arm computerv python firebase mediapipe mediapipe-hands opencv robotics

arm-robotic-hand's Introduction


Arm control with OpenCv,Mediapipe and Firebase

It is the robot arm control project of our Computer Vision works with Opencv. In this project, a Firebase-based robot project was realized by using Opencv and Mediapipe artificial intelligence libraries. Below I tried to explain the details of the project step by step.

Arm control with OpenCv,Mediapipe and Firebase

First, we will download the libraries we will use.

import mediapipe as mp
import cv2
import numpy as np
import pyrebase
import time

The code block we linked to Firebase

# içerikler - contants
ml = 150
max_x, max_y = 300 + ml, 50
curr_tool = "Arac Sec"
time_init = True
rad = 40
var_inits = False
thick = 2
prevx, prevy = 0, 0

firebaseConfig = {
  "apiKey": "AIzaSyB_S2tR_2YsRrM-KQUHsS_Uj_q1kmGBetM",
  "authDomain": "armrobot-98491.firebaseapp.com",
  "databaseURL": "https://armrobot-98491-default-rtdb.firebaseio.com/",
  "projectId": "armrobot-98491",
  "storageBucket": "armrobot-98491.appspot.com",
  "messagingSenderId": "755214414021",
  "appId": "1:755214414021:web:8807c50e5d8b4c22bec0ac",
  "measurementId": "G-YMMDCZZQ68"
};

firebase = pyrebase.initialize_app(firebaseConfig)

db = firebase.database()
size = 4

After registering Firebase from Google, create your project file and paste the drawn part in our code.

image

NOTE

The code block I have shown below will not be in firebase. Don't forget to add it. Don't forget to add it to the code block by typing its own link in your Firebase account where I have shown in the picture.

"databaseURL": "https://armrobot-98491-default-rtdb.firebaseio.com/",

image

NOTE2

Also, do not forget to name users2 and string as a variable for the firebase base you will create.

image

NOTE3

Do not forget to apply the changes you will make on the Firebase base in the raspberrypi_code part.

Raspberrypi_code.py file should be run inside Raspberry Pi development board. The other main.py should be run on computer.

Raspberry pi connection pins of robotic arm

GPIO.setup(11, GPIO.OUT)
GPIO.setup(13, GPIO.OUT)
GPIO.setup(40, GPIO.OUT)
GPIO.setup(15, GPIO.OUT)

image

Wiring of the servo motors of the robotic arm on the breadboard

image

arm-robotic-hand's People

Contributors

alikazanci avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.