Hello.
First, i am software programmer and i am not familier with electronics , this is my first project , maybe my quastion is compleatly wrong. (please check attachment pictures in end of the post)
i am working on a Arduino Project and i want to make some customization on sneck vending machines (i dont want to make / design from A to Z ) .
actualy i have to design my coustom arduino , because my system is compleatly diffrent with normal sneck vending machine
so i just need to use vending machine dc motors and cabin , there is no need to bill acceptor , coin acceptor , credit card reader , keypad and ....
based on my search on internet ,usualy 12v or 24v dc motors are used in these vending machines with 2 pin connector or 3 pin connector.
finally i find some secend hand used 24v dc motors to test.
there are 2 pins on controller board , when i connect it normaly to 24v , motor spins.
there is a micro swich behinde the controller board with a small button , and a plastic trigger pushes and realises this .
after connecting the motor to arduino, i understand when any change happens in this button (press/realse) it sends a 1 to my digitalRead() on that pin. so i guess this is how i can understand a full 360 spin happens.
coud you explain:
-how i have keep turned off all dc motors by defualt and turn on one of them just for a 360 degree spin
note:
-final project have to manage + 60 dc motor
-just one of motors will work on time
-my Arduino is Mega 2560
Best
