GithubHelp home page GithubHelp logo

majicdesigns / md_multicameraircontrol Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 3.0 14 KB

Library to control various cameras using IR (modified multiCameraIrControl library)

License: Other

C++ 100.00%
arduino camera library ir ir-transmitter canon nikon olympus minolta sony pentax interval timelapse

md_multicameraircontrol's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

md_multicameraircontrol's Issues

Wrong modulatoin timing

'New' version does not work with Olympus E510/E520 cameras. The reason is 'new' version modulation frequency is too low.
'new' version uses 'wait' procedure trying to create required 38.4kHz modulation:
while (micros() - start <= time) { digitalWrite(_pin, HIGH); wait(pause); digitalWrite(_pin, LOW); wait(pause); }
the 'original' code has this procedure defined as well, but it creates modulation frequency using delayMicroseconds:
while(micros()-start<=time){ digitalWrite(pinLED,HIGH); delayMicroseconds(pause); digitalWrite(pinLED,LOW); delayMicroseconds(pause); }

As a result, single pulse width of the original code is 12us, while the new implementation generates 18us pulses:
'new' code 9ms leading pulse burst:
https://imgur.com/HBk93sM
'original' code leading burst:
https://imgur.com/64HSDvF

for testing purpose I modified MD_multiCameraIrControl.cpp file:

`void cCamera::high(uint32_t time)
{
uint32_t pause = (1000 / _freq / 2) - 4;
uint32_t start = micros();

while (micros() - start <= time)
{
digitalWrite(_pin, HIGH);
// wait(pause);
delayMicroseconds(pause);
digitalWrite(_pin, LOW);
// wait(pause);
delayMicroseconds(pause);
}
}`

After that modification pulse length changed to 12.8us, and now E5.shutterNow() successfully initiates a shot:
https://imgur.com/n1jsBq2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.