Building a mult-camera rig - page 23 - Hotwire! Hardware Mods, Accessories and Insights - CHDK Forum
supplierdeeply

Building a mult-camera rig

  • 244 Replies
  • 96955 Views
Advertisements
Hi All

I was busy with other projects  :(

I tried to use the latest A2500  (a2500-100a-1.3.0-3805-full_ALPHA.zip )
and the optical distortion at zoom remains


I would appreciate your help


regards

*

Offline srsa_4c

  • ******
  • 4451
and the optical distortion at zoom remains
Can you please check whether get_prop(198) returns the zoom value you set previously with set_zoom() ?
If you're using chdkptp to issue the commands, you could do something like:
=set_zoom(32)
=return get_prop(198)


Here's a distortion test for SX150IS (has physical aperture) completed using chdkptp.

An levent shot was followed, 5 min later, by a set_zoom shot. The subject was an Excel spreadsheet grid at the far end of the kitchen table. To my untrained eye (see attached), distortion does not seem to be a problem - thankfully (since i'm not sure I like the look of this http://chdk.setepontos.com/index.php?topic=11667.msg117844#msg117844). The only difference in the EXIF's (notepad++ compare) is  "Measured EV" in first shot = 7.88 & second = 7.91

Code: [Select]
> lua post_levent_to_ui('PressWideButton')
> lua post_levent_to_ui('UnpressWideButton')
> lua post_levent_to_ui('PressTeleButton')
> lua post_levent_to_ui('UnpressTeleButton')
> =return get_zoom()
13:return:127
>  =return get_focus()
14:return:1167
>  lua post_levent_to_ui('PressSwOne')
> lua post_levent_to_ui('PressSwTwo')
> lua post_levent_to_ui('UnpressSwTwo')
> lua post_levent_to_ui('UnpressSwOne')
> =return get_focus()
19:return:1152
>  lua post_levent_to_ui('PressWideButton')
> lua post_levent_to_ui('UnpressWideButton')
> =set_zoom(127)
> =return get_zoom()
23:return:127
> =return get_focus()
24:return:1202
> lua post_levent_to_ui('PressSwOne')
> lua post_levent_to_ui('PressSwTwo')
> lua post_levent_to_ui('UnpressSwTwo')
> lua post_levent_to_ui('UnpressSwOne')
> =return get_focus()
29:return:1152
> =return get_prop(198)
34:return:0


What i'm not really sure about is:

  • why the focus distance difference (can a small change in ambient light account for such a change by autofocus)? ::)
  • significance of the get_prop(198) return value?
« Last Edit: 10 / January / 2015, 10:57:21 by andrew.stephens.754365 »

*

Offline bismo

  • *
  • 10
Re: Building a mult-camera rig
« Reply #223 on: 17 / January / 2019, 06:01:07 »
How do you load the bcamHost.lua?
I don't understand how to run it on the PC, I've successfully run the bcamRem.lua on the camera by loading it via card reader to the card and run it with "Load Script from File..."

edit:
I've got it!
« Last Edit: 07 / March / 2019, 12:04:40 by bismo »


*

Offline bismo

  • *
  • 10
I can use single port relay but dual port is more cost effective
If necessary, I might use 3rd li battery pin sync with androino ( I got the concept how to code on androino )
Single pole relays would be worse.

One other note - you probably what to use the N.C. terminals on your relays so that when you press the bottom the contact opens to disconnect the 5V to the cameras.

Hey, so I tried replicating what novsela did every step of the way (using the same camera and everything)
and I encounter the same problem of my camera shooting before receiving I disconnect the 5v power.

I tried what he did (wire the power into relay) but the camera still shoot even before I disconnect the power.

Does this have something to do with the custom CHDK firmware you made for him? If so can you upload it again?
I can't download it because the download link have expired.

Thank you

*

Offline reyalp

  • ******
  • 14117
Hey, so I tried replicating what novsela did every step of the way (using the same camera and everything)
and I encounter the same problem of my camera shooting before receiving I disconnect the 5v power.

I tried what he did (wire the power into relay) but the camera still shoot even before I disconnect the power.

Does this have something to do with the custom CHDK firmware you made for him? If so can you upload it again?
I can't download it because the download link have expired.

Thank you
It would be helpful if you can describe you what you actually did, and how the result differed from what you expected.

Saying you everything the same as something someone did 5 years ago in a 20+ page thread doesn't make it easy to spot what the relevant differences would be.  If you followed steps described in a specific post, linking directly to it would be help.

In general, you should not need a custom build to use USB remote and PTP together anymore, although it's possible one was needed 5 years ago or that some details have changed in that time.
Don't forget what the H stands for.

It would be helpful if you can describe you what you actually did, and how the result differed from what you expected.
To expand on this @reyalp comment, it would be even more helpful if you'd tell us the goal of your project?

The script you mention using was experimental code for operating multi-camera setups.  IIRC it had some different design goals than the code reyalp was working on at the time - specifically around how to physically identify each camera via a large number displayed on its LCD.  Here's a photo of the code in action :

(linked from https://chdk.setepontos.com/index.php?topic=11583.msg114166#msg114166 )

Unless you specifically need that feature, you are probably better off spending your time using reyalp's supported multicam.lua script from his chdkptp package (https://app.assembla.com/spaces/chdkptp/wiki/Home)
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline bismo

  • *
  • 10
First of all thank you reyalp and waterwingz for replying

OK so hopefully the attached flowchart can explain my goal.

[/url]

I want to make the cameras connect to PC, shoot at virtually the same time, and then download the pictures into folders.

Your latest codes (bcam1-4.zip) link did exactly all of that except waiting for the 5v power to drop(red arrow on flowchart).

It seems like the original poster encounter the same problem as I did, as shown on this post link

However it seems like it is resolved when OP wire a NC relay between the 5v power, on this post link

I've replicated everything OP did but still can't get it working.

(the only thing different is the usb hub, i'm still searching for the same one as he has, or just use cable, will update on this)

The only thing I haven't tried is using custom FW you made(scattered on several posts on this thread) but I can't because all the box links expired.

I hope I make everything clear

Anyway thank you so much and I hope its not too much to ask for help with this

___
edit:
I forgot to add
I don't need to use bc:shoot() if I can use the usb remote as long as the shutter trigger at the same time but I also can't use the usb remote
« Last Edit: 09 / March / 2019, 05:17:24 by bismo »


It seems like the original poster encounter the same problem as I did, as shown on this post link
Thanks - that much better explanation of what you are doing really helps.

Before I dig further into this, as I reread that thread, I think that the solution to the camera shooting too soon was for the OP to set the Use Remote Sync ? [ * ] script parameter option.  (i.e. not the Enable Sync option in the Remote Parameters menu).   Do you have it enabled?

However it seems like it is resolved when OP wire a NC relay between the 5v power, on this post link
I think that was something different. He added the relays so that he could drop power to the +5V USB pin and initiate the "shoot" without losing the USB connection on the D+ / D- pins like he would if he simply removed power from the USB hubs.

« Last Edit: 09 / March / 2019, 10:33:47 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14117
I forgot to add
I don't need to use bc:shoot() if I can use the usb remote as long as the shutter trigger at the same time but I also can't use the usb remote
So it sounds like you are having problems with remote generally. First question: Which camera model? A2500 ?

Second, rather than trying to exactly emulate what novsela did 5 years ago, I'd focus on trying to narrow down where the fault is:
1) Electrical problem
2) Software problem
2a) Configuration problem
2b) Script bug
2c) CHDK port bug

A good first step is to verify basic remote functionality, following the procedure described on under USB Remote on the testing page: https://chdk.fandom.com/wiki/Testing#USB_Remote

If that fails, then it's #2c (at least)

If it passes, then a good next step is to use a single camera with your software/script setup, but with manual control of the +5v. You can just use a regular USB cable and plug/unplug to check that shot starts at the right point, but beware the camera and PC USB stacks may get confused after that. If you wire a simple switch on the +5v line of a USB cable, you should be able to do full test.

If the single camera / manual +5v test passes, it points to #1. If not, #2a or #2b
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal