If you use interupt functions, the arduino would respond to the proximity sensors faster. Your program has to loop the complete program to read a sensor. An interupt function waits in the background for a signal on the pin, as soon as that condition is met, the main program is stopped, the interupt subprogram runs, and the main program resumes on completion of the interupt program.
@rgb_led4 жыл бұрын
great advice
@travism20132 жыл бұрын
While I'm not coming from CNC background or anything (java developer) I've learned python and I'm looking at controlling DC motors for doing semi-heavy lifting (can't physically hold a 3ft x 4ft plywood for a long time for my dad when he asks me for help holding heavy things, concrete bags, etc.) so I find this helpful from Arduino controller perspective. Thanks for making this video, glad I found someone who works on heavier side of machinery and machining using Arduino or Raspberry Pi.
@jmarcinho2 жыл бұрын
Great. This just opened a whole new world of possibilities in my woodworking shop. Thanks
@AccelHeight9 жыл бұрын
Outstanding find! I'm toying with the idea of making a motorized camera slider and this is exactly what I needed to see! Thank you!
@TeamCandiru6 жыл бұрын
Gotta say, you have a real gift for explaining complex concepts.
@EVguru10 жыл бұрын
We did a project at work a few years ago that used one of those motor controllers. It was a machine to brush over wheat plants in a glasshouse and stimulate the stems to thicken and stiffen. The raw data byte sent to the controller is indeed 0-255, but the Arduino library must be shifting the value to make it easier to understand.
@EVguru10 жыл бұрын
NYC CNC We used a power supply. There was just a single motor with worm drive gearbox, which may have been as small as 100Watt, certainly not over 250Watt.
@MrLoadsalot9 жыл бұрын
EXCELLENT VIDEO, one of the most technically correct, well done videos that I have Seen! Keep up the GOOD WORK!
@RossDuClair7 жыл бұрын
Good work, John. My use is for an Arduino controlled drill press: I want to input the material, thickness of the material, size of the drill; input SFPM, RPM. Then I will input the total drill movement down. From there, on Start Command, the Arduino starts the motor, begins lowering the chuck, begins drilling, stops when through the metal, stops, reverses the motor, and retracts the chuck to the start position and then stops the motor. I will align the drill with the center punch start marker manually. What do you think?
@RichardFortin777 жыл бұрын
Good day, this is EXACTLY what I am trying to build for my CNC automation installation; but I am using an Ethernet Smooth Stepper with Mach4 and Gcode. Thank you for your presentation, it helps a lot !
@ytnjw7 жыл бұрын
Hi John, great video, but I think there is a problem with the code. Because you are sending the motor speed (ST.motor(1,ForwardSpeed)) and then setting the variable used (ForwardSpeed =) the new speed is not getting sent to the motor until the next time through the loop. Move the ST.motor line to the bottom of the block.
@Stacyjtyler8 жыл бұрын
You could also try putting the input pins from the sensors on the Interrupt pins. In doing so it won't finish its cycle actually reverse the motor in the ISR interrupt service routine.
@damianbutterworth24349 жыл бұрын
They have overtook my life. Being a programmer in the 1980`s these are just what I was after. At the minute I have a mega that does the door bell, tells me when post is here, buzzies when the gate is open, tells me when theres a power cut, waters my plants, alarm for the workshops, and just got the rain sensor on a servo motor to drip the rain away to bring the washing under cover when it rains (UK).
@TAWPTool10 жыл бұрын
I'm anxious to see the application of this setup in your shop. Keep these great videos coming!
@keinewoo10 жыл бұрын
You can try to attach the sensors to de arduino interrupts, it will help you a lot.
@MyShopNotes10 жыл бұрын
Nice widget John. I really like these arduino lessons.
@bernierider65649 жыл бұрын
Yes Sir, I was wondering if you had a video on how to create a controller for a bldc with 12v and up to 40 amps. I am only looking to make it rotate and control speed. Thanks
@leblancmeneses36506 жыл бұрын
I have worked with this sensors in many applications. The best way to mount them is to detect the side of the hammer so that any over travel will not damage the sensor.
@iSAAConrad8 жыл бұрын
Could initialize direction as 1 or -1 and have speed controlled by one pot instead of two. When you touch sensor it would multiply the direction state by -1 so switching direction. Just in case you wanted one pot instead of two giving matched speed in fwd and reverse.
@goesintite9 жыл бұрын
This has probably been mentioned but, you can get adjustable proximity sensors that could help avoid any contact at all. Great video, by the way.
@marcioazevedo89406 жыл бұрын
Congratulations ! this code could be used to: push the button and start the engine and it stops at the end of course? and when it rings again does it return to the other end of the course?
@steamboatmodel10 жыл бұрын
Have you looked at the Adafruit motor control shield or the Tiny G CNC control board. Gerald.
@InventionTherapy7 жыл бұрын
Do all Arduinos use Atmel chips?
@georges84087 жыл бұрын
very nice! it would be very interesting if you can use visuino in making the code and connections since many of us are not very familiar with programming. thanks
@MehmetSutas10 жыл бұрын
The reason for hitting the sensors maybe caused by the backlash in the transmission rather than the response speed of the electronics. Nice video thanks.
@bigbread900000010 жыл бұрын
Hi, I think all your video's are great and I salute you for putting this knowledge out there for everyone who follows. I am a beginner at Arduino and motor control, I was wondering how you can incorporate a start/stop button for all these projects?
@rudifrosty46969 жыл бұрын
Nick, at the end of your video when you talk about different motors, I noticed in the background the hammer with it's weight coming down to the right,....it looks like it falls an inch or so....or is it just my eyes :) ? ....if so, does that mean the weight is too much for this motor on the "braking part" when the weight comes down?
@Loopyengineeringco9 жыл бұрын
There is probably quite a lot of rotational mass in that motor, and since it's actually turning at about 3600rpm full speed, I'm not surprised that it hits. The arduino has probably sent the 'reverse' signal a long time before the shaft starts spinning backwards :) I did a similar thing using a h-bridge BTS7960 driver controlling an automotive window winder motor (it was for a motorised camera slider rig), and even that little thing has too much inertia to stop and reverse instantly. BTW the 43A BTS7960 drivers on ebay are under $10, but the difference is that the arduino has to do the switching not the driver, and there's no comms between the 2 devices.
@mosesarambula2090 Жыл бұрын
This is the first video I've seen of yours, I do plan on watching more but can you not have a low speed - high torque brushless DC motor in the 3000wat range?
@lErssikeke8 жыл бұрын
Thank you for this video! Now I'm confident enough to order SyRen 50A, because now I know that I can use the simplified library if all else fails. Instant subscribe
@im1forfun9 жыл бұрын
I liked the comment about rotating the prox switches by 90 degs. However if this wasn't possible, Allen Bradley makes strike face sensors with spring loaded mounts. Expensive? Yes! But they hold up well in industrial applications and are immune to water and oil. ( all s/s steel construction). Dc industrial drives also include nice features such as accel/decel rates as well as braking features which will lock the rotor instantly. My preference for motors are 3 phase brushless as employed in industrial as well as rc planes and cars. Great technology! They are not as torquey as dc motors but with gear reduction that could be resolved. I've been working with Maestro servo controllers that have programmable ports, input/output/pwm allowing you to do quite a lot of combinations with 6, 12 or 18 channels. The software has a built in compiler as well! They are available from Pololu as a very reasonable price as well as a host of other devices for steeper motors and jrk controllers. Industrial servos are by far the best for cnc applications but the price keeps them off my workbench. Thanks for taking the time to post your videos and keep them coming.
@RobotoForgoto10 жыл бұрын
I have two motors i need to power - they are 12volts but i'm not sure the amperage. i need two channels. i can't imagine needing more later. the unit is a Quantum Q6 Edge. so far your information looks good and i will proceed based on it. we will let you know how we get on. Thanks for the great videos.
@TheArtusritter10 жыл бұрын
nice. Have you tried using interrupts for the proximity sensors?
@fromnewark10 жыл бұрын
Which proxi sensor did you use.? Checked your site but could not find a link to the project there. Thanx.
@Mtmonaghan7 ай бұрын
I suggest you use pdi to stop contact with the sensor
@ppowell12123 жыл бұрын
Thanks for the video. I'm run a theatre and I'm trying to do some simple automation. A platform with a powered motor that glides into place either via RC or stoppers, encoder or similar. It would be a staight shot (no turning) and I would guess the total weight to be around 300-600 lbs total. Could a system similar to this help me control it?
@joshuasmith28147 жыл бұрын
Do you have any experience with SPARK MOTOR CONTROLLER? I'm planning to use it instead of SyRen. It is up to 60A and the price is 1/3 ($40) of SyRen.
@SagiSokra9 жыл бұрын
Hi John - Great video. One thing that I've noticed, but I'm not sure if it is just the angle of the video recording. It looks like the hammer touches the right sensor more than the left sensor. Maybe it's also a matter of differences in sensitivity of the two sensors, or the iron material that you used on each side of the hammer? Did you try adjusting the baud rate? If so, did it work?
@Mr0o0o0o0o0o0o0o02 жыл бұрын
im intrested in building a electric boat engine (~90A @ 380V 3fase [ish 120hp equivalent ]) but i have no idea where to start with a the controle cards, so my idea is to have a arduino for the base line controle system and work from there, but for motor shield im looking for a nodd in the right direction....
@ProStreetFalcon15 жыл бұрын
I really would like to have more info on this video! Video describes photo of layout & MOST important is the final CODE. Please help as i want to build one of there. Thank you.
@storyboarddave58607 жыл бұрын
Hey why not use the Arduino to send a PWM signal through a $18.00 BTS7960 H bridge? I used the PWM.h library to get a higher PWM rate . Works good so far.
@powaybob10 жыл бұрын
Great stuff! You could mount the proxes at 90 degrees so the hammer passes by them instead of pounding them.
@danmcroskey24927 жыл бұрын
I joined the nyccnc site but could not find the code and wiring diagrams for this project (Control Large DC Motors with Arduino! SyRen Motor Driver Tutorial). Could you provide a link to them?
@peterknudsentupni10 жыл бұрын
You need to read the sensors in an interupt, newer place sensors in the way at the moving part, place it on the side or use a smal flag that bend in case of coding error. cool project ;)
@maxwellrobinson29246 жыл бұрын
Now if you wanted to do this with a battery instead of a P/S, how would you connect a battery management system into this?
@bobbyparham42536 жыл бұрын
Can I use a setup like this to control a Electronic Throttle actuator to act like a governor?
@balajikaliyamoorthy3283 жыл бұрын
Great video! . The Arduino Code page is not found. could you please reupload that code page in your link.
@musicj4fun3 жыл бұрын
One question: I am driving a hoist motor (220V single phase) with an Arduino board and a relay module. I specify that the relay has its own independent power supply (I removed the jumper Vcc - JD Vcc) and everything seems to work perfectly if I test the relay system without the motor being powered and started. Unfortunately, in a completely random and rare way, when the motor is activated via the relay, the Arduino turns off and resets itself. As I'm not an expert, I believe that there is a huge voltage drop that occurs at startup and this causes the Arduino to lack sufficient power. What can be done to stabilize everything? Thanks for any suggestions
@AustBanjobrothers8 жыл бұрын
can I use this for twin 200 watt motors 12 volt golf trolley? What do I need? I want remote control feature as well. I have an old electric trolley with damaged electric controller and lost remote. I dont want to spend $2000 on new trolley.
@neondabo6 жыл бұрын
Awesome! Keep em coming. Just what I was looking for.
@adamkhattab4 жыл бұрын
the code isn't on the website anymore
@theguapochannel9 жыл бұрын
Hey awesome video. ...I wonder if you can advise me... i have a 36 volt 350 watts DC motor. Im really new to this game..Just want to find out how can i best controll the direction of the motor(forward, backward,stop) and or throttle, what batteries to use, the amperage...Hopefully its not too complicated. Thanks... Keep up good work
@rigsnz7 жыл бұрын
They say on the website for the Syren not to hook up to a cheap power supply, run a battery in series. Is their another option?
@steamboatmodel10 жыл бұрын
Hi John have you done anything with the Adafruit motor shield or the Tiny G CNC controller board. Regards, Gerald
@KW-ei3pi4 жыл бұрын
Awesome John! I have a 50 year old Bridgeport with factory power table feed. The motor is 4 wire DC. I would like to replace the old circuit board with arduino. Any suggestions on where I can get help doing this? Thank you so much!
@mattivirta Жыл бұрын
4 wire, i think have stepper motor not DC motor sure. or if you can run motor DC volt to 2 wire only have DC motor whit reserve coils, or somethink special motor.
@tonybs44227 жыл бұрын
Hello. Thanks for the great video! i am new in Arduino's and you really helped me with this demonstration! Great work!
@CrazyFrog12087 жыл бұрын
Can you program two motors as x and y axis within the same programing
@Mircose7 жыл бұрын
Nice channel, I'm happy I found it. I'm starting to learn arduino now and I'm starting a project.. but I am so clueless with regards to motors and voltages. If I needed to lift a 80kg weight, what type of motor do I need? what is the difference between this motor and a stepper motor? Thank you...
@robcloud8 жыл бұрын
I am to us an Arduino on a steering system on a riding mower. I am using a large 12 volt brush motor to turn the steering. I was watching your video with the prox switches. Can the Arduino be setup and coded to use 3 proxs? 2 for steering limit and one for center? I know nothing about the Arduino and would need help with the code too. Here is a link to the first one I built:
@SpecialEDy8 жыл бұрын
Rob Cloud use a stepper motor or servo, the arduino can tell it exactly where to go without needing any sensors. Arduino sends pwm of 50%, motor turns to dead center. 0%pwm, -90°. 100% pwm, +90°. And anywhere in between. For a regular DC motor, you need a absolute rotary encoder. It will tell the arduino exactly how many degrees the motor is rotated. Incremental encoder might get errors over time.
@chipcash8 жыл бұрын
Is that a perm mag brushed motor? Is 12vDC the max voltage for motor?
@davidsellars38516 жыл бұрын
Hi I have a project using the same hardware, smaller motors. Do you have any programs that would work with: I need to move two panels in sequence. They will be driven by DC powered motors on rack gears. I have everything built and now need to move it. Have you programmed anything similar to the following Any help would be much appreciated The sequence of movements: sequence: 1- Phone rings or up button pushed 2- upper cover panel slides to open position and stops (proximity sensor) 3- lower table moves to upper position and stops (Proximity sensor) Panels will stay in thse positions unless option 4 is pushed. This will put the unit back in waiting for sequence 1. 4- optional: down button pushed reversing sequence to down position
@dr.justintime18486 жыл бұрын
How much for a working package for a pine plywood 3/4" 2ft diameter circular board motor, turning 1/60th of an hour, or 24 hrs for full circle? A clock, ok?
@legenfilmworks9 жыл бұрын
Hey great video! I have a need for a motor to turn slowly for one minute after a button is pushed then turning off until the button is pressed again. Any suggestion? Thank you!!
@alanbjork92199 жыл бұрын
i am new, where do i find the parts list, the code and pictures. i am making a remote control golf cart with 2 1/4 hp 12v dc gear motors, 21a each, i have already ordered the arduino and control. thanks for your video, this is exactly what i am looking for. both motors have enough torque to make the cart pop wheelies when it starts
@glennedward22014 жыл бұрын
Not sure if you’ll see this. Wondering if arduino could manage a 90v motor with 90v dc supply?
@EyesOfTheInternet4 жыл бұрын
What would you recommend for 48V DV motors?
@jasolis83689 жыл бұрын
Hello I had payed close attention to your video and notice that you connect the P N P sourcing sensors to pins 2 and 3 with a 12 v signal from the sensors. Wont you harm the Arduino when inputting more than 5 v?
@jasolis83689 жыл бұрын
Thanks! Did you use PNP or NPN proximity sensors? Did you configure pins 2 and 3 as input pull-up pins in the arduino?
@jonathanperez91257 жыл бұрын
is it possible to send the signal from the motor drive to the arduino using an rf module ?
@erjonamiftari6167 жыл бұрын
I want to control a motor used for barrier gates using arduino, what motor is recommended for using and is it possible to control it with arduino?
@blipsandchitz1947 жыл бұрын
Can you tell me what would work to control a 1/2HP 110v single phase grundfos heating pump (ups 26-150SF)? I have a solar thermal controller that is capable of a 0-10v PWM output signal for speed control and would like to use it. But need something that will control the motor speed. I am used an 10A RIB relay as the controller can only provide about 2A directly connected. So I am sure there would have to be some sort of wiring there. Any ideas?
@inaparent956510 жыл бұрын
what driver do you recommend for similar sized brushless dc motors?
@benko17767 жыл бұрын
Can someone post the code for this?? The link no longer works.. Thank you in advance..
@davidmorenus6 жыл бұрын
Interesting video, gets people thinking and doing, love it. There is a problem with the code, though. Your code controls the motor with a speed, before it reads the sensor to calculate what the speed should be. It doesn't really make sense that way. First you should read the sensor, then calculate the speed, then control the motor with that number. Most of the time, it won't make too much practical difference -- since you're in a loop, you'll use the number you calculated last time to control the motor this time -- but it's bad practice.
@thetopten43467 жыл бұрын
is there a self lock that motor that you used?
@Shibu112292 жыл бұрын
I need an arduino driver for a 120v AC motor. Where can I find one?
@guilhermecintra57327 жыл бұрын
Hey! I am looking to run a 48V DC motor 1000W and maximum limit 45A (loaded); This module does not fit because of the maximum 30V. How should I work on this case? Can you please reccomend a different module?
@pwkoert65943 жыл бұрын
The general idea is great, but I would do some things different. I never use pins D0 & D1 cos then you can send status data to you serial monitor in de Arduino IDE (and also receive data). But that's just a personal preference. But much more important is something I see on many 'desktop' (open loop) CNC ( incl. 3D printers ) they all run in to the end switches. The motor should stop when it gets there but if it does not, it wil go through the switch (or proximity sensor). You should mount the switch (or sensor) in such a way that the arm (table / motor mount..) slides along the sensor and have an other sensor right after the first one which acts as an emergency stop. Emergency stops should not go through software but switch off the power directly (at least) to the movement that goes bad, and notify the software and user that a manual intervention is needed. May be I think this way because I come from an industrial back ground where the machines will destroy them selves or kill you if something goes wrong. Desktop CNC is usually not strong enough to kill but I have seen many CNC'd bigger machines with the same problem. A 500 Watt spindel eats fingers for breakfast. Please correct me if I'm wrong.
@darkmath1009 жыл бұрын
Full disclosure: I'm a newbie. Is there a reason for using a brushed and not a brushless motor? Obviously brushed motors wear out as their brushes are worn down. Are brushless motors not capable of creating the same amount of torque? I have a little project going to build an exercise bike with an electric motor and arduino to create variable resistance. I'm wondering the best approach to take. Any help would be greatly appreciated......
@darkmath1009 жыл бұрын
NYC CNC Thanks. One more question if you've got the time. In this video you can see the arm stop and starts abruptly which is fine for a factory setting. But for my project when I dial the resistance up or down I need the changes to be much smoother. If you had put say a rheostat on your Arduino board or an additional controller just for resistance could you have smoothed out the changes in direction?
@nickmuir907410 жыл бұрын
What kind of Power Supply did you use?
4 жыл бұрын
Exelent work man ,thanks a loot on the explanations. Is it possible to use this for CNC and how to add an encoder, thanks in advance
@bradleyshepard8 жыл бұрын
i have a linear precision circular metal saw that is no longer functioning since the control board has a problem and they no longer make the board but the 12V DC motor is good. do you think i could rig this up with an arduino to work again? do i need to know what kind of current wave to power the motor. really all i need is for the motor to turn on run around 3500 rpm and stop when i turn it off .does one of your videos address a similar situation or do you have any suggestions where i could study this problem better?
@trotion8 жыл бұрын
Hi guys, do you have to download the syrensimplified.h library? Will this be the same case for the motor driver I choose to buy?
@itonzambanzamba88127 жыл бұрын
Hello! What are the components I need to make a Motor ZY1020 36 volt controlled by arduino?
@emciem15 жыл бұрын
hi, i've 24 vdc motors with encoder and i wanted to make a robotic arm using arduino, are these sysren drivers the best option for my problem?
@Skraap10 жыл бұрын
Great video. Considered making some gearing for the motor? I think that would be fun to see.
@trotion8 жыл бұрын
Hi guys, Could you please advise or refer me to one of your videos on controlling something like a 36V 3kW golf cart dc motor for a winch setup? Im looking at making a beach winch and need some help:)
@yoteayudo73082 жыл бұрын
Hi friend I love your video, I’d like to know about this motor how many pounds it’s?
@moodymikey18 жыл бұрын
Is this possible to do with a brushless motor?
@stevejenkins61987 жыл бұрын
My remote control car witch I lost the remote for,has a circuit board with a 3vdc Relay. Since I lost the remote to the car I scrapped the circuit board an added a Arduino an motor shield. What I wanna know is will I have any problems using a arduino uno. Also the car uses a 7.2v battery the motor is slightly larger than most remote controlled cars, so I wanna know is will there be any problem with the method I’m going to use with the arduino uno & the motor shield
@sagar1garg8 жыл бұрын
Can this be used for RC operations? I have Arduino Uno R3 on the Tx and Rx side and NRF2401 does the communication job. Potentiometer is on the Tx side sending commands to the Rx side.
@cevinvincent69827 жыл бұрын
hello,am working with 2*25 dual channel sabertooth motor driver,i want to control 2 motors with an adruino connected to rc transmitter,will it work
@bob404810 жыл бұрын
What motor did you use in the making of this video? Cheers.
@mehadihassansaki66637 жыл бұрын
have any alternative driver for controlling that type of DC motor?
@Liberty4Ever10 жыл бұрын
One of the projects I've been wanting to do but will probably never make the time to do is build my three wheeled electric LibertyMobile. It would charge from a solar panel when parked at home, so no stopping at a gas station. It would be designed to skirt in just under what my state requires for a licensed vehicle, so no drivers license, no property tax, no registration, no insurance. I'd make a custom microcontroller board to control all aspects of the LibertyMobile, from motor control to turn signals, but it would probably be faster for me to use an Arduino and a couple of these motor controllers, and for those without microcontroller experience, the Arduino route would definitely be the way to go. There are all sorts of motion control applications for a DC motor and the Arduino, including cheap and easy industrial automation around the shop (automatically opening and closing machine guarding, automated chip conveyors and augers when the chips trip a prox switch, home made bar feeders, etc.). Thanks for this Wednesday Widget! PS - I buy prox switches several at a time as used surplus on eBay and the name brands are fairly cheap!
@MuhammadTariq-ec8ug8 жыл бұрын
what is the slowest speed can I achieve? suppose I am using 120 rpm motor
@SuperAlvin728 жыл бұрын
good stuff mate, id like to give it a go, where can i copy the upload code from mate?
@juansauczuk51048 жыл бұрын
Hi i am trying to finish a project where i am using syren 50 with a motor it is possible to program s1 and s2 to be able to connect 2 r / c channel 1 for s1 forwards and s2 for back using two pedals? juan carlos sauczuk
@usamaasif83667 жыл бұрын
i have 24v 85 watt gear motor...What driver should i use? I used IBT-2 Arduino drivers but they burned down after a hour working....Please help
@jasonhastain92969 жыл бұрын
i have an arduino Uno and 2 syren 25 controllers, 1 attached to each motor. Is there anyway to make both motors go at same time? I am using this for a robot base, 1 wheel on each motor. I am relatively new to arduino and am not even sure it can handle multiple threads.
@skoootles9 жыл бұрын
I really like your videos. Thanks for posting them.
@grimmer20057 жыл бұрын
Fantastic info! Can I in the code also program it to start slow and slow in when stopping?