Motor Driver connections.

by MohitJindal on Mon Feb 04, 2013 12:07 am

Hi;
I want to attach the motor driver purchased from http://www.nex-robotics.com/products/mo ... nsing.html
with the photo of schematic I attached.
I want to know which pins go where :?: :roll:
Attachments
IC.jpg
IC.jpg (73.64 KiB) Viewed 600 times
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 12:01 am

Re: Motor Driver connections.

by adafruit_support_bill on Mon Feb 04, 2013 6:40 am

Hi, Have you tried contacting Nex? They have a support forum and should be able to assist you with their products.
User avatar
adafruit_support_bill
 
Posts: 25511
Joined: Sat Feb 07, 2009 9:11 am

Re: Motor Driver connections.

by MohitJindal on Mon Feb 04, 2013 6:57 am

Yes ofcourse. I also posted on nex forums but they don't allowed my post. I also emailed them to provide me schematic but no reply. Wasted my money on Nex.
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 12:01 am

Re: Motor Driver connections.

by MohitJindal on Mon Feb 04, 2013 7:01 am

I think IN1, IN2 will go to pin 13 and 14 and Gnd to go to Gnd of atmega 8a. Any help ?
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 12:01 am

Re: Motor Driver connections.

by adafruit_support_bill on Mon Feb 04, 2013 7:30 am

Without any details about your circuit and what it is supposed to do it is difficult to offer specific advice.

I think you are correct about IN1 and IN2. I suspect that the TX_EN (pin 11) is intended to drive the PWM pin. Of course, you will also need to connect GND.
User avatar
adafruit_support_bill
 
Posts: 25511
Joined: Sat Feb 07, 2009 9:11 am

Re: Motor Driver connections.

by MohitJindal on Mon Feb 04, 2013 7:45 am

The schematic pic is of a dc servo motor. I have the full schematic in pdf. Pdf is not allowed here. So pwm can be TX_EN ? Pin 10 is RX.
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 12:01 am

Re: Motor Driver connections.

by adafruit_support_bill on Mon Feb 04, 2013 7:59 am

These are not products we are familiar with. Typically, an H-bridge motor controller will have direction control pins (as you have already identified) and an enable pin to turn the motor on. To control the speed, you use PWM on the enable pin.

The schematic shows an RXD/TXD and some SPI signal lines. But none of these are connected, so it is not clear which pins are used for communication.

We really can't provide support for these products. But you are welcome to post here and someone familiar with these products might be able to help you.
User avatar
adafruit_support_bill
 
Posts: 25511
Joined: Sat Feb 07, 2009 9:11 am

Re: Motor Driver connections.

by MohitJindal on Mon Feb 04, 2013 8:19 am

Here is the header code.
Code: Select all
#define Motor_Clockwise    BIT2
#define Motor_Anticlockwise   BIT1
#define Motor_Port          PORTB
#define Motor_Dir          DDRB
/**
*@brief simply control PWM for the motor.\n
The pwm must be givem with values between 0 and 2000.\n
The 1000 is the motor stopped. The 0 is the 100% PWM rotating Anticlockwise and the 2000 is the 100% PWM rotating Clockwise
The PWM has increments of one step with 1000 steps of resolution.
*@var pwm This is the pwm to set on the motor
*@return 2 if rotating clockwise.\n
1 if stopped.\n
0 if anticlockwise.\n
-1 if fail or bad value or limit reached.
*/
int8_t SetPWM(uint16_t pwm);


/**
*@brief Init the motor low level control, on this case pins, timers, pwm variables, etc.
*/
void InitMotor(void);

uint16_t PWM;


I have also attached the schematic of original motor H bridge. I want to replace it with nex motor driver. :roll:
Attachments
MotorHbridge.jpg
MotorHbridge.jpg (115.23 KiB) Viewed 557 times
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 12:01 am

Re: Motor Driver connections.

by Zener on Mon Feb 04, 2013 4:25 pm

Page 4 of the manual has the connections explained. What is the problem?
Zener
 
Posts: 2382
Joined: Sat Feb 21, 2009 1:38 am

Re: Motor Driver connections.

by MohitJindal on Mon Feb 04, 2013 9:21 pm

Zener, the motor driver has PWM pin 4. But there is no sign of PWM in the first schematic I attached.Where would i connect PWM of motor Driver ? :roll:
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 12:01 am

Re: Motor Driver connections.

by Zener on Mon Feb 04, 2013 11:51 pm

You have to figure out the code, where that is assigned. And I don't see how the old H-Bridge schematic helps. Does it?
Zener
 
Posts: 2382
Joined: Sat Feb 21, 2009 1:38 am

Re: Motor Driver connections.

by MohitJindal on Tue Feb 05, 2013 6:00 am

Hi Zener, The manual said : if you don't want pwm then connect it to 5v logic level. Can you tell me where is 5v logic level ? Please open nex link again or manual.
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 12:01 am

Re: Motor Driver connections.

by adafruit_support_bill on Tue Feb 05, 2013 7:03 am

VCC on that schematic is 5v. Connect the PWM pin to that with a 10K resistor. Be aware that without PWM, you motors will always be running full speed.
User avatar
adafruit_support_bill
 
Posts: 25511
Joined: Sat Feb 07, 2009 9:11 am

Re: Motor Driver connections.

by MohitJindal on Tue Feb 05, 2013 7:38 am

Can i connect it without 10k resistor ? :roll:
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 12:01 am

Re: Motor Driver connections.

by adafruit_support_bill on Tue Feb 05, 2013 7:58 am

Maybe, maybe not. I can only guess what is inside that module. 10K is a 'safe' value.
User avatar
adafruit_support_bill
 
Posts: 25511
Joined: Sat Feb 07, 2009 9:11 am