element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products & Partners
    Products & Partners
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino Projects
  • Products & Partners
  • Arduino
  • Arduino Projects
  • More
  • Cancel
Arduino Projects
Blog MeArm-RL-PyBullet
  • Blog
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • More
  • Cancel
  • New
Join Arduino Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: lucaeffe03
  • Date Created: 29 Oct 2026 12:36 PM Date Created
  • Views 73 views
  • Likes 3 likes
  • Comments 5 comments
Related
Recommended

MeArm-RL-PyBullet

lucaeffe03
lucaeffe03
29 Oct 2026

A 4DOF Keyestudio KS0198X robotic arm trained in simulation using reinforcement learning to reach a target, and transferred via serial to the physical arm. Task: reach — moving the tip of the arm (tool) towards a red dot generated within the arm's real workspace, using PPO (Proximal Policy Optimization, Stable-Baselines3) on a PyBullet model built from the real URDF/meshes of the mechanism.

image

Devices & Components

1image

Arduino Uno Rev3

1 image

4DOF Robot Arm Kit

Mearm_real_env.py

Gymnasium environment for the MeArm/Keyestudio KS0198X robotic arm, simulated in PyBullet from the real URDF (URDF and mashes available on GitHub).

Neural network (view code on GitHub):

An input layer with 17 neurons (one for each observation value: 4 (positions) + 4 (velocities) + 3 (ee_pos) + 3 (target_pos) + 3 (delta_pos))

An output layer with 4 neurons (one for each motor).

Serial_bridge.py

Sim-to-real bridge: reads a trained policy and sends the corresponding servo angles to the physical Keyestudio arm via serial.

Train.py

PPO training (with linear reward) of the 'reach' task on the real MeArm model.Run on an M1 for 1M steps across 4 parallel environments (you can use even more steps if necessary for your specific case). PPO takes the data from all 4, averages it, and updates the weights much more stably.To monitor training progress with TensorBoard, open the terminal:tensorboard --logdir ./tb_logs/"

Evaluate.py

Loads the trained model and shows it in action within the PyBullet GUI.

CODE

MeArm-RL-PyBullet

  • Sign in to reply

Top Comments

  • DAB
    DAB 5 days ago +1
    Looks like a good learning tool.
  • cstanton
    cstanton 4 days ago +1
    Hey lucaeffe03 , interesting set of projects with the 'mearm' here, is this a project you did out of interest for it, or were sponsored, or did you do it for a school project? I'd be interested in your…
  • cstanton
    cstanton 4 days ago in reply to lucaeffe03 +1
    We have a Robotics design challenge coming up (keep your eyes on the homepage or design challenge group ;) ) you might want to consider applying for!
  • mearm.ben
    mearm.ben 3 days ago

    Great project, thanks for including the original product name with it. Keystudio have unapologetically exploited our open hardware, entirely ignoring the licence and my communications over several years. What is great is that you've put together some amazing tutorials and shared them in the original spirit of the MeArm project.  

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • cstanton
    cstanton 4 days ago in reply to lucaeffe03

    We have a Robotics design challenge coming up (keep your eyes on the homepage or design challenge group ;) ) you might want to consider applying for!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lucaeffe03
    lucaeffe03 4 days ago in reply to cstanton

    Hi cstanton :) ,over the last few months I’ve been working on these projects to learn more about robotics and computer vision since we don’t do many practical projects at university, I decided to experiment a bit on my own. I recently discovered this community through Instagram and thought of sharing them. I hope they might be helpful to other users as well :)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • cstanton
    cstanton 4 days ago

    Hey  lucaeffe03 , interesting set of projects with the 'mearm' here, is this a project you did out of interest for it, or were sponsored, or did you do it for a school project? I'd be interested in your commentary and experiences alongside what you're posting so it's not only a posting of code?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB 5 days ago

    Looks like a good learning tool.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube