verlab / hero_common

This project contributes to an open source ROS-based framework for swarm robotics. We propose an low cost, high availability swarm system that could be printed and assembled multiple times without special knowledge or hardware skills.
https://verlab.github.io/hero_common/
58 stars 15 forks source link

Could you please tell me how to assemble the servo motor and rotary encoder? #13

Closed Suptree closed 1 year ago

Suptree commented 1 year ago

Thank you for your response the other day. Thanks to your help, I was able to attach all the electronic components to the PCB board by soldering. And I am currently working on the assembly as described in the wiki.

So, two questions have come up. One, do I need parts to connect the rotary encoder and encoder_shaft (3d parts)? I am thinking it is like a stick that goes through each other's holes.

Two, I can't get the servo motor and motor_gear(3d parts) to connect properly.

I am looking at the cad model to assemble it, but I couldn't figure it out.

I am sorry for your time, but I would appreciate it if you could help me.

IMG_3679 IMG_3680 IMG_3681 IMG_3682 IMG_3683 IMG_3684 IMG_3685

rezeck commented 1 year ago

Hi @Suptree,

It's nice to hear about your progress in developing the robot.

I still could find time to update the assembly tutorial, but these days I managed to create a step-by-step guide for this issue. I will update the site soon.

The following steps should help you with these two points. Please, let me know if it works for you.

1) A shaft for the rotary encoder + pinion gear 2) A way to couple the motor gear onto the servo shaft.

Steps: 1) A shaft for the rotary encoder + pinion gear a) Remove the shank: image image

b) Mandrel diameter should be around 1.80mm to fit into the encoder. image image

c) Cut the dented part with pliers, leaving only the smooth part of the mandrel. image

d) Cut the rest in half. We are going to build two encoder shafts. image

e) Remove imperfections from the cut. The base should be as flat as possible. image

f) Use a hammer to insert the shaft into the pinion gear. image

g) Make the shaft at least 9mm. image

h) Remove artifacts in the pinion gear and make it as clean as possible. image

i) Usually, encoders have a metal clip that gives the feeling of wheel steps on the mouse. Use a spatula to knead and flatten this clip. image image

j) Connect the pinion gear to the encoder and check that it rotates as smoothly as possible. image

k) Result after mounting the pinion gear and the encoder. image image

Tip1: We use graphite lubricant mixed with lubricating oil to lubricate the transmission between the printed gears. Do not use too much to avoid the risk of falling into electrical components.

Tip2: After fitting the wheel, check by turning it so that the entire transmission runs as smoothly as possible. The wheel cannot be stuck. In this case, check the gear teeth and sand the imperfections. It may also be necessary to sand the base of the pinion gear so that it does not rub against the wheel. This part is kind of boring, but it's crucial for the robot's control and odometry to work.

2) A way to couple the motor gear onto the servo shaft.

a) After modifying the servo motor for continuous rotation. Use the horn that comes with the servo kit to fit the motor gear. image

b) Cut the horn leaving only the cylindrical connector. image

c) Trim the cylindrical connector evenly until it fits into the motor gear. image

d) Use super glue to prevent the connector from coming out of the motor gear. image

e) Cut around 1.00-1.20mm from the motor shaft so that the motor gear is as close as possible. Make it as flat as possible. Trim the shaft if necessary. image

f) Connect the gear motor to the motor shaft using the screw that comes with the servo kit. image

g) Try connecting the servo to the board and let it work. image

h) The idea is to check/test that the gear motor fits well. It can't be too tight or too loose. It should also rotate as smoothly as possible so that the gear teeth pull the wheel correctly. In this step, you can connect the wheel and see if the movement is fine. image

Best, Rezeck