www.photomacrography.net :: View topic - TMC5130A-TA BOB & ARDUINO UNO
www.photomacrography.net Forum Index
An online community dedicated to the practices of photomacrography, close-up and macro photography, and photomicrography.
Photomacrography Front Page Amateurmicrography Front Page
Old Forums/Galleries
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TMC5130A-TA BOB & ARDUINO UNO
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    www.photomacrography.net Forum Index -> Equipment Discussions
View previous topic :: View next topic  
Author Message
Adalbert



Joined: 30 Nov 2015
Posts: 918

PostPosted: Thu Jul 25, 2019 3:04 am    Post subject: Reply with quote

Hello everybody,
This is the final version:



The relays are connected to A2 and A3 instead of pin1 and pin0.
BR, ADi
Back to top
View user's profile Send private message
Adalbert



Joined: 30 Nov 2015
Posts: 918

PostPosted: Tue Jul 30, 2019 3:12 am    Post subject: Reply with quote

Hello everybody,
I have already noticed that the clock of the Arduino can differ a little bit.
In my previous controller I used 8 micro seconds for the impulse.
This time I had to use 11 micro–seconds for the IR remote control of my EOS M3.
I’m not sure if it really depends on the clock or on the changing of the digital-output to the analog one (the A1 is used for the IR).
The current code looks as follows:
Code:
Camera* canon = new Camera(A1,11,7300); // pin A1 = IR emitter, impulse=11 microsec; signal=7300 microsec

...

void Camera::doShot(void)

  pinMode(_pinLedIR, OUTPUT);

  for (int i = 0; i < 16; i++)
  {
    digitalWrite(_pinLedIR, HIGH);
    delayMicroseconds(_impulse_time);     // between 7 and 11 micro-seconds
    digitalWrite(_pinLedIR, LOW);
    delayMicroseconds(_impulse_time);
  }

  delayMicroseconds(_signal_time);        // shut immediately

  for (int i = 0; i < 16; i++)
  {
    digitalWrite(_pinLedIR, HIGH);
    delayMicroseconds(_impulse_time);
    digitalWrite(_pinLedIR, LOW);
    delayMicroseconds(_impulse_time);
  }
}
BR, ADi
Back to top
View user's profile Send private message
Adalbert



Joined: 30 Nov 2015
Posts: 918

PostPosted: Thu Aug 01, 2019 12:21 am    Post subject: Reply with quote

Hello everybody,
The first test with the step-size = 0.001 mm and NEMA 17 0.9 degree and THK KR2001A:

So, I’ll have to find out which settings of TMC can improve this result.
BR, ADi
Back to top
View user's profile Send private message
Adalbert



Joined: 30 Nov 2015
Posts: 918

PostPosted: Fri Aug 02, 2019 4:00 am    Post subject: Reply with quote

Hello, everybody,

step-size=0.00033mm (3 photos a DOF for NeoSPlan 80x / 0.75 )



BR, ADi
Back to top
View user's profile Send private message
mawyatt



Joined: 22 Aug 2013
Posts: 2402
Location: Clearwater

PostPosted: Sun Aug 04, 2019 7:26 am    Post subject: Reply with quote

ADi,

Just noted that you've wired the 5130 VCC_IO to +5VDC. This prevents the 5130 from being reset by software since it's hardwired to +5V.

You might consider using a GPIO pin to "drive" VCC_IO high, I do this with the RPi, which supplies VCC_IO with ~3.3V and allows software 5130 reset by toggling this GPIO pin.

Best,
_________________
Research is like a treasure hunt, you don't know where to look or what you'll find!
~Mike
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.photomacrography.net Forum Index -> Equipment Discussions All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group