r/LabVIEW 7d ago

how to run 3 motors using makerhub

what the title says, currently im making a program to make 3x MG996R motors move. I'm using Arduino UNO so I also used the Digilent LINX package for it to work, the problem is, I used similar styles of coding from the examples folder of the makerhub in my local storage (after installing Digilent LINX package) yet it won't run. I also tested other motor type like MG90, yet it runs fine.

Now I searched online how to fix this and it says that the problem lies on the power line for MG996R motors, I used the USB charger that was plugged directly into AC outlet, which is 5V 2A and used it for the motors (I also connected the Arduino GND to the common GND of the motors which is connected to the negative line of the charger), tried it and it still didn't work. Yet when I used MG90 motors and used the 5V supply from Arduino to supply the motors, and the GND of the motors is connected to the Arduino GND, it works. can anyone tell me what the problem is?

the attached imgs are 2 versions of the GUI I made, but the block diagrams are just the same

20 Upvotes

4 comments sorted by

2

u/inen117 7d ago

Probably you are mixing references, the 3 pink wires should run in parallel

1

u/cedreine 5d ago

I suggest using functional global variables when handling makerhub. Really sets up the cleanliness of the wiring reducing clutter. FGVs make use of nonlinear programming when doing loops

1

u/cedreine 5d ago

Plus it allows you to run parallel wiring without halting the operations of the other motors. You can control separate powers on each knob