@kayhanbelek I’ve followed the diagram so there’s only one 12v power supply which goes to the motor driver. The nodemcu receives 5v power via the same motor driver – and it is already grounded back through the motor driver the same way. (so the power supply and nodemcu are both connected to ground on the motor driver)
I don’t think it’s a grounding problem, as best I can tell.
input_number:
cat_feed_dose:
name: Doese
icon: mdi:format-list-numbers
min: 0
max: 10
step: 1
initial: 3 # <= Make this the Default Value
here is part of the void feedCats
// feeds cats
void feedCats(int Dosees) {
int ii;
analogWrite(enA, 700);
analogWrite(enB, 700);
for ( ii=0; ii < Dosees; ii++){
myStepper.step(stepsPerDose);
delay(DelayBetween);
}
analogWrite(enA, 0);
analogWrite(enB, 0);
delay(2000); // you may wanna change this based on how many times you press te button continously
....
Hey everyone!
I am a bit late to the party, but currently making this project!
I’ve got most of the things working, but I was wondering how did you guys attach the rod of the motor to the cereal dispenser? I’m having trouble coming up with an elegant solution.
My dispenser is a different one than linked in this thread, but I could still use some advice.
Hi. Did anyone found a fix for the Nema motor rotation ? I’m having the same problem. With a value of 50 stepsPerDose or 100, no change, only about 60° rotation, not enough for a dose.