26

Re: Filawinder servo mod idea

Seriously ?
Momentary switches DO NOT toggle reversal, they activate it momentarily.
I need it to be toggled each time its pressed.

I was so excited  thinking: I cant believe i didnt know this ! but then i realzed that i already tried it and posted all the way at the top that its not going to work.

27

Re: Filawinder servo mod idea

tonycstech wrote:

Seriously ?
Momentary switches DO NOT toggle reversal, they activate it momentarily.
I need it to be toggled each time its pressed.

I was so excited  thinking: I cant believe i didnt know this ! but then i realzed that i already tried it and posted all the way at the top that its not going to work.


This is why I said to use the original single module It uses a latching relay so it would stay latched till the next switch was hit.  You not only over think but over complicate by trying to put all your eggs or all your parts on one board.

You would need two of course.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

28 (edited by tonycstech 2019-07-23 18:13:08)

Re: Filawinder servo mod idea

I have 2 5v relays.
Same problem.
They dont toggle. They switch back as soon as you let go the switch.
Also motor is not powered at all using your diagram. I had to rewire it.
1,6 needed ground and 3,4 12V. 2,5 motor the same.

Now for some reasons arduino nano is dead. It wont reset, it wont flash, it wont work.
Had to order new board.

My question now is: once i get new board, do i just flash it with firmware or i need bootloader 1st ?
I need some step by step for bootloader please.

29

Re: Filawinder servo mod idea

tonycstech wrote:

I have 2 5v relays.
Same problem.
They dont toggle. They switch back as soon as you let go the switch.
Also motor is not powered at all using your diagram. I had to rewire it.
1,6 needed ground and 3,4 12V. 2,5 motor the same.

Now for some reasons arduino nano is dead. It wont reset, it wont flash, it wont work.
Had to order new board.

My question now is: once i get new board, do i just flash it with firmware or i need bootloader 1st ?
I need some step by step for bootloader please.

You may be sinking too much current through the control pin. It is only good for about .25 amps at the most. The board may or may not come with a bootloader. They usually do but depending on the vendor and price there is a chance it may not. The text about on the vendors page should say, or you could just ask the vendor.

In that circuit the motors get power through relay but like you said the buttons have to be pressed to enable the ground for it to work. Again though the latching relays should solve that issue.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

30 (edited by tonycstech 2019-07-24 02:11:57)

Re: Filawinder servo mod idea

Got it. 12v relay module takes 0.38A. Gotta take it straight from the power jack but that will start getting hot because on top of 0.4A i get 0.1A from board and then there are 2 motors which will quickly create problems.

You siad: "use the original single module It uses a latching relay" thats not true in my case. It seems to work exactly the same way as the 2 channel relay.
For that reason i ordered a relay that toggles position by momentary switch instead of triggering position by momentary switch.
I need self locking relay. That kind of relay cost 2-3 times the normal. About $7 piece vs $3 (talking about US ebay prices)
Those relays have ECU on board that allows that behavior. Anything else is a no go.

31 (edited by tonycstech 2019-07-28 09:21:11)

Re: Filawinder servo mod idea

Got new board. Figured out the firmware. Figured out the relays setup and designed printable box for it.
All i have left to do is to print the box mount it next to the filawinder.
Here is the relay setup i will use.
1st relay is reversing motor polarity.
2nd relay triggers that reversal
3rd relay is controlled by firmware, it activates and deactivates the motor that pushes the guide left/right.

No more SERVO crap.
http://soliforum.com/i/?mfOHM50.jpg
Also changed firmware slightly, so it will not constantly trigger for no reason.
if (thisspeed<30) {digitalWrite(A4, LOW);} //added line
if (thisspeed>30) {digitalWrite(A4, HIGH);} //added line
These two lines will make it work as expected.
Constant triggering was caused by minimumPullerSpeed 20. It means motor was constantly engaging.
Instead of making it 0, i added condition

32

Re: Filawinder servo mod idea

Made another discovery.
I can activate the motor exactly when spool is rotated and control how long motor is activated. This limits the movement of the guide system based on delay time set.

Locate:    
guide_angle = (guide_angle + 1.17); }     //Move the guide +1.17 degree for 1.75mm filament
Change it to:
guide_angle = (guide_angle + 1.17);
    digitalWrite(A4, HIGH);   //Activate Guide Motor because spool has rotated
    delay (2000);             //Adjust delay to make motor move less or more per spool rotation
    digitalWrite(A4, LOW);    //Stop Guide Motor
    }     //Move the guide +1.17 degree for 1.75mm filament

I now want to simplify the design somewhat. 4 relays to deal with is little too much but its working like a charm especially after making it trigger at the servo part of the code.
Here is what it looks like.
http://soliforum.com/i/?0j9iawp.jpg

33

Re: Filawinder servo mod idea

Ever thought of using a rotary encoder to keep track of the position?