Control precisely speed of two motors and wheels

Any hardware type questions or problems for all other Phidget devices.
Post Reply
FPI
Fresh meat
Posts: 3
Joined: Wed Jun 02, 2021 8:19 am
Contact:

Control precisely speed of two motors and wheels

Post by FPI »

Hello,
I need to control the speed of two wheelchair motors of 300W / 24V, 120 rotation by minutes, with 26 cm wheels on each.
I think to use :

- Phidget Encoder HighSpeed 4-Input board
- 2 Optical Rotary Encoder HKT22
… connected through USB to a Raspberry Pi 4 and Nodejs language.

Do I need something else to do that ?
download/file.php?mode=view&id=1326

Best regards
Attachments
Phidget-Motor Speed Control POC.png
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Control precisely speed of two motors and wheels

Post by mparadis »

Your diagram doesn't show how you'll be controlling or powering the motors. The 1047 only reads the encoders.

The 5V and G pins are outputs in case you need to attach limit switches or other small devices. It gets its power from the USB connection so you don't need to hook these up.
FPI
Fresh meat
Posts: 3
Joined: Wed Jun 02, 2021 8:19 am
Contact:

Re: Control precisely speed of two motors and wheels

Post by FPI »

Hello,

Motors are powered by two batteries (35 A) through Saberbooth 32 A (it works well).
Raspberry drives the Saberbooth through PCA9685 16-servos board.

So, Is the "Phidget Encoder HighSpeed 4-Input board" powerd by USB wire ?
Does the Raspberry ¨Pi 4 USB port able to deliver enough currrent ?

Best regards.
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Control precisely speed of two motors and wheels

Post by mparadis »

For our USB Phidgets, some customers have had power issues with the Pi's USB ports. You may want to use the VINT Hub and two ENC1000s instead, they're newer devices, lower power, and altogether less expensive.
FPI
Fresh meat
Posts: 3
Joined: Wed Jun 02, 2021 8:19 am
Contact:

Re: Control precisely speed of two motors and wheels

Post by FPI »

Hello,

I choosed the "HighSpeed 4-Input board" because the text "allow to read simultaneously several encoders"....
So do you think that I can do the same with following schema ?

download/file.php?mode=view&id=1327

Best regards.
Attachments
Phidget-Motor Speed Control POC - 2.png
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Control precisely speed of two motors and wheels

Post by mparadis »

Yes, this schema will work with both encoders simultaneously and won't have any USB power issues.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests