Skip to content

3D Printed robot arm powered by ROS 2 and Arduino and controlled via MoveIt! 2 and Amazon Alexa. It is developed and programmed in the online course named "Robotics and ROS 2 - Learn by Doing! Manipulators"

AntoBrandi/Arduino-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

LinkedIn Udemy


Logo

Arduinobot

3D Printed robot arm powered by ROS 2 and Arduino and controlled via MoveIt! 2 and Amazon Alexa.
Explore the docs »

View Demo · Report Bug · Request Feature

Product Name Screen Shot

Table of Contents

About The Project

Product Name Screen Shot 2

This project aim is to build a 3 axis robot arm with simple and cheap hardware that can be easily and remotely controlled. Despite all the other robot arms built with an Aruidno Uno that are controlled by applying joint angles, this can be controlled assigning X, Y, Z coordinates in the workspace because it implements the inverse kinamatic. Furthermore, it implements a speech recognition module that can run on any computer with a microphone that is connected to the same Wi-Fi network of the robot.

This Robot is Build and Developed in the online course called: Robotics and ROS 2 - Learn by Doing! Manipulators and is currently available on the following platforms:

If you want more information on the course or just want to check the course material this link is for you

Built With

This robot is powered by:

  • PC with Ubuntu 22.04 with ROS 2 Humble / Iron
  • Arduino Board
  • SG90 Servo Motors (x4)

And is controlled by:

  • ROS 2 Humble / Iron

Product Name Screen Shot Real

Getting Started

Once it's printed and assembled according and connected, there are few configuration to be made both in Ubuntu and in the Arduino UNO.

Prerequisites

Make sure you install correctly the following required tools before continuing

  • Install Ubuntu 22.04 on PC or in Virtual Machine Download the ISO Ubuntu 22.04 for your PC
  • Install ROS 2 Humble / Iron on your Ubuntu 22.04
  • Install ROS 2 missing libraries. Some libraries that are used in this project are not in the standard ROS 2 package. Install them with:
sudo apt-get update && sudo apt-get install -y \
     ros-humble-joint-state-publisher-gui \
     ros-humble-gazebo-ros \
     ros-humble-xacro \
     ros-humble-ros2-control \
     ros-humble-moveit \
     ros-humble-ros2-controller \
     ros-humble-gazebo-ros2-control 
  • Install VS Code and Arduino IDE on your PC in order to build and load the Arduino code on the device
  • Install Python and C++ addistional libraries
sudo apt-get update && sudo apt-get install -y \
     libserial-dev \
     python3-pip
pip install pyserial

Installation

  1. Clone the repo
git clone https://github.com/AntoBrandi/arduinobot.git
  1. Build the ROS 2 workspace
cd ~/Arduino-Bot/arduinobot_ws
colcon build
  1. Source the ROS Workspace
. install/setup.bash
  1. Connect the Arduino UNO to your PC and open the Arduino IDE. Open the folder containing the code for the Arduino controller.

Usage

To launch the ROS simulated robot

ros2 launch arduinobot_bringup simulated_robot.launch.py

To launch the real robot, connect the Arduino to the PC and upload the code in the folder on the Arduino controller. Then launch the real robot

ros2 launch arduinobot_bringup real_robot.launch.py

To launch the interface with Alexa download ngrok and create an account then setup ngrok with your key

./ngrok authtoken <YOUR-KEY>

Then start the ngrok web server with

./ngrok http 5000

Copy the link that provides ngrok and paste it in the section Endpoint of your Alexa Developer account

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Antonio Brandi - LinkedIn - antonio.brandi@outlook.it

My Projects: https://github.com/AntoBrandi

Acknowledgements