I'm trying to change the address of one of my two motor drivers https://wiki.seeedstudio.com/Grove-I2C-Motor-Driver-L298P/#resources.
I can't find any information on how to do it. I know that the address can be changed from 0x00 to 0x0f.
I'm trying to change the address of one of my two motor drivers https://wiki.seeedstudio.com/Grove-I2C-Motor-Driver-L298P/#resources.
I can't find any information on how to do it. I know that the address can be changed from 0x00 to 0x0f.
Welcome to the forum.
You should have asked us what kind of motor you want to control with an Arduino board.
Then you could have decided to choose a "driver" or a "controller" and pick a modern good module. See the modules at Pololu: https://www.pololu.com/category/9/motion-control-modules
There are many other good modules for a motor.
If the firmware in the STM32 chip has no bug, then you can set the I2C address with jumpers or dip-switches. I think that a old version of the module had dip-switches.
Do you have jumpers ?
I assume that the jumpers are only read during power-on. Have you tried that ?
Found on the page you linked to, one of three times changing the address is mentioned, as well as being shown in the schematic. Granted, the language is awkward, but enough of the meaning comes through.
- Selectable I2C address: change the connection of wire hat to get the I2C address from 0x00 to 0x0f, the default I2C address is 0x0f.
Yes, it took me hours to figure it out. That’s what I thought they were referring to after looking through all the documentation, so I’m going to test it. I’m just going to have to connect one side of the pin to the other with a jumper wire to change one of the pins from 1 to 0?
Yes. Up to four three jumpers, any number, any order.
Don't use address 0x00, that is a special "General Call" address. So don't use 4 jumpers.
Try to find a I2C Scanner sketch. Power up the board to be sure that it has selected the right address, then run the I2C Scanner sketch. You should see a different I2C address.
Yes, it took me hours to figure it out. That’s what I thought they were referring to after looking through all the documentation, so I’m going to test it. I’m just going to have to connect one side of the pin to the other with a jumper wire to change one of the pins from 1 to 0?
Thank you so much!
Worked perfectly, thank you so much! Address got changed to 0x07 and it was super easy from there.
I2c Multiple Motor Drivers Check this out for anyone wanting to know how to do the software.
I'm glad it is working ![]()
The L298P driver chip on that board has a voltage drop. It can be a few voltages, depending on the current. If you use 12V, then the motor might only get 8V.
The L298 is from an era that is far behind us.
Today there are better solutions. But it depends on the type of motor what the best solution is.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.