Skip to main content

I've got a L293D and I've got a PIC16F877A outputting PWM. It's notNot real PWM, just using Timer0 to turn on aON a pin for 2ms2 ms and offOFF for 18ms, bringing a total18 ms (total of 20ms20 ms period).

enter image description here

W.R.T. to the above schematic I got VSSVSS, VCVC, CHIP 1CHIP 1 and 2CHIP 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees. What I did


EDIT: My motor is thata pre-hacked RC servo motor, when input 1specifically the Cytron C36S, hacked to run continuously (i.e. behave as a normal motor, no longer as a typical servo motor)


My approach

When input 1 is onON and 2input 2 is offOFF, promptingit prompts the motor to run one way, input 1input 1 is not always onON. Since input 1input 1 is the PWM output from the PIC, it'll turn on 2msON (HIGH) for 2 ms and off 18ms continuously soOFF (LOW) for 18 ms in continuous cycle of 20 ms. Using

But using this setup, my motor isn't properly working; sometimes it runs slower than usual  (this is actually what I want) but most of the time it just hums in its place, no movement whatsoever.

How cando I improve this configuration, or is there a better way to control motor speed using L293D that I'm not aware of? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

EDIT: My motor is a Cytron C36S servo motor, hacked to run continuously(i.e. behaves as a normal motor, no longer as servo motor)

I've got a L293D and I've got a PIC16F877A outputting PWM. It's not real PWM, just using Timer0 to turn on a pin for 2ms and off for 18ms, bringing a total of 20ms period.

enter image description here

I got VSS, VC, CHIP 1 and 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees. What I did is that, when input 1 is on and 2 is off, prompting the motor to run one way, input 1 is not always on. Since input 1 is the PWM output from the PIC, it'll turn on 2ms and off 18ms continuously so. Using this setup, my motor isn't properly working; sometimes it runs slower than usual(this is what I want) but most of the time it just hums in place.

How can I improve this configuration, or is there a better way to control motor speed using L293D that I'm not aware of? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

EDIT: My motor is a Cytron C36S servo motor, hacked to run continuously(i.e. behaves as a normal motor, no longer as servo motor)

I've got a L293D and a PIC16F877A outputting PWM. Not real PWM, just using Timer0 to turn ON a pin for 2 ms and OFF for 18 ms (total of 20 ms period).

enter image description here

W.R.T. to the above schematic I got VSS, VC, CHIP 1 and CHIP 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees.


EDIT: My motor is a pre-hacked RC servo motor, specifically the Cytron C36S, hacked to run continuously (i.e. behave as a normal motor, no longer as a typical servo motor)


My approach

When input 1 is ON and input 2 is OFF, it prompts the motor to run one way, input 1 is not always ON. Since input 1 is the PWM output from the PIC, it'll turn ON (HIGH) for 2 ms and OFF (LOW) for 18 ms in continuous cycle of 20 ms.

But using this setup, my motor isn't properly working; sometimes it runs slower than usual  (this is actually what I want) but most of the time it just hums in its place, no movement whatsoever.

How do I improve this configuration, is there a better way to control motor speed using L293D? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

deleted 16 characters in body
Source Link
stevenvh
  • 146.6k
  • 21
  • 460
  • 669

I've got a L293D and I've got a PIC16F877A outputting PWM. It's not real PWM, just using Timer0 to turn on a pin for 2ms and off for 18ms, bringing a total of 20ms period.

L293D guide Picenter image description here

I got VSS, VC, CHIP 1 and 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees. What I did is that, when input 1 is on and 2 is off, prompting the motor to run one way, input 1 is not always on. Since input 1 is the PWM output from the PIC, it'll turn on 2ms and off 18ms continuously so. Using this setup, my motor isn't properly working; sometimes it runs slower than usual(this is what I want) but most of the time it just hums in place.

How can I improve this configuration, or is there a better way to control motor speed using L293D that I'm not aware of? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

EDIT: My motor is a Cytron C36S servo motor, hacked to run continuously(i.e. behaves as a normal motor, no longer as servo motor)

I've got a L293D and I've got a PIC16F877A outputting PWM. It's not real PWM, just using Timer0 to turn on a pin for 2ms and off for 18ms, bringing a total of 20ms period.

