Connecting Servo motor to raspberry pi 4b

February 2, 2024, 21:40

gabrielkazansky

so i have a Raspberri pi 4b and i want to connect it to this motor http://tinyurl.com/3tchkh63 in an other forum i was told that i need a signal matcher so i bought one that translates 3.3v signals for 5v for the motor to register. but in the end of the day i got these super small female to femal jumpers for the gpio of the pi how can i connect them safely to the terminals of the above mentioned motor and secondly how can i wire it up to get the most controllability?

k9t33n

shortened link? why?

gabrielkazansky

is this better

k9t33n

yes

gabrielkazansky

ok

k9t33n

unfortunately I don't know enough about motors and whatnot

k9t33n

sorry I can't help in this area. I'm hoping to get better at it

gabrielkazansky

seems intresting

gabrielkazansky

also just on the conceptal level i seen many tutorials basically saying to wire pul+- ena+- and dir+- up to the pi with a voltage shifter and its done but im curious what do the rx tx pins do on the controller and how to wire em up in theory they can recieve and trasmit data between the motor controller and the pi, but other than that there is little info on whats its good for.

oops.se

If I where you I would start to read the manual (https://www.welectron.com/mediafiles/manuals/jmc/JMC%20iHSV57-30%20User%20Manual.pdf) page 12-13 explains the signaling

gabrielkazansky

It kinda does but kinda doesn't It shows what does the motor expect on the pul dir and ena It basically sais what the tx rx terminals are but doesn't explain what are they good for and how to connect them to a controller

gabrielkazansky

Also it kinda calls these serial... So there is a possibility of wiring the motor up to a serial plug but doesn't explain how

oops.se

See appendix 1 for serial

oops.se

and COM = Serial port = Rx & Tx pins

gabrielkazansky

so if i understrand it corretcly the rx and tx ports are for basically talking to the firmware and not for driving the stuff

oops.se

I din't examine what the program in appendix 1 do, I noticed that it exist and uses serial communication.

oops.se

And fun fact, your the second person that asks about that motor

gabrielkazansky

who was the first?

oops.se

I don't remember, but a search should reveal it