Thanks. I was pretty sure I knew what to do, but it's always nice to have a reference. This is exactly what I was thinking, 12V, l298n, and a limit switch. Cheers!
Hello Sir! Great videos that you're making! Please keep up the nice work. You helped me with the EasyDriver Stepper Control Video on a side project for my Bachelors Degree. I hope that your channel gets popular!
Number 750. lol As I get more time I feel your channel will be exceedingly helpful as I learn more about Arduino's for fun projects. As for now you are being quite helpful with my principles of measurement class. :-)
For someone as new as I am to this I have to say you were too quick in explaining wiring and too brief in the explanation of some terms. But I do appreciate your video.
@@ScienceFunInnovations Are you available on Instagram? If you would allow me to share your channel and let you know. I guess that would just make me a better friend of yours.
I added a schematic to my Facebook page: ruclips.net/user/redirect?redir_token=02jIURwDAyLgAtjWnW65wxRyDdl8MTU4NjgzNTUyNEAxNTg2NzQ5MTI0&q=https%3A%2F%2Ffb.me%2FScienceFun4u&event=channel_description Thanks for the feedback.
Hi, your video is so helpful for me. But I have one question. As I know, peak current of L298N is 2A. But your linear actuator's continuous current or stall current seem to exceed 2A. is it okay to use L298N?
thank u for cool video. i ahve a question that did you use any library manger? When I write your code, high and low couldn't be blue. Is it okay that high and low code is just normal? I hope you solve my question quickly!
dont know if you guys cares but if you're bored like me atm you can stream all of the latest movies on instaflixxer. Have been watching with my girlfriend for the last couple of days :)
Hi great video! I am following your instructions to make my own arduino-controlled linear actuator. Quick question, is it possible to burn out the L298N by accidentally leaving the switch in extend/retract position for a few minutes and forgetting to press the stop button? (Assuming your linear actuator has an automatic cut-off function). I think I may have burnt out my L298N!
Most actuators have automatic cut off on both ends, so that should not burn out the L298N. What could burn it out is if you actuator pulls more than 2 amps continuous or more than 3 amps momentary. Actuators under heavy force will pull more current. I may do a future video using a different motor control board that can handle more power.
@@ScienceFunInnovations Thanks for your reply! I figured out the issue, turns out I placed the L298N on a metal surface and the contacts on the bottom shorted out, causing the L298N to fail. Looking forward to that video!
Hi, great demo! I have a question, I'm using two wifi switches with my linear actuator with 4 relays, I would like to not use the relays and use something like this but with a raspberry pi or arduino. Can that be done?
Control will work with Rasperry Pi or Arduino, but you will need some sort of H-bridge or motor controller that is capable of handling the current of the actuator. The current can be much higher with higher loads, so you will want to make sure that the driver controlled by the Arduino can handle the load.
Thanks for the video very interesting. I am only just getting into electronics and would like to take this a step further, by being able to read an output from the linear actuator as to how far it is extended, then display this on a LCD screen and also have the ability to be able to stop the actuator in different memory positions. I want to use these to control to 600N 500mm linear actuators to make a sit stand desk.
I am planning on doing a video about linear actuator position control very soon. My part is scheduled to arrive from China in a week or two, then I hope to have the video out by the end of the month. Hit subscribe and turn on notifications so that you are alerted once it posts. Thanks for watching!
great video, i have a question, if I want to use linear actuator with encoder to control it at specific location or length, how may I know the range of it, can i use manual method by just supply power to it and read the encoder position from the beginning until the end of it?
Hi and thanks so much for this video! Is there such a way to make it so it works similar to a power window? Like hold the up button for 2 seconds and release to fully extend but make presses less than 2 seconds, a move and release? Also is it possible to make the stop button move the actuator to a specific position?
Yes, you could program it to be like a power window. Once the switch is pressed you record the timestamp using millis(). Then in your loop you would calculate elapsed time = millis() - timestamp. Once enough time has elapsed, you would check the switch again to set the mode to extend. Stopping in a specific position requires an actuator with a built in potentiometer (a bit more money) or an external linear position sensor. Once of these days I will do a video about it.
@@ScienceFunInnovations, let's assume I have an actuator with a built-in potentiometer, is it possible to move the actuator to a specific position using the L298N only? or I must involve the Arduino with some code?
@@itaycarpis9291 You would still need some simple code to keep track of the window position. You would use an analog input to measure the potentiometer position. That way you could have it go to specific positions. I will likely do a video about this in the future.
@Science Fun , thank you for the super quick answer :) Do you know maybe if there is a motor control that does the position fix without any external involvement, such as Arduino... Some motor control that gets the feedback from a potentiometer actuator signal as an input and fixes the position according to the required position.
I added a schematic to my Facebook page: ruclips.net/user/redirect?redir_token=02jIURwDAyLgAtjWnW65wxRyDdl8MTU4NjgzNTUyNEAxNTg2NzQ5MTI0&q=https%3A%2F%2Ffb.me%2FScienceFun4u&event=channel_description Thanks for the feedback.
There is a way to wire directly to the inputs without using pull-up or pull-down resistors if the microcontroller has resistors built in. Most of the newer Arduinos can do it without the resistors, but you may need to add a little more code. There are many articles about this if you search for it on the web. Cheers!
First I’d like to start off by saying I am a complete novice when it comes to this type of stuff. I’m wanting to put together a automatic chicken door opener. I have components from a lift chair which consist of a 24v dc linear actuator and power supply. I’m trying to figure out the best way to control this system and I’m wanting.
How can you input data ( measure) to extend to the right measurement e.x input 20mm the bar should increase 20mm exactly.. if you input new data they will adjust the previus measurement to the new data
Some actuators have built in position feedback sensors that can connect straight to an Arduino. These generally cost a bit more. Other options are to use an external linear potentiometer or an ultrasonic sensor. I'm hoping to cover this topic in a future video. Thanks for watching.
Yes. A DPDT would work as well. The motor control board allows for variable speed control (as well as automation if sensors are used instead of buttons).
EDIT: I Switched to my Arduino Mega and for some reaason everything works now. I'm getting frustrated here. I've been trying to measure the PWM signal from my tx input using the serial monitor. However, before I even turn on my tx, the serial monitor spits out random numbers, and when I turn the tx on, it still does the same. I double checked the code, which is exactly as you have it. I'm on pin 7, both in the sketch and on the Uno. I plugged a servo into several different channels as a test that they're working. I've tried this with my flysky fs-t6 in sticks mode as well as my tactic pistol controller. NOTHING works like it should in the video. What's going on here? I'm about ready to give up.
Can we make a circuit without using buttons such that if we program it in labview, one click will push it forward and another click er take it backwards?
G'day mate, question, if i were to incorporate this set up for an outboard/ jet nozzel steering system, how would i be able to make the actuator finish at the centre position (self centre) when there's no input signal. thank you in advance, Raymond from Sydney.
Great question. They do make actuators that have position feedback (usually a potentiometer) that you could feed into an Analog channel on the Arduino. Otherwise you would have to use some sort of position feedback system such as an LVDT.
@@ScienceFunInnovations thanks for your reply, I understand the theory, but do you reckon you could make a video on this project, also write the code for the arduino part as I am better with the building part, (not so good with the coding part) I am an electrician by trade. Thx.
I have had some similar requests for a video like that, so it is definitely on my to-do list. I'll have to order some parts first, but I do hope to do that video sometime in the next few months.
Good day. I would like to control a TGM7 series 24V 6A geared motor using a 24V DC motor controller (lithium battery) and Arduino. I would appreciate your help on this subject.
Hello sir good day. I have a question instead of controlling the linear actuator using three buttons, how can I automatically move the linear actuator based on input data from SD card? I hope you can help me
In order to sync the positions of the actuators, you need actuators with position feedback. Some of my new videos use these 5 wire actuators. You would still want 2 seperate motor controllers but you would use the position feedback from one actuator to control the other actuator.
Instead of using all these motor drives, Arduino, membrane button to control actuators, I have used DBDT (Double pole double throw) switch and I am able to control actuators.
I am attempting to do this except using a FlySky i6x and wanting to control the actuator with the 3 position switch. I can get the actuator to extend, but not retract. I'm sure it's in the code. Thoughts?
How can I supply 12V to the linear actuator while still utilizing the Arduino? I need to establish an upper limit (extend 3.5") for the actuator and I need to supply all 12V as I will be maxing out the weight capabilities of my actuator. Its rated for 225lb with a 4" stroke, I need to lift 215lbs 3.5"
Does you actuator have a max current rating? If it pulls more than about 3 amps at full load, you may need to use something stronger like a motor controller similar to this one ebay.to/2yrsTjn
The L298N is limited to about 3 amps. You may want a more heavy duty controller if you intend to have high loads/forces. But they all pretty much work the same way. Just find out how many amps the actuator uses under full load first, then select a motor control board that can handle the power draw. Cheers!
@@ScienceFunInnovations, thank you, that is great info. I have a project, that I am trying to figure out, and new to Arduino. Researching all the parts to see what is best. Im basically making power windows with auto up and down when you hit the switch. I just dont have it figured out yet, then I want to update the switch to a GPS module so the motor would run one way at a certain speed and the other at a certain speed. Its for a retractable rear spoiler on a car.
@@MattG101680 The are GPS modules compatible with Arduino. You would probably need to convert the speed text string from the GPS into a number on the Arduino and then just run a simple if statement. You also may want to add a time condition so that it doesn't keep going up and down if you are cruising right at the trigger speed. Good luck!
@@ScienceFunInnovations, thats kind of what I was thinking, I thought id make it go down at 25 and up at 30. I have the GPS module on order, I thought maybe getting it set up by switch first is smart and then switch it to the GPS as the switch
Hi …I want to control a dc motor making it rotate 10 times forward then pause for 3 seconds and rotate 10 times backward…. this rotation cycle back and forth will be repeated automatically 20 times exactly like the washing machine. What I need to do that?
You could do that with a stepper motor ruclips.net/video/aKxi7B4-d2U/видео.html or else you would need a motor with position feedback such as an encoder.
You could set it up in a 3 second loop that alternates between extend and retract mode. Start by deleting the code related to the buttons and just use the extend and retract commands. Good luck.
How do we contact you with out going to facebook? Looking to see if you would be willing to support the design for a controls system that is too long to describe here? Thanks In Advance Todd
I just added an email address in the "About" section on my RUclips channel. If nothing else, I could read about your idea and possibly give some suggestions.
That’s got to be the clearest presentation of this ever.
Glad you liked it. Thanks for watching!
Thanks. I was pretty sure I knew what to do, but it's always nice to have a reference. This is exactly what I was thinking, 12V, l298n, and a limit switch. Cheers!
Glad I could help!
Hello Sir! Great videos that you're making! Please keep up the nice work. You helped me with the EasyDriver Stepper Control Video on a side project for my Bachelors Degree. I hope that your channel gets popular!
Glad I could help. Good luck with you B.S.
Number 750. lol As I get more time I feel your channel will be exceedingly helpful as I learn more about Arduino's for fun projects. As for now you are being quite helpful with my principles of measurement class. :-)
Awesome, thank you for subscribing!
For someone as new as I am to this I have to say you were too quick in explaining wiring and too brief in the explanation of some terms. But I do appreciate your video.
Glad it helped. I have a few other linear actuator videos that may help fill in some of the gaps.
That's a really good video. Keep Up the Work Sir. I'm Kinda Interested in these stuffs and look forward to your support.
Much appreciated!
@@ScienceFunInnovations Are you available on Instagram? If you would allow me to share your channel and let you know. I guess that would just make me a better friend of yours.
Great ones. I would like to know which is the name of the three button switch
It is called a membrane switch.
Hi, a good demonstration. A schematic for the wiring would be helpful.
I added a schematic to my Facebook page: ruclips.net/user/redirect?redir_token=02jIURwDAyLgAtjWnW65wxRyDdl8MTU4NjgzNTUyNEAxNTg2NzQ5MTI0&q=https%3A%2F%2Ffb.me%2FScienceFun4u&event=channel_description
Thanks for the feedback.
That's great, thanks very much. I'll be using this in the next couple of weeks to steer a mobility scooter base via remote control -- hopefully.
Hi, your video is so helpful for me. But I have one question. As I know, peak current of L298N is 2A. But your linear actuator's continuous current or stall current seem to exceed 2A. is it okay to use L298N?
I would use a BTS7960 if there was any load. It is good to 43 Amps and is still affordable.
@@ScienceFunInnovationsHow would I get 12V from my arduino into the L298N and into my Linear actuators
thank u for cool video.
i ahve a question that did you use any library manger?
When I write your code, high and low couldn't be blue.
Is it okay that high and low code is just normal?
I hope you solve my question quickly!
I try not to use any libraries if I can help it. Check out some of my other actuator videos to learn more.
Excellent code and explanaition my friend, it was really helpful. :) Keep doing this kind of videos. Greetings from Mexico
Gracias, lo haré!
dont know if you guys cares but if you're bored like me atm you can stream all of the latest movies on instaflixxer. Have been watching with my girlfriend for the last couple of days :)
@Otto Louis yea, I have been watching on instaflixxer for since december myself =)
@Otto Louis Yea, I've been watching on instaflixxer for months myself :D
Always interesting ideas to get inspiration in the Arduino community thanks for sharing.
No problem 👍
Hi great video! I am following your instructions to make my own arduino-controlled linear actuator. Quick question, is it possible to burn out the L298N by accidentally leaving the switch in extend/retract position for a few minutes and forgetting to press the stop button? (Assuming your linear actuator has an automatic cut-off function). I think I may have burnt out my L298N!
Most actuators have automatic cut off on both ends, so that should not burn out the L298N. What could burn it out is if you actuator pulls more than 2 amps continuous or more than 3 amps momentary. Actuators under heavy force will pull more current. I may do a future video using a different motor control board that can handle more power.
@@ScienceFunInnovations Thanks for your reply! I figured out the issue, turns out I placed the L298N on a metal surface and the contacts on the bottom shorted out, causing the L298N to fail. Looking forward to that video!
Hi, great demo! I have a question, I'm using two wifi switches with my linear actuator with 4 relays, I would like to not use the relays and use something like this but with a raspberry pi or arduino. Can that be done?
Control will work with Rasperry Pi or Arduino, but you will need some sort of H-bridge or motor controller that is capable of handling the current of the actuator. The current can be much higher with higher loads, so you will want to make sure that the driver controlled by the Arduino can handle the load.
@@ScienceFunInnovations Thank you for replying, I new to both the Arduino and Raspberry, I did order an H bridge. Thanks again!
Thanks for the video very interesting. I am only just getting into electronics and would like to take this a step further, by being able to read an output from the linear actuator as to how far it is extended, then display this on a LCD screen and also have the ability to be able to stop the actuator in different memory positions. I want to use these to control to 600N 500mm linear actuators to make a sit stand desk.
I am planning on doing a video about linear actuator position control very soon. My part is scheduled to arrive from China in a week or two, then I hope to have the video out by the end of the month. Hit subscribe and turn on notifications so that you are alerted once it posts. Thanks for watching!
great video, i have a question, if I want to use linear actuator with encoder to control it at specific location or length, how may I know the range of it, can i use manual method by just supply power to it and read the encoder position from the beginning until the end of it?
Yes you can. Check out my more recent videos to see how to do that.
Thank you for your vidio, i wonder part name of the switch(?)
Please let me know !
It is called a 1X3 Membrane Switch. I purchased mine from Ebay ebay.to/2RXWxUk
@@ScienceFunInnovations what is the size of this I linked and saw 1*3key 36*55 mm one
@@ScienceFunInnovations is it?
Hi and thanks so much for this video! Is there such a way to make it so it works similar to a power window? Like hold the up button for 2 seconds and release to fully extend but make presses less than 2 seconds, a move and release? Also is it possible to make the stop button move the actuator to a specific position?
Yes, you could program it to be like a power window. Once the switch is pressed you record the timestamp using millis(). Then in your loop you would calculate elapsed time = millis() - timestamp. Once enough time has elapsed, you would check the switch again to set the mode to extend.
Stopping in a specific position requires an actuator with a built in potentiometer (a bit more money) or an external linear position sensor. Once of these days I will do a video about it.
@@ScienceFunInnovations, let's assume I have an actuator with a built-in potentiometer, is it possible to move the actuator to a specific position using the L298N only? or I must involve the Arduino with some code?
@@itaycarpis9291 You would still need some simple code to keep track of the window position. You would use an analog input to measure the potentiometer position. That way you could have it go to specific positions. I will likely do a video about this in the future.
@Science Fun , thank you for the super quick answer :)
Do you know maybe if there is a motor control that does the position fix without any external involvement, such as Arduino...
Some motor control that gets the feedback from a potentiometer actuator signal as an input and fixes the position according to the required position.
@@itaycarpis9291 There may be some that use limit switches, but I'm not sure if there are any with position control.
A schematic would really help. Please upload that. Thank you so much.
I added a schematic to my Facebook page: ruclips.net/user/redirect?redir_token=02jIURwDAyLgAtjWnW65wxRyDdl8MTU4NjgzNTUyNEAxNTg2NzQ5MTI0&q=https%3A%2F%2Ffb.me%2FScienceFun4u&event=channel_description
Thanks for the feedback.
Nice video! I like that you explain everything!
Glad you liked it!
What do the resistors do for the switches? What do you mean by “pull up resistors”? Can’t the switch just wire directly to the input?
There is a way to wire directly to the inputs without using pull-up or pull-down resistors if the microcontroller has resistors built in. Most of the newer Arduinos can do it without the resistors, but you may need to add a little more code. There are many articles about this if you search for it on the web. Cheers!
First I’d like to start off by saying I am a complete novice when it comes to this type of stuff. I’m wanting to put together a automatic chicken door opener. I have components from a lift chair which consist of a 24v dc linear actuator and power supply. I’m trying to figure out the best way to control this system and I’m wanting.
It would be similar, but you would probably want a stronger motor controller. Good luck!
I thought we have to use BTS7960B 43A or similar. will L298N be enough?
Depends on the load on the actuator and the current draw. For heavy loads, use the BTS7960B. I will be using the BTS7960B in an upcoming video.
How can you input data ( measure) to extend to the right measurement e.x input 20mm the bar should increase 20mm exactly.. if you input new data they will adjust the previus measurement to the new data
Some actuators have built in position feedback sensors that can connect straight to an Arduino. These generally cost a bit more. Other options are to use an external linear potentiometer or an ultrasonic sensor. I'm hoping to cover this topic in a future video. Thanks for watching.
Thanks for sharing! Great video format and content
Thanks for watching!
could you not do the same with a dpdt switch plus relays if you wanted to be easy on on the switch?
Yes. A DPDT would work as well. The motor control board allows for variable speed control (as well as automation if sensors are used instead of buttons).
@@ScienceFunInnovations I understand actuators are pretty neat
EDIT: I Switched to my Arduino Mega and for some reaason everything works now.
I'm getting frustrated here. I've been trying to measure the PWM signal from my tx input using the serial monitor. However, before I even turn on my tx, the serial monitor spits out random numbers, and when I turn the tx on, it still does the same. I double checked the code, which is exactly as you have it. I'm on pin 7, both in the sketch and on the Uno. I plugged a servo into several different channels as a test that they're working. I've tried this with my flysky fs-t6 in sticks mode as well as my tactic pistol controller. NOTHING works like it should in the video. What's going on here? I'm about ready to give up.
That is weird that it worked on the Mega but not the Uno. Did you have any breakthroughs on what was wrong?
Can we make a circuit without using buttons such that if we program it in labview, one click will push it forward and another click er take it backwards?
Definitely yes. The button is just one easy way.
Where I got this button, please give the link
I get my on eBay. Here is the link ebay.to/2RXWxUk
is it possible if we want to implement linear actuator for sliding a door (house) not a smaller one?
Yes. They come in all sorts of lengths.
G'day mate, question, if i were to incorporate this set up for an outboard/ jet nozzel steering system, how would i be able to make the actuator finish at the centre position (self centre) when there's no input signal. thank you in advance, Raymond from Sydney.
Great question. They do make actuators that have position feedback (usually a potentiometer) that you could feed into an Analog channel on the Arduino. Otherwise you would have to use some sort of position feedback system such as an LVDT.
@@ScienceFunInnovations thanks for your reply, I understand the theory, but do you reckon you could make a video on this project, also write the code for the arduino part as I am better with the building part, (not so good with the coding part) I am an electrician by trade. Thx.
I have had some similar requests for a video like that, so it is definitely on my to-do list. I'll have to order some parts first, but I do hope to do that video sometime in the next few months.
Special thanks to you.
Glad you liked it.
What is the name of the remote control with 3 buttons?
Could you tell me the name or purchase link of that part?
It is called a 1X3 Membrane Switch. Here is a link ebay.to/2RXWxUk
@@ScienceFunInnovations thank you very much
Good day. I would like to control a TGM7 series 24V 6A geared motor using a 24V DC motor controller (lithium battery) and Arduino. I would appreciate your help on this subject.
What exactly are you needing help with? You could send an email to my business email with details.
hi can u help me with the circuit and code if i added hc 06 bluetooth module
You can send more details to my business email sciencefunbiz@gmail.com and I can see what I can do to help. Thanks for watching!
@@ScienceFunInnovations How can i control linear actuator without using these 1x3 membrane switches?
Hello sir good day. I have a question instead of controlling the linear actuator using three buttons, how can I automatically move the linear actuator based on input data from SD card? I hope you can help me
You would just do a read command to get the new position value, then set that to the current position as is done in some of my other actuator videos.
can you please give the link to the video so I can refer to the video
@@ScienceFunInnovations
Hello sir, want to ask how about connection two linear actuators and syncing the movement of the linear actuator?
In order to sync the positions of the actuators, you need actuators with position feedback. Some of my new videos use these 5 wire actuators. You would still want 2 seperate motor controllers but you would use the position feedback from one actuator to control the other actuator.
Please reply...I have a 24v 6 amp linear actuator can I use L298N Motor drive or do I need to use more powerful motor drive?
L298N is only good to about 3 amps. I would use a BTS7960.
Instead of using all these motor drives, Arduino, membrane button to control actuators, I have used DBDT (Double pole double throw) switch and I am able to control actuators.
I am attempting to do this except using a FlySky i6x and wanting to control the actuator with the 3 position switch. I can get the actuator to extend, but not retract. I'm sure it's in the code. Thoughts?
Probably in the code. I have several videos about controlling linear actuators, hopefully one of those gives you some good ideas.
How can I supply 12V to the linear actuator while still utilizing the Arduino? I need to establish an upper limit (extend 3.5") for the actuator and I need to supply all 12V as I will be maxing out the weight capabilities of my actuator. Its rated for 225lb with a 4" stroke, I need to lift 215lbs 3.5"
Does you actuator have a max current rating? If it pulls more than about 3 amps at full load, you may need to use something stronger like a motor controller similar to this one ebay.to/2yrsTjn
@@ScienceFunInnovations 4.6A. I have a L298N as well
Can I just use any Linear Actuator with the L298N Motor Control Board? or there are specific linear actuators?
The L298N is limited to about 3 amps. You may want a more heavy duty controller if you intend to have high loads/forces. But they all pretty much work the same way. Just find out how many amps the actuator uses under full load first, then select a motor control board that can handle the power draw. Cheers!
Hmm, this basic simply code in arduino and drive have same function as only 2-pole switch with blind position in middle.... :)
Pretty much, but you can also change the speed with this setup. Thanks for watching.
Hi sir , if want to make this linearmotor system to move automatically, how to do it?
I have some other videos on my channel that do that. Check them out.
I was wondering if the code was available to download?
Here it is:
const int Retract_button = 2;
const int Extend_button = 3;
const int Stop_button = 4;
const int Extend = 10; //Connect to L298N Pin In1
const int Retract = 9; //Connect to L298N Pin In2
void setup() {
pinMode(Retract_button, INPUT);
pinMode(Extend_button, INPUT);
pinMode(Stop_button, INPUT);
pinMode(Extend, OUTPUT);
pinMode(Retract, OUTPUT);
digitalWrite(Extend, LOW);
digitalWrite(Retract, LOW);
}
void loop() {
if(digitalRead(Retract_button)==LOW) {
digitalWrite(Retract, HIGH);
digitalWrite(Extend, LOW);
}
if(digitalRead(Extend_button)==LOW) {
digitalWrite(Retract, LOW);
digitalWrite(Extend, HIGH);
}
if(digitalRead(Stop_button)==LOW) {
digitalWrite(Retract, LOW);
digitalWrite(Extend, LOW);
}
delay(250);
}
@@ScienceFunInnovations thanks 4 beautiful code with beautiful project 😍😍😍
engine speed can be increased???
The motor controller can allow you to change the voltage, which changes the speed.
안녕하세요 혹시 아두이노 메가로 변경하면 핀 번호가 달라져야 하나요?
Mega는 Uno와 동일한 핀을 가지고 있어야 하며 더 많은 핀이 있어야 합니다.
Is there any way of doing this without a motor driver
Yes. You can do it with a dpdt switch.
Can a raspberry pi be used instead of the arduino?
Yes. The pi can do digital inputs and outputs, but at 3.3V instead of 5V. Most motor controllers will work with the lower voltage.
What is the benefit of using this board over a relay board?
With this board, you can adjust the speed. With a relay it is either full on or full off.
@@ScienceFunInnovations, thank you, that is great info. I have a project, that I am trying to figure out, and new to Arduino. Researching all the parts to see what is best. Im basically making power windows with auto up and down when you hit the switch. I just dont have it figured out yet, then I want to update the switch to a GPS module so the motor would run one way at a certain speed and the other at a certain speed. Its for a retractable rear spoiler on a car.
@@MattG101680 The are GPS modules compatible with Arduino. You would probably need to convert the speed text string from the GPS into a number on the Arduino and then just run a simple if statement. You also may want to add a time condition so that it doesn't keep going up and down if you are cruising right at the trigger speed. Good luck!
@@ScienceFunInnovations, thats kind of what I was thinking, I thought id make it go down at 25 and up at 30. I have the GPS module on order, I thought maybe getting it set up by switch first is smart and then switch it to the GPS as the switch
Hi …I want to control a dc motor making it rotate 10 times forward then pause for 3 seconds and rotate 10 times backward…. this rotation cycle back and forth will be repeated automatically 20 times exactly like the washing machine. What I need to do that?
You could do that with a stepper motor ruclips.net/video/aKxi7B4-d2U/видео.html or else you would need a motor with position feedback such as an encoder.
Also you could use an easydriver ruclips.net/video/nafoHAhz8Ys/видео.html
hai, how to make it move automaticly? like every 3 second actuator will change direction. i need for science project, sorry for bad english hahah
You could set it up in a 3 second loop that alternates between extend and retract mode. Start by deleting the code related to the buttons and just use the extend and retract commands. Good luck.
Did u upload your code anywhere?
Sorry, I can't seem to find it for that one.
How do we contact you with out going to facebook? Looking to see if you would be willing to support the design for a controls system that is too long to describe here? Thanks In Advance Todd
I just added an email address in the "About" section on my RUclips channel. If nothing else, I could read about your idea and possibly give some suggestions.
Sir why you use that white board?
I did that video a long time ago, what white board?
Thanks but it would be nice if you put the code on github and put a link in the description or us
I don't have that code anymore, but from now on I will be posting much of my codes.
@@ScienceFunInnovations thanks. And thanks for the video. I got my first linear actuator working thanks to you
Code isn't working
What error are you getting?