L293D guide Pic

I got VSS, VC, CHIP 1 and 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees. What I did is that, when input 1 is on and 2 is off, prompting the motor to run one way, input 1 is not always on. Since input 1 is the PWM output from the PIC, it'll turn on 2ms and off 18ms continuously so. Using this setup, my motor isn't properly working; sometimes it runs slower than usual(this is what I want) but most of the time it just hums in place.

How can I improve this configuration, or is there a better way to control motor speed using L293D that I'm not aware of? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

EDIT: My motor is a Cytron C36S servo motor, hacked to run continuously(i.e. behaves as a normal motor, no longer as servo motor)

I've got a L293D and I've got a PIC16F877A outputting PWM. It's not real PWM, just using Timer0 to turn on a pin for 2ms and off for 18ms, bringing a total of 20ms period.

enter image description here

I got VSS, VC, CHIP 1 and 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees. What I did is that, when input 1 is on and 2 is off, prompting the motor to run one way, input 1 is not always on. Since input 1 is the PWM output from the PIC, it'll turn on 2ms and off 18ms continuously so. Using this setup, my motor isn't properly working; sometimes it runs slower than usual(this is what I want) but most of the time it just hums in place.

How can I improve this configuration, or is there a better way to control motor speed using L293D that I'm not aware of? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

EDIT: My motor is a Cytron C36S servo motor, hacked to run continuously(i.e. behaves as a normal motor, no longer as servo motor)

added 133 characters in body
Source Link
Sodrohu
  • 163
  • 1
  • 3
  • 10

I've got a L293D and I've got a PIC16F877A outputting PWM. It's not real PWM, just using Timer0 to turn on a pin for 2ms and off for 18ms, bringing a total of 20ms period.

L293D guide Pic

I got VSS, VC, CHIP 1 and 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees. What I did is that, when input 1 is on and 2 is off, prompting the motor to run one way, input 1 is not always on. Since input 1 is the PWM output from the PIC, it'll turn on 2ms and off 18ms continuously so. Using this setup, my motor isn't properly working; sometimes it runs slower than usual(this is what I want) but most of the time it just hums in place.

How can I improve this configuration, or is there a better way to control motor speed using L293D that I'm not aware of? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

EDIT: My motor is a Cytron C36S servo motor, hacked to run continuously(i.e. behaves as a normal motor, no longer as servo motor)

I've got a L293D and I've got a PIC16F877A outputting PWM. It's not real PWM, just using Timer0 to turn on a pin for 2ms and off for 18ms, bringing a total of 20ms period.

L293D guide Pic

I got VSS, VC, CHIP 1 and 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees. What I did is that, when input 1 is on and 2 is off, prompting the motor to run one way, input 1 is not always on. Since input 1 is the PWM output from the PIC, it'll turn on 2ms and off 18ms continuously so. Using this setup, my motor isn't properly working; sometimes it runs slower than usual(this is what I want) but most of the time it just hums in place.

How can I improve this configuration, or is there a better way to control motor speed using L293D that I'm not aware of? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

I've got a L293D and I've got a PIC16F877A outputting PWM. It's not real PWM, just using Timer0 to turn on a pin for 2ms and off for 18ms, bringing a total of 20ms period.

L293D guide Pic

I got VSS, VC, CHIP 1 and 2 up to 5V.

My current method of controlling the motor is to turn input 1 and 2 on-off from the PWM, to control the outputs 1 and 2. My motor is a hacked servo motor that runs 360 degrees. What I did is that, when input 1 is on and 2 is off, prompting the motor to run one way, input 1 is not always on. Since input 1 is the PWM output from the PIC, it'll turn on 2ms and off 18ms continuously so. Using this setup, my motor isn't properly working; sometimes it runs slower than usual(this is what I want) but most of the time it just hums in place.

How can I improve this configuration, or is there a better way to control motor speed using L293D that I'm not aware of? If possible I want to use l293D as buying new components/ICs are too much of a hassle...

EDIT: My motor is a Cytron C36S servo motor, hacked to run continuously(i.e. behaves as a normal motor, no longer as servo motor)

Source Link
Sodrohu
  • 163
  • 1
  • 3
  • 10
Loading