Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

DC motor control using MR C3024 board?

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
13 postsPage 1 of 1
13 postsPage 1 of 1

DC motor control using MR C3024 board?

Post by Robotech » Mon Jan 22, 2007 5:35 pm

Post by Robotech
Mon Jan 22, 2007 5:35 pm

Hi all, I have been following this forum since i bought my RN1 one month ago. Now, I am thinking of adding wheels to my RN1. Is there anyone can help on how to get DC motor controlled using the RN1 control board?

The Robobasic instruction touches a little on DC motor control using RN1 controller but i just can't figure out how to do it.

I am using tamiya universal gearbox to drive the wheels. Information of the DC motor:
http://www.pololu.com/products/tamiya/0069/
Hi all, I have been following this forum since i bought my RN1 one month ago. Now, I am thinking of adding wheels to my RN1. Is there anyone can help on how to get DC motor controlled using the RN1 control board?

The Robobasic instruction touches a little on DC motor control using RN1 controller but i just can't figure out how to do it.

I am using tamiya universal gearbox to drive the wheels. Information of the DC motor:
http://www.pololu.com/products/tamiya/0069/
Robotech
Robot Builder
Robot Builder
User avatar
Posts: 10
Joined: Mon Jan 22, 2007 1:00 am

Post by Pev » Mon Jan 22, 2007 8:26 pm

Post by Pev
Mon Jan 22, 2007 8:26 pm

Not sure about DC motors or what speeds you want to do but you could always modify a couple of standard servos for continuous rotation and use those......

This may help

http://www.lynxmotion.com/images/html/smodh2.htm

Pev
Not sure about DC motors or what speeds you want to do but you could always modify a couple of standard servos for continuous rotation and use those......

This may help

http://www.lynxmotion.com/images/html/smodh2.htm

Pev
Carl
-------------------------
www.alt-view.co.uk
Pev
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 547
Joined: Sun Feb 26, 2006 1:00 am
Location: UK

Post by Robotech » Tue Jan 23, 2007 1:38 am

Post by Robotech
Tue Jan 23, 2007 1:38 am

Thanks for your info, Pev.

I am using tamiya universal gearbox : http://www.pololu.com/products/tamiya/0069/

I just receive an e-mail from hitecrobotics on this. They mention only about PWM port. I will try it out then.

The DC motor has only 2 terminals. How is the connection should be? connect to GND and SIGNAL ,igore +5?

How the code should look like? Use PWM command? How to make it rotate in both direction? Varying speed?

Thanks for enlighten me
Thanks for your info, Pev.

I am using tamiya universal gearbox : http://www.pololu.com/products/tamiya/0069/

I just receive an e-mail from hitecrobotics on this. They mention only about PWM port. I will try it out then.

The DC motor has only 2 terminals. How is the connection should be? connect to GND and SIGNAL ,igore +5?

How the code should look like? Use PWM command? How to make it rotate in both direction? Varying speed?

Thanks for enlighten me
Robotech
Robot Builder
Robot Builder
User avatar
Posts: 10
Joined: Mon Jan 22, 2007 1:00 am

Post by Bullit » Tue Jan 23, 2007 3:47 am

Post by Bullit
Tue Jan 23, 2007 3:47 am

I think I would use one of the unused servo ports and a r/c speed control with reverse to control the motor.
I think I would use one of the unused servo ports and a r/c speed control with reverse to control the motor.
Image
Bullit
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 291
Joined: Wed May 31, 2006 1:00 am
Location: Near robot

Post by i-Bot » Tue Jan 23, 2007 12:14 pm

Post by i-Bot
Tue Jan 23, 2007 12:14 pm

Interesting question, not quite as simple as I first thought.

Depends also on whether you want to build or buy a solution.

For an off the shelf solution either a speed controller from the servo outputs as suggested by Bullit, or a serial controller similar to the one from Pololu are the probably the easiest.

The servo outputs have the advantage to setting zero for stop. However the servo settings are now speed, and not position, this will cause some interesting challenges when using PTP on group moves.

