barrie
@barrie
Estimable Member
Joined: 2022-09-04 9:10 am
Last seen: 2022-10-22 8:18 pm
Topics: 12 / Replies: 74
RE: Possible power supply interference problem

If you are using AccelStepper I found two issues that affected positions. My project is polar opposite to yours but It may be worth checking. MoveTo...

4 months ago
Forum
RE: detecting odd and even numbers

@inq Just found my error. should have made (n % 2 == 0)

4 months ago
Forum
RE: detecting odd and even numbers

@ronbentley1 Thank you, exactly what I was looking for. @inq Is this equivalent to your sketch? if (n % 2 = 0) { f = 1; b = -1;} else { f = ...

4 months ago
Forum
RE: Function arguments

@inq Are you back? Hope you had or having a good break. I got rid of dropBox years ago when it backed up everything that didn't need backing up. Anywa...

4 months ago
Forum
RE: Function arguments

@robotbuilder @will Your .run loop didn't work because moveTo recalculates speed. The solution is to set the speed after moveTo..... and it works! ...

4 months ago
Forum
RE: Function arguments

@robotbuilder Nano

4 months ago
Forum
RE: Function arguments

@robotbuilder Thank you. If you look at the action in the video you will see the problem. It happens when the yellow LED lights up. You will see one s...

4 months ago
Forum
RE: Function arguments

That is an interesting thought. Here is what I think I am setting up. I am setting the current position to zero and telling the stepper to move to a t...

4 months ago
Forum
RE: Function arguments

@zander Hmmm! Which "get it" don't I get? I don't get it. đź¤”

4 months ago
Forum
Function arguments

@will setCurrentPosition(0) is important. Until yoyo, the current position is anywhere. yoyo takes its reference from current position. I tried it w...

4 months ago
Forum
RE: Function arguments

@zander I have tried many combinations of the + and - signs. The negative MoveTo statement sends the stepper CCW. But AccelStepper info says negative ...

4 months ago
Forum
RE: Function arguments

@will yes I replaced my function with yours. It compiled OK but had zero affect. My version works correctly for individual rotors but I need them both...

4 months ago
Forum
RE: Function arguments

@zander The problem is at case 3: yoyo see this video /* //Two 28BYJ48 stepper */ #include // ***************** Constants *****...

4 months ago
Forum
RE: Function arguments

@zander Thanks. I'll look for a video compressor. I tried stuffit but it only shrunk by about 4Meg.

4 months ago
Forum