Hello everybody,
This is the final version:
The relays are connected to A2 and A3 instead of pin1 and pin0.
BR, ADi
TMC5130A-TA BOB & ARDUINO UNO
Moderators: rjlittlefield, ChrisR, Chris S., Pau
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:BR, ADi
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: Select all
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);
}
}
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,
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
~Mike