The serial option would go on the ETX/ERX, but would probably be a little slower.

For a build option then the PWM on the C-3024 can be used. The PWM outputs are only ttl levels, so cannot drive a motor direct. There are 3 PWM outputs, but you will also have to use a couple of other ports to give direction signals.

For an external motor driver you would need a dual H-bridge such as LM298N.
Interesting question, not quite as simple as I first thought.

Depends also on whether you want to build or buy a solution.

For an off the shelf solution either a speed controller from the servo outputs as suggested by Bullit, or a serial controller similar to the one from Pololu are the probably the easiest.

The servo outputs have the advantage to setting zero for stop. However the servo settings are now speed, and not position, this will cause some interesting challenges when using PTP on group moves.

The serial option would go on the ETX/ERX, but would probably be a little slower.

For a build option then the PWM on the C-3024 can be used. The PWM outputs are only ttl levels, so cannot drive a motor direct. There are 3 PWM outputs, but you will also have to use a couple of other ports to give direction signals.

For an external motor driver you would need a dual H-bridge such as LM298N.
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am

Post by sippy » Tue Jan 23, 2007 3:29 pm

Post by sippy
Tue Jan 23, 2007 3:29 pm

I think it comes down to exactly how you want this motor placed/packaged. Looking at the prices of continuous servos(http://www.active-robots.com/products/motorsandwheels/servo-motors.shtml), they are not much more expensive than the motor you are talking about. This will then give you the control circuitry and h-bridge in a reasonably small package, ready to plug into the existing board pins. This would then mean that the motors control circuitry and motor are reasonably close, you could however be looking for a small presence around the motor and to control it elsewhere, in which case an external control circuitry would be needed.

If however you are looking for a more low level solution as I-bot say's you will need to create your own h-bridge circuit since the pins of the atmel will not be able to deliver enough power( figure 7 in http://www.st.com/stonline/books/pdf/docs/1773.pdf gives an excellent diagram), and possibly a feed back method would be needed too if you are looking to control the motor accurately. Either way you generally need 2 signals as shown in the table of the datasheet that define forward, back, resist movement and free rotate.

Again like i-bot says http://www.pololu.com/products/pololu/0410/ could be a good one for space and ease of integration, but slow since it uses a serial protocol. Depends if you are looking for ease, cost or fun of DIY.
I think it comes down to exactly how you want this motor placed/packaged. Looking at the prices of continuous servos(http://www.active-robots.com/products/motorsandwheels/servo-motors.shtml), they are not much more expensive than the motor you are talking about. This will then give you the control circuitry and h-bridge in a reasonably small package, ready to plug into the existing board pins. This would then mean that the motors control circuitry and motor are reasonably close, you could however be looking for a small presence around the motor and to control it elsewhere, in which case an external control circuitry would be needed.

If however you are looking for a more low level solution as I-bot say's you will need to create your own h-bridge circuit since the pins of the atmel will not be able to deliver enough power( figure 7 in http://www.st.com/stonline/books/pdf/docs/1773.pdf gives an excellent diagram), and possibly a feed back method would be needed too if you are looking to control the motor accurately. Either way you generally need 2 signals as shown in the table of the datasheet that define forward, back, resist movement and free rotate.

Again like i-bot says http://www.pololu.com/products/pololu/0410/ could be a good one for space and ease of integration, but slow since it uses a serial protocol. Depends if you are looking for ease, cost or fun of DIY.
sippy
Robot Builder
Robot Builder
User avatar
Posts: 8
Joined: Wed Dec 13, 2006 1:00 am

Post by Robotech » Tue Jan 23, 2007 5:49 pm

Post by Robotech
Tue Jan 23, 2007 5:49 pm

Thanks guys, you all are so helpful. I think I am going to get a servo modified for continuous rotation.

By the way, how does the control of continuous rotation servo motor differs from the normal servo?

I want to make it rotate in both directions ,stop and vary its speed.
Thanks guys, you all are so helpful. I think I am going to get a servo modified for continuous rotation.

By the way, how does the control of continuous rotation servo motor differs from the normal servo?

I want to make it rotate in both directions ,stop and vary its speed.
Robotech
Robot Builder
Robot Builder
User avatar
Posts: 10
Joined: Mon Jan 22, 2007 1:00 am

Post by DerekZahn » Tue Jan 23, 2007 6:22 pm

Post by DerekZahn
Tue Jan 23, 2007 6:22 pm

A servo modified for continuous rotation has the mechanical stops in the gear train removed, and also has the potentiometer (which gives position feedback) either disconnected or removed.

You will be able to set the direction and (roughly) speed by telling the servo where to go. Telling it to go to the "center" means stop.
A servo modified for continuous rotation has the mechanical stops in the gear train removed, and also has the potentiometer (which gives position feedback) either disconnected or removed.

You will be able to set the direction and (roughly) speed by telling the servo where to go. Telling it to go to the "center" means stop.
DerekZahn
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 141
Joined: Wed Mar 16, 2005 1:00 am
Location: Boulder CO, USA

The Transformer

Post by Robotech » Mon Mar 12, 2007 6:05 am

Post by Robotech
Mon Mar 12, 2007 6:05 am

Robotech
Robot Builder
Robot Builder
User avatar
Posts: 10
Joined: Mon Jan 22, 2007 1:00 am

Post by gdubb2 » Mon Mar 12, 2007 5:30 pm

Post by gdubb2
Mon Mar 12, 2007 5:30 pm

Thats GREAT... I love it..

Gary
Thats GREAT... I love it..

Gary
gdubb2
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 57
Joined: Sat Sep 23, 2006 1:00 am
Location: Blackfoot, ID. USA

Post by Robotech » Tue Mar 13, 2007 1:42 am

Post by Robotech
Tue Mar 13, 2007 1:42 am

Hi all, Robotech is now convertible to wheeled robot!! Just like the transformer. Also, I have made him dance. Enjoy..

The dance:
http://www.youtube.com/watch?v=qQx6G1P4 ... user%2Ephp

The Transformer:
http://www.youtube.com/watch?v=wMgng2aT ... user%2Ephp

This is not the perfect one(the dance) but the only video I managed to take using my friend's digital camera.
Hi all, Robotech is now convertible to wheeled robot!! Just like the transformer. Also, I have made him dance. Enjoy..

The dance:
http://www.youtube.com/watch?v=qQx6G1P4 ... user%2Ephp

The Transformer:
http://www.youtube.com/watch?v=wMgng2aT ... user%2Ephp

This is not the perfect one(the dance) but the only video I managed to take using my friend's digital camera.
Robotech
Robot Builder
Robot Builder
User avatar
Posts: 10
Joined: Mon Jan 22, 2007 1:00 am

Post by Robotech » Wed Mar 21, 2007 3:25 pm

Post by Robotech
Wed Mar 21, 2007 3:25 pm

I have removed previous videos on my robotech
New vidoes of better quality:


phpBB [media]


phpBB [media]


phpBB [media]
I have removed previous videos on my robotech
New vidoes of better quality:


phpBB [media]


phpBB [media]


phpBB [media]
Robotech
Robot Builder
Robot Builder
User avatar
Posts: 10
Joined: Mon Jan 22, 2007 1:00 am

Code

Post by joaocunha99 » Fri Feb 25, 2011 3:18 pm

Post by joaocunha99
Fri Feb 25, 2011 3:18 pm

hi,
you controlled the dc motors with pwm gate or a bridge H.

Could provide the codes.

I wanted to control dc motors with H bridge but with the outputs of the servos. I do not know how.
hi,
you controlled the dc motors with pwm gate or a bridge H.

Could provide the codes.

I wanted to control dc motors with H bridge but with the outputs of the servos. I do not know how.
joaocunha99
Newbie
Newbie
Posts: 4
Joined: Mon Dec 27, 2010 6:30 pm


13 postsPage 1 of 1
13 postsPage 1 of 1