Close

Odpověď na: dalkova spoust pro zrcadlovku

Úvodní stránka Fórum Vaše projekty Arduino dalkova spoust pro zrcadlovku Odpověď na: dalkova spoust pro zrcadlovku

#9356
fidos
Účastník

nemuze to bejt ir ledkou, sice sviti, ale neznam presne jeji parametry?

…pak tady sem nasel kod, ktery by mel fungovat i pro moji zrcadlovku, ale v autorove zapojeni (pouze deska + ir led) :

Bit of a learning curve but spent the day looking into how to get the Canon 5DMkII and 7D MkII to work.
With an infrared detector and an Arduino sketch I found that the RC-6 remote from Canon outputs a 500uS burst, a delay of 6940us and then another 500uS burst. I then used a IR Led at 940nm – modified a sketch to send these bursts and lo and behold – it works.
The RC-6 is used for a number of Canon Dslr’s so should cover a few more models for your library

class CanonRC6{
public:
CanonRC6(int pin);
void shutterNow();
private:
int _pin;
int _freq;
};

CanonRC6::CanonRC6(int pin)
{
pinMode(pin, OUTPUT);
_pin = pin;
_freq = 33;
}

void CanonRC6::shutterNow()
{
for(int i=0; i<16; i++) {
digitalWrite(_pin, HIGH);
delayMicroseconds(15);
digitalWrite(_pin, LOW);
delayMicroseconds(15);
}
delayMicroseconds(6940);
for(int i=0; i<16; i++) {
digitalWrite(_pin, HIGH);
delayMicroseconds(15);
digitalWrite(_pin, LOW);
delayMicroseconds(15);
}
}

Zkousel se nahrat jeho knihovnu (download viz. jeho blog) a nic se nezmenilo.