How to connect a joint in a robotic arm

So I have my base and my joint for a robotic arm i'm just unsure how to do a smooth connection between these two. Please help. should I use a bearing? if so how should I connect it? I'm using an arduino in this project so came here for help

Provide an image.

In the "robot arm" the joints are: [edit]rotate base, shoulder, elbow, bend wrist, rotate wrist, grip

A universal joint or "knuckle" might be what you want.

Thats kind of hard to apply to this. Would this image help?

Please show us the source for the directions you are using to build this robotic arm. Are you also going to apply power to the robotic arm so it will move? What power and how will you connect the power source to the arm?

I'm building this robotic arm by my own design so there arent any directions, as for the power I am having a difficult time deciding if I want to use one power source in which I would divide the power among the motors of if I would use a different power source for each motor.

Do you mean you are building it with no real plans? Can you tell us your past experience in designing and building physical devices? Wood working, metal working, science and math classes, etc. You are a long ways from even thinking about an Arduino and programming.

Complete with STL files.

https://docs.arduino.cc/retired/getting-started-guides/Braccio/

Yep, and ill prove you wrong

I hope so! I love being proved wrong.

Wait actually, have you ever built anything like this?

At this point in the thread, we do not know what anything actually is because you have no drawing of what it actually is. Just a lot of words.

The picture above is the design I have so far come up with, I'm just stuck on how to connect the bicep with the shoulder. The best way I can think is to weld, but I would rather not its the picture in the third response to this thread.

Why does your robotic need to appear humanoid? What not make it so it does the movements needed? A shoulder joint would be a ball joint with many degrees of freedom. Really hard to make and power and control.
Make you design based on what the final position of an arm is desired and the movement of that end and then work backwards to enable the tip end to go where desired. Don't start from the part you are stuck on. You many not need all that rotation capability.

Hypothetically if I just had the arm moving in one direction how would I do that though. I was going to have the arm only move up and down

Up and down are two directions! But only one plane. So, have you given any thought to the weight of that arm and how long it will be and how much weight the joint will carry? What material for the arm?

Maybe... sixServos - Wokwi ESP32, STM32, Arduino Simulator

Two main ingredients in stone soup.

..and just one more ingredient.