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
Motor Driver connections.
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 10
- Joined: Mon Feb 04, 2013 1:01 am
Motor Driver connections.
- Attachments
-
- IC.jpg (73.64 KiB) Viewed 1528 times
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Driver connections.
Hi, Have you tried contacting Nex? They have a support forum and should be able to assist you with their products.
-
- Posts: 10
- Joined: Mon Feb 04, 2013 1:01 am
Re: Motor Driver connections.
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.
-
- Posts: 10
- Joined: Mon Feb 04, 2013 1:01 am
Re: Motor Driver connections.
I think IN1, IN2 will go to pin 13 and 14 and Gnd to go to Gnd of atmega 8a. Any help ?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Driver connections.
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.
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.
-
- Posts: 10
- Joined: Mon Feb 04, 2013 1:01 am
Re: Motor Driver connections.
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.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Driver connections.
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.
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.
-
- Posts: 10
- Joined: Mon Feb 04, 2013 1:01 am
Re: Motor Driver connections.
Here is the header code.
I have also attached the schematic of original motor H bridge. I want to replace it with nex motor driver.
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;
- Attachments
-
- MotorHbridge.jpg (115.23 KiB) Viewed 1485 times
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: Motor Driver connections.
Page 4 of the manual has the connections explained. What is the problem?
-
- Posts: 10
- Joined: Mon Feb 04, 2013 1:01 am
Re: Motor Driver connections.
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 ?
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: Motor Driver connections.
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?
-
- Posts: 10
- Joined: Mon Feb 04, 2013 1:01 am
Re: Motor Driver connections.
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.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Driver connections.
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.
-
- Posts: 10
- Joined: Mon Feb 04, 2013 1:01 am
Re: Motor Driver connections.
Can i connect it without 10k resistor ?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Driver connections.
Maybe, maybe not. I can only guess what is inside that module. 10K is a 'safe' value.
Please be positive and constructive with your questions and comments.