@@SINConsulting I actually managed to solve it just now! Started panicking too soon haha. Thanks a lot though and also thanks for the tutorials you upload. They are very helpful.
Hi, I was wondering if it is possible to do the same using a L293D motor shield attached to Arduino UNO. I have tried that but it seems I cannot control the spinning direction of the connected dc motor.
Hi Alexandru, I'm sure you definitely could, it would just require modifying the VI to send the appropriate signals to the L293D motor shield. This shield is a bit more complicated than the one I used in this example, so all that would be required is becoming familiar with its operation as explained here lastminuteengineers.com/l293d-motor-driver-shield-arduino-tutorial/ Then interpreting there code into LabVIEW using the LINX functions palette, so a bit of experimentation is required.
Hello again...How do you know the speed at a certain point on the duty cycle? My fan has 3 speeds on a little controller, where you have to manually control it. Which from the fan's spec I know what are mine CFM at Low, Med, and High. Since now that I am controlling it using the duty cycle which is from 0-1. Can you help me how to figure out the the speed?
Hello, at the 16.60 minute mark, i didnt see you control the fan speed, i just saw on/off only. Are you able to control the fan speed with the same code? how do you wire the motor to pin 9 with the duty cycle?
Hi Anh, that is because the motor is being controlled by a relay which is an 'electronic' switch, so all i am doing is turning the motor on and off. If you need to control speed and direction please use a H-Bridge circuit as I demonstrate in the first part of the video.
@@SINConsulting Hi, thanks for the quick response...I see that now. So, if I want to control on/off fan and speed at the same time, would the H-bridge work or the H-bridge is only for controlling seed and direction? because right now I am using an Arduino Relay connects to Arduino Omega and I can only turn the fans on/off. Please advise, Thank you much for your help.
@@SINConsulting First of all because you explained it in a very detailed and beautiful way and step by step. thank you. I've done all the installations and also used your .vi on github but I'm having problems controlling the engine. It responds late, the engine runs but does not react to the commands I give later. I am using clone arduino. 💖
Sure, there shouldn't be any delay in the VI because there is no timing functions in the while loop. So it's set to run as fast as your CPU can handle. A few things you could try to debug this issue is: 1. Make sure you are stopping the VI by only using the STOP button, do not use the Abort button because this sometimes can tie up the VISA resources; 2. Make sure the duty cycle is set correctly; 3. Re-upload the LINX/Hobbyist Firmware and try a different USB port; 4. Check your circuit to ensure everything is grounded properly. 5. Make sure you are not powering your MOTOR and DRIVER through the Arduino 5V, but through an external 5V power supply. Then try to run the example again, if it still doesn't work, try running the basic LINX blink example to see if that code runs without any issues. If it does, then the problem is with the motor controller VI you're using, which you might want to re-write again on your LabVIEW edition to test :) Otherwise, if that all fails please send me the VI you are using through my email listed on my YT channel and I'll take a look to make sure it's all fine.
@@SINConsulting Hello Sir, I did what he said one by one and checked it and there are no errors. I am using Labview 2020. I tried a different exit but still the engine does not work. If we come to the example of turning on the led, the led lights up late here and then the commands I give are not detected by the arduino and gives the error 5001 code. Both the LED and the motor work one time and they cannot perceive the commands I give later.
Great video, really helpful.
Glad it was helpful!
Would you be able to make a similar video for controlling a stepper motor with a driver like the TB6600?
Thanks for the suggestion :) I have already planned to make a stepper motor tutorial, so it should be out this year sometime.
@@SINConsulting do you happen to have a VI already? Im running into some problems with trying to control a stepper motor using LINX. :(
Feel free to email me, and I'll see if I can help. I'm only currently working on a pan-tilt servo VI.
@@SINConsulting I actually managed to solve it just now! Started panicking too soon haha. Thanks a lot though and also thanks for the tutorials you upload. They are very helpful.
@@YaseminTheBest Would you be willing to share how you solved this ? I'm in the same boat, trying to get a stepper to work with linx.
Hello sir . I have a doubt. I can observe only the vibration sound of my motor . Is not running. What might be the problem?
I would like to ask if we can read the motor encoder and display it on the LCD with LINX? Thanks!
Hi, I was wondering if it is possible to do the same using a L293D motor shield attached to Arduino UNO. I have tried that but it seems I cannot control the spinning direction of the connected dc motor.
Hi Alexandru,
I'm sure you definitely could, it would just require modifying the VI to send the appropriate signals to the L293D motor shield. This shield is a bit more complicated than the one I used in this example, so all that would be required is becoming familiar with its operation as explained here lastminuteengineers.com/l293d-motor-driver-shield-arduino-tutorial/
Then interpreting there code into LabVIEW using the LINX functions palette, so a bit of experimentation is required.
@@SINConsulting Thank you for your answer!
Hello again...How do you know the speed at a certain point on the duty cycle? My fan has 3 speeds on a little controller, where you have to manually control it. Which from the fan's spec I know what are mine CFM at Low, Med, and High. Since now that I am controlling it using the duty cycle which is from 0-1. Can you help me how to figure out the the speed?
How can i control it in 2 directions tho
thanks so much for this video, if only it worked with PID it would be A+, great.
love it, it was beneficial.
Thanks a lot !!
thank you very much
Hello, at the 16.60 minute mark, i didnt see you control the fan speed, i just saw on/off only. Are you able to control the fan speed with the same code? how do you wire the motor to pin 9 with the duty cycle?
Hi Anh, that is because the motor is being controlled by a relay which is an 'electronic' switch, so all i am doing is turning the motor on and off. If you need to control speed and direction please use a H-Bridge circuit as I demonstrate in the first part of the video.
@@SINConsulting Hi, thanks for the quick response...I see that now. So, if I want to control on/off fan and speed at the same time, would the H-bridge work or the H-bridge is only for controlling seed and direction? because right now I am using an Arduino Relay connects to Arduino Omega and I can only turn the fans on/off. Please advise, Thank you much for your help.
You can also turn the motor off with a H-Bridge by setting the Duty Cycle of the signal to zero :)
@@SINConsulting i should have read that lastminuteengineers site before asking questions...great article on the L298N...but thanks again...
loved it!!
Hi, I have followed all the steps, but the motor does not seem to be rotating when the Arduino code is compiled and executed. Can you help me out?
Hey mate, have you confirmed your circuit is correctly setup and powered ?
love your videos:-)
Glad you like them!
Nice.
Thank you! Cheers!
Thank you!!!!!!!!!!!
Can yow tell me with slow tutorial? Plis
Which part was too fast ? You can slow down the VI creation sections if you want to see it line by line.
God
Thanks for the feedback!
I can't understen.
ı have a some porblemes
Hi Busra, what issues are you having?
@@SINConsulting First of all because you explained it in a very detailed and beautiful way and step by step. thank you. I've done all the installations and also used your .vi on github but I'm having problems controlling the engine. It responds late, the engine runs but does not react to the commands I give later. I am using clone arduino. 💖
Sir, can you help me please ?
Sure, there shouldn't be any delay in the VI because there is no timing functions in the while loop. So it's set to run as fast as your CPU can handle. A few things you could try to debug this issue is:
1. Make sure you are stopping the VI by only using the STOP button, do not use the Abort button because this sometimes can tie up the VISA resources;
2. Make sure the duty cycle is set correctly;
3. Re-upload the LINX/Hobbyist Firmware and try a different USB port;
4. Check your circuit to ensure everything is grounded properly.
5. Make sure you are not powering your MOTOR and DRIVER through the Arduino 5V, but through an external 5V power supply.
Then try to run the example again, if it still doesn't work, try running the basic LINX blink example to see if that code runs without any issues. If it does, then the problem is with the motor controller VI you're using, which you might want to re-write again on your LabVIEW edition to test :)
Otherwise, if that all fails please send me the VI you are using through my email listed on my YT channel and I'll take a look to make sure it's all fine.
@@SINConsulting Hello Sir,
I did what he said one by one and checked it and there are no errors. I am using Labview 2020. I tried a different exit but still the engine does not work.
If we come to the example of turning on the led, the led lights up late here and then the commands I give are not detected by the arduino and gives the error 5001 code.
Both the LED and the motor work one time and they cannot perceive the commands I give later.
Hi.
Nice video.
But the link to github doesn't work:
GitHub: tiny.cc/yxjsbz9pm
Thanks for picking that up - here is the link to my GitHub: github.com/SINConsulting/LabVIEW-Basics