ReallySmall / Stackduino-v2

A motion controller designed for focus stacking
https://www.stackduino.net/boards/v2-2
6 stars 0 forks source link

Backward and forward control buttons both move motor in same direction #14

Open ReallySmall opened 9 years ago

ReallySmall commented 9 years ago

Direction not getting set correctly in code

ViewPixel commented 2 years ago

Hello friend, would you be so kind as to provide me with the Arduino code that is used in the version of Stackduino with the two manual buttons in this project, the project of the image that I attach, since the link to the code is broken and I cannot obtain the code , it would be very helpful. I would greatly appreciate 9177874726_33d66af08d_h

nSomnius commented 2 years ago

I never had that code, only the version with the joystick. Wish I could help.

On Mon, Mar 21, 2022 at 10:31 AM ViewPixel @.***> wrote:

Hello friend, would you be so kind as to provide me with the Arduino code that is used in the version of Stackduino with the two manual buttons in this project, the project of the image that I attach, since the link to the code is broken and I cannot obtain the code , it would be very helpful. I would greatly appreciate [image: 9177874726_33d66af08d_h] https://user-images.githubusercontent.com/102056057/159330662-f9e57a15-278d-490a-9852-63b53538dcfd.jpg

— Reply to this email directly, view it on GitHub https://github.com/ReallySmall/Stackduino-v2/issues/14#issuecomment-1074207708, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4VIKTHANK52SY2VQLSL4DVBCXADANCNFSM4BQREZVQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ViewPixel commented 2 years ago

Thank you very much. The truth is that I've been breaking my head for days, since the code links are broken and the web www.stackduino.net does not work

ReallySmall commented 2 years ago

Hello, sorry for the delay, its been a while since I looked at this project. Afraid I let the hosting on stackduino.net lapse as I didn't have time to maintain it.

The repo for the image you've shared is here https://github.com/ReallySmall/Stackduino-v0.1---v1.1

ReallySmall commented 2 years ago

I'm not sure which commit in the history of that repo most closely matches that diagram

ViewPixel commented 2 years ago

Ohhh, thank you very much. You've been very kind, I really appreciate it. And what do you recommend? the stackduino1 or the stackduino2? Kind regards

ReallySmall commented 2 years ago

V2 was designed to work more efficiently from a battery for fieldwork. It's significantly more complex to build though and will probably be more expensive because its more difficult to source the components in small quantities. I really enjoyed building v2 but most of the I would recommend v1 :)

ViewPixel commented 2 years ago

Thank you very much, you have been very helpful and I appreciate it very much

ViewPixel commented 2 years ago

I can't get my camera to shoot, it's a Nikon D7200, it says it's going to shoot but it never does.

ReallySmall commented 2 years ago

Do you have a multimeter to check your wiring?

ReallySmall commented 2 years ago

If I remember rightly, generally at the camera end the shutter control is managed by monitoring the voltage to an input which is held (or 'pulled up') to an internal voltage. When you connect an external trigger and press the button that connects a circuit which pulls that input down to ground. The same thing happens with stackduino, except the button is replaced with optocouplers which simulate that button press. The cameras I used it with had quite simple external trigger jacks though. I know some are more complex and have more pins - what does yours look like?

ViewPixel commented 2 years ago

Hello and thanks for your answer, indeed, as you say, I needed a connection to GND. On the other hand some of the direction buttons do not work. The issue is that the esay driver couldn't pull my Nema17 since it didn't come with the amperage, so I put a TB6600 Driver on it and it's quite hard to configure it. At least now he shoots. You are very kind and very helpful.

ViewPixel commented 2 years ago

Another thing that I see that fires exactly when the lane stops, I would like to be able to wait at least two seconds after the lane stops, I can't modify it

ReallySmall commented 2 years ago

https://github.com/ReallySmall/Stackduino-v0.1---v1.1/blob/a20052ba3b754fbf3195fd4f06609fa50f750e88/Code/Stackduino/Stackduino.ino#L164

Try adding a delay statement immediately before this loop

delay(2000)

ViewPixel commented 2 years ago

Hooo, you are a genius, thank you very much

ViewPixel commented 2 years ago

Hello again, I apologize for disturbing once again. I can't get my camera to shoot with the mirror up, at the moment of shooting it raises the mirror but doesn't take the second shot. And the last one, how could I make the motor turn in another direction in the course of the shots? Greetings and thanks again

ReallySmall commented 2 years ago

Have you set this variable to 2?

https://github.com/ReallySmall/Stackduino-v0.1---v1.1/blob/a20052ba3b754fbf3195fd4f06609fa50f750e88/Code/Stackduino/Stackduino.ino#L53

ViewPixel commented 2 years ago

If I have set it to 2 and I have placed the camera with the mirror option on top. But it's like I didn't take the second shot

ViewPixel commented 2 years ago

I did a test with a tester and it actually sends the second shot. I don't know why my camera doesn't take the second shot

nSomnius commented 2 years ago

I know nothing about programming. Wish I could help. Good luck.

On Mon, Mar 21, 2022 at 2:48 PM ViewPixel @.***> wrote:

Thank you very much. The truth is that I've been breaking my head for days, since the code links are broken and the web www.stackduino.net does not work

— Reply to this email directly, view it on GitHub https://github.com/ReallySmall/Stackduino-v2/issues/14#issuecomment-1074455126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4VIKQ4SMFKIDUPX6MYMDLVBDVEDANCNFSM4BQREZVQ . You are receiving this because you commented.Message ID: @.***>