Skip to main content
4 votes
Accepted

How do I instruct the L293D to operate a motor at full speed when using 3.3V GPIO pins?

The voltage level on the control pins does not have any relation to the power provided to the motor. The inputs are all digital. Above a threshold they are on, and below a threshold they are off. ...
Majenko's user avatar
  • 105k
4 votes

State machine doesn't function

I don't know enough about how tapes work to comment on the sense of what you're doing, but some problems with the code: You are reading the input and setting buttonstate once only in setup(). You ...
Mark Smith's user avatar
  • 2,181
3 votes

State machine sketch to drive a DC motor with limit switches

You have created a flow chart. When discussing state machines it is better to use a state diagram. In this state diagram of a turnstile (from the state machine wikipedia page linked to above) it is ...
st2000's user avatar
  • 7,340
2 votes

State machine sketch to drive a DC motor with limit switches

Each state in the state machine should be a state in which the arduino will be for a time. Anywhere you would use a delay() or a blocking function or a busy loop will be a state. You can also use ...
ratchet freak's user avatar
2 votes
Accepted

Can you drive a stepper motor without the L293D

Depending on the type of stepper motor the answer can be "Yes" or "No". There are two types of stepper motor: Unipolar and Bipolar. Bipolar motors typically have 4 wires and require a H-bridge to ...
Majenko's user avatar
  • 105k
2 votes
Accepted

I need a good battery reccomendation

The L293D has about a 2.6V drop on the output pins. That means for a 3V motor you need to provide about 5.6v for it to run at full speed. 5V will work, but it will run slightly slow and underpowered. ...
Majenko's user avatar
  • 105k
2 votes

I would like to know why my four gear motors are rotating at different speeds when connected to 2 L293D motor drivers, controlled by the arduino

Pins 7 and 8 aren't PWM pins on the UNO. So when you call analogWrite on them with a value greater than 127 it defaults to digitalWrite and just writes those pins HIGH. Pins 6 and 9 are PWM pins, so ...
Delta_G's user avatar
  • 3,366
1 vote

What are the Vs and Vss pins on an L293D chip for?

As you can see in the linked L293D PDF VS is Supply Voltage (here connect the power source for motor) VSS is Logic Supply Voltage (here connect the power source for the L293D chip logic - usually the ...
gilhad's user avatar
  • 1,420
1 vote

what is the maximum number of servo motors that can be connected to a l293d motor shield?

As to the PDF Guide on page 19: How can I connect to the unused pins? The analog pins (analog 0-5 also known as digital pins 14-19) are broken out in the bottom right corner. Pin 2 has a small ...
chrisl's user avatar
  • 16.3k
1 vote

Adding L293D motor shield to Breadboard

Acknowledging that it is not exactly the answer to your question, the folks at Adafruit have written an excellent tutorial on breadboarding the raw L293D chip. Which may be a more compact option for ...
RowanP's user avatar
  • 869
1 vote

I need a good battery reccomendation

You could also use a 4 channel relay for making the motors work and they can be independent of using power from arduino and is really effective, I sometimes use it for high voltage optocoupling and ...
Ritesh Sharma's user avatar
1 vote
Accepted

L293D motorshield with batteries doesn't power Arduino

The problem was that the 2 pins on which the jumper sits, the jumper or the board was broken (idk exactly). I might've caused that myself by turning on the batteries + powering it through usb at the ...
Yestli's user avatar
  • 31
1 vote

Stepper motor not working as expected

Try lowering the rpm in the code. I had a similar issue with anything over about 18rpm using certain libraries with certain stepper motors.
rjuzzle's user avatar
  • 59
1 vote

L293D motor shield

No , your motor will actually get power from outside but the Servo Motor will be powered by arduino even if the jumper removed because the ln298 shield is mounted on the arduino.
M Aitesam 's user avatar
1 vote

L298N motor driver and battery issues

I give you credit for trying. In your spare time read some materials on basic electronics. I will see if I can help but no guarantee. he motor driver you are using has transistors as the driving ...
Gil's user avatar
  • 1,843
1 vote

L298N motor driver and battery issues

Rule #1 9V batteries a power supply they are NOT. In your case you are looking at small voltages for the motor power. Your choice of a driver is not the best as you will have from 1.2 to 2.4 volts ...
Gil's user avatar
  • 1,843
1 vote
Accepted

Motor does not work for a specific case when programming with L293D motor driver shield

On an UNO only certain pins are capable of PWM. Pin 12 is not one of them. When you try to call analogWrite with pin 12 it will recognize this and will simply call digitalRead for you with HIGH or ...
Delta_G's user avatar
  • 3,366
1 vote

Input current for L293D shield

Here the proper answer: The vast majority of devices are constant-voltage devices. They need a constant operating voltage to work correctly. Microcontrollers are such devices. When operating, they ...
chrisl's user avatar
  • 16.3k
1 vote

Any possible way to stack Motor Driver shield L293D with Xbee Shield v03 on arduino?

Read the documentation for both boards. They should list the pins used. Their associated libraries will define variables to which you can assign non-conflicting pins. Review the sample code provided ...
djsfantasi's user avatar
1 vote

DC motor phototransistor control

If you are using l293d you must control the voltage on its ENABLE PIN rather than controlling it on other INPUT PINS (l293d). Here is simple tutorial on controlling the Motor using L293d. here. And @...
Vaibhav's user avatar
  • 546
1 vote

DC motor phototransistor control

analogRead() returns an integer between 0 and 1023. Using 30 and 400 in the map() function, then passing in a value outside of that range will cause strange results. Here is a sketch to illustrate my ...
VE7JRO's user avatar
  • 2,558
1 vote

How to properly run four DC motors with an Arduino?

With out knowing the demands of the motors (how much current they need under a given load) it is difficult to answer your question. But, in most Arduino designs: Motors are powered independently of ...
st2000's user avatar
  • 7,340
1 vote

2 Motor Robot Control with RC Radio

From your code I would say, the problem lies within your loop function. The functions motorMoveForward() and motorMoveSide() are both over very quickly. But to actually move your motors need some time,...
chrisl's user avatar
  • 16.3k

Only top scored, non community-wiki answers of a minimum length are eligible