Это видео недоступно.
Сожалеем об этом.
DC Motor Control with a Joystick and L293D - Arduino Tutorials
HTML-код
- Опубликовано: 17 авг 2024
- This video covers controlling a DC Motor using an Arduino, a Joystick, and an L293D. Our program is able to control the speed of the motor by moving the joystick. I cover wiring and coding in the video.
This is a perfect beginner project for anyone learning to use an Arduino and should help you step into more advanced projects.
Thanks for watching and I look forward to seeing you next video!
Code and written tutorial linked below
thedesignspace...
- Logan
hi i'm brazilian your video liked it a lot i will subscribe and thanks, if you have any wrong phrase i used google translator because i don't speak english
Thanks for the video. I'm a new subscriber to your channel. I haven't tried the project yet but I'm very intrigued. I have a project in mind using dc motors requiring a 24v source. If you could possibly do a video on how this could be done, it would be much appreciated. Thanks for taking the time to try to help us green horns out with your videos. Please keep it up.
Everything works fine, but I have the feeling my dc motor goes or full speed or stands still and it doesnt seem to have different speed while slowly pushing the joystick forward?!
Code:
int joyX = 0;
int joyY = 1;
int joyValX;
int joyValY;
const int leftForward = 2;
const int leftBackward = 3;
const int rightForward = 4;
const int rightBackward = 5;
void setup()
{
Serial.begin(9600);
pinMode(leftForward , OUTPUT);
pinMode(leftBackward , OUTPUT);
pinMode(rightForward , OUTPUT);
pinMode(rightBackward , OUTPUT);
}
void loop()
{
joyValX = analogRead(joyX);
if (joyValX =550){
joyValX = map(joyValX, 550, 1023, 0, 255);
digitalWrite(leftForward , LOW);
digitalWrite(leftBackward , HIGH);
Serial.println(joyValX);
}
else if ((joyValX >450)&&(joyValX
Thank for the Video , the name of program you using in this , can you tell me ?
This was a very helpful video. Could you please include a link to the code that you used?
yes that would make it a lot easier
What program are you showing on screen?
There was a slight error in the code with the "+" at the end remove that and it should work
How would I include a SG92R servo in this code to control left and right with the servo?
Hello sir ... can u help me with a problem ?
the link to the code doesn't work.
ye there is something wrong i cant get to it