IF anyone can see whats wrong it would be greatly appreciated. Brought to you by the Georgia Department of Education and The Georgia Tech College of Sciences CEISMC. What happens is: I press the start button and the motor starts rotating it hits (limit switch B) and motor stops like it should.But it does not reverse direction.If I release the arm on (limit switch B) then motor starts up in reverse and runs until it hits (limit switch A) and it stops like it should.Then if I press start button it starts up again with same results. VEX Basics and More - VEX Limit Switch Overview. The way I have the limit switches wired up is on a breadboard with a 10k resistor from the +5vdc then a leed going to the proper pin on the Arduino then a leed going to the pin on limit switch marked (com) then a leed from ground to the pin on limit switch marked (no).All on same row of breadboard. until it hits (limit switch B).Then the motor brakes and motor rotates counterclockwise until it hits (limit switch A) and then it stops motor and waits until the start button is pressed again. What I am working on is driving a 12vdc gear motor using an Arduino Uno r3 and a Arduino Motor Shield.I am new to Arduino and I am having a problem getting this to do what I want it to do.īasicly what it needs to do is: when a start button is pressed the motor should rotate clockwise from home position (limit swith A) aprox.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |