Motor Driver connections.

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 1:01 am

Motor Driver connections.

Post by MohitJindal »

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 1525 times

User avatar
adafruit_support_bill
 
Posts: 88090
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Driver connections.

Post by adafruit_support_bill »

Hi, Have you tried contacting Nex? They have a support forum and should be able to assist you with their products.

MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 1:01 am

Re: Motor Driver connections.

Post by MohitJindal »

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 1:01 am

Re: Motor Driver connections.

Post by MohitJindal »

I think IN1, IN2 will go to pin 13 and 14 and Gnd to go to Gnd of atmega 8a. Any help ?

User avatar
adafruit_support_bill
 
Posts: 88090
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Driver connections.

Post by adafruit_support_bill »

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.

MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 1:01 am

Re: Motor Driver connections.

Post by MohitJindal »

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.

User avatar
adafruit_support_bill
 
Posts: 88090
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Driver connections.

Post by adafruit_support_bill »

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.

MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 1:01 am

Re: Motor Driver connections.

Post by MohitJindal »

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 1482 times

User avatar
zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Re: Motor Driver connections.

Post by zener »

Page 4 of the manual has the connections explained. What is the problem?

MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 1:01 am

Re: Motor Driver connections.

Post by MohitJindal »

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:

User avatar
zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Re: Motor Driver connections.

Post by zener »

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?

MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 1:01 am

Re: Motor Driver connections.

Post by MohitJindal »

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.

User avatar
adafruit_support_bill
 
Posts: 88090
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Driver connections.

Post by adafruit_support_bill »

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.

MohitJindal
 
Posts: 10
Joined: Mon Feb 04, 2013 1:01 am

Re: Motor Driver connections.

Post by MohitJindal »

Can i connect it without 10k resistor ? :roll:

User avatar
adafruit_support_bill
 
Posts: 88090
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Driver connections.

Post by adafruit_support_bill »

Maybe, maybe not. I can only guess what is inside that module. 10K is a 'safe' value.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”