I would like to interface the encoder from a JGB37-520 motor so that it can be read from
an Arduino on I2C. since I will have multiple motors and dont want to miss pulses could I build a small up/down counter that is read via I2C. Any ideas would be appreciated.
I am new to Arduino coming from a PLC background and I am interested in some robotics
applications and putting together all items needed for my design. I have worked with IC's
in the past and am familiar with up/down counters but not ones that would automatically count up or down based on the A-B encoder direction, I also dont know of any that are I2C compatible of if they would need to be tied to a pcf8574
Thanks (first post) roxusa
Welcome to the forum.
To answer your question.
No I2C is not fast enough to make the measurements.
sounds like the motor has a built in QEI signals
consider using an Arduino Due which has a hardware QEI encoder interface
Thanks for the reply. I am new to Arduino and was looking at using a Mega to control 4 motor drivers and a few sensors. I was exploring the I2C concept to eliminate the amount of wires coming
back to the board through the pivot points.
sounds like you require a microcontroller with more more power than a Mega
could you give more details of the system? e.g. are you using four JGB37-520 devices? what other sensors are there?
the length of I2C connections is limited - once you get over a metre you can have problems
Hi, @roxusa
Welcome to the forum.
Can you tell us the application?
We may be able to make better suggestions.
What power supply will you be using for the motors?
Thanks.. Tom...
Power for the motors is 12vdc lithium battery
The motor driver boards give me a 5vdc
Control power and require 5v ifnams for direction and a pwm input for speed the distance from Arduino to motor drivers is 9”
And the distance to max I2C components
Would be 24”
This is an eight leg spider with a separate
Arduino for each leg (modular) the motherboard controlling is Raspberry Pi
For now the Arduino at each leg will only get a position & speed reference for each of the 4 motors and execute
I am still in design stages to laser print parts and I am accumulating hardware
Thanks
I think you need to check that the proposed Arduino board (Mega, Due,??) will control one JGB37-520 motor before you purchase eight boards
I have seen applications where is can and there are shield boards available however I prefer to have my motor driver boards mounted about 6” away for space saving. The motor voltage has nothing to do with the Arduino and the motor driver boards are Arduino compatible. I don’t have their model number on me but can post it later. Perhaps I could draw out a line diagram
I have not factored in any other sensors yet and I am only focusing on the direction
Inputs, PWM speed inputs and reading the
Encoder positions
I don’t have to use the encoders as quadrature I cold use them as single ended inputs since the direction will be known and I could write the up or down count in the code
L298N Dual H Bridge Control Board
Is the motor driver board. It can either drive a stepper motor or split it can drive 2 dc motors independently
Thanks for your replies and interest
In my project. I have acquired a lot of parts as this project progresses including
Numerous sensor devices. Ribbon cables and connections, motors, along with a few dozen Arduino’s Mega & Uno. This is a long term project which I won’t actually work on consistently for a few years until I wind up all my PLC projects. But I still try to work on its design
Thanks
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.