hi...i'm build dtg printer,and need some help..i have already most of code,works fine,but still need some help with rotary encoder,movable table/platen,and need help with opto coupler pc817....i'm not share my code there for public,but i can send to PM who won't to help finish them,i pay 250 usd
need:
arduino uno or nano
stepper driver tb6600 or a4988
stepper motor nema 17
3x spst push buttons
2x limit switches
rotary encoder-can use ky-040
push buttons and limit switches control position of base/table...button one when pressed move forward till limit switch pressed,button two move backward till second limit pressed and stops...when i turn encoder read stepper motor clockwise or Counter clockwise direction..that part of code i have already..for example how that works:
I don't see push button control or encoder control in those videos, so that part is not helping, but the rest of the description is clear enough.
What is the purpose of the third push button?
The limit switchers, are that the photo interrupt sensors or are that different things?
Why two limit switches for one stepper motor? When you know where one end is you know where the other end is (that's simply a number of steps away).
Is there going to be a separate input from the printer to control the stepper motor, and move the table under the print head?
You also mentioned you need some help with the electronics part - what exactly?
third button for 2 automatic print pass...
limit switch standart mechanical..two limit switches i use because i have two position of base/platen..1st loading on front,2nd printing on back...i'm not use number of steps,like i have two buttons and two limit switches....i have 2 digital pins on arduino connected to printer encoder and it is input...when encoder wheel turn then my stepper motor moves clockwise or counter clockwise depends of encoder turn position.....i have 3 jobs left if finish:
2 automatic printing pass...i have but works with some issues
encoder state: 1. encoder state ready printing to back limit 2. encoder home position-disable front limit..encoder itself work fine but need that states where enable/read and disable/where not do any actions till again it is on back limit and only then start read...
photo interrupt sensor i won it to replace/emulate with code,i have sample code for that but works only 50% of time...need some helps with opto coupler pc817.....