majicdesigns / md_multicameraircontrol Goto Github PK
View Code? Open in Web Editor NEWLibrary to control various cameras using IR (modified multiCameraIrControl library)
License: Other
Library to control various cameras using IR (modified multiCameraIrControl library)
License: Other
'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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.