hbrobotics / ros_arduino_bridge

ROS + Arduino = Robot
353 stars 344 forks source link

Does this package support non-pololu drivers? #30

Open kishorekumar29 opened 8 years ago

kishorekumar29 commented 8 years ago

I am using my own motor driver instead of pololu drivers. Do this package support the drivers other than which it is developed for., in that case what are all the changes need to be done?

robotcdf commented 8 years ago

I'm sorry, but I am not the original author of this project. I'm also doing this direction, using DFrobot drive, also has the same problem, which is in testing now.

2016-09-03 21:12 GMT+08:00 kishorekumar29 notifications@github.com:

I am using my own motor driver instead of pololu drivers. Do this package support the drivers other than which it is developed for., in that case what are all the changes need to be done?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hbrobotics/ros_arduino_bridge/issues/30, or mute the thread https://github.com/notifications/unsubscribe-auth/ALTdgGi4g8fPWx9BmMfSI9OJeuzd7fdLks5qmXImgaJpZM4J0TPM .

pirobot commented 8 years ago

@kishorekumar29 - Yes, you can certainly add support for other motor drivers if you know something about Arduino programming. Most motor drivers come with an Arduino library so first you need to install that. Then take a look at the motor_driver.ino and motor_driver.h files under ros_arduino_firmware/src/libraries/ROSArduinoBridge and you can see how the current drivers are supported. Once you add your support in those two files, you'll need to add a corresponding #define in the main file ros_arduino_firmware/src/libraries/ROSArduinoBridge/ROSArduinoBridge.ino.

robotcdf commented 8 years ago

thanks

2016-09-05 8:57 GMT+08:00 pirobot notifications@github.com:

@kishorekumar29 https://github.com/kishorekumar29 - Yes, you can certainly add support for other motor drivers if you know something about Arduino programming. Most motor drivers come with an Arduino library so first you need to install that. Then take a look at the motor_driver.ino and motor_driver.h files under ros_arduino_firmware/src/libraries/ROSArduinoBridge and you can see how the current drivers are supported. Once you add your support in those two files, you'll need to add a corresponding #define in the main file ros_arduino_firmware/src/libraries/ROSArduinoBridge/ ROSArduinoBridge.ino.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hbrobotics/ros_arduino_bridge/issues/30#issuecomment-244639016, or mute the thread https://github.com/notifications/unsubscribe-auth/ALTdgET0kpBFEgTQP7d3s77QWpA1DoNiks5qm2j1gaJpZM4J0TPM .

patrickpoirier51 commented 7 years ago

Just finished building a diff-drive using cheap dual L298N. I simply remapped the pins of the DualVNH5019MotorShield::DualVNH5019MotorShield() { //Pin map _INA1 = 2; _INB1 = 3; _INA2 = 7; _INB2 = 8; }

and changed timer ICR1 register value from 400 to 300

Works OK, but obviously there is no current feedback