Is that possible to use CHDKPTP to control arduino ?

  • 11 Replies
  • 1030 Views
*

Offline cdg

  • **
  • 53
Is that possible to use CHDKPTP to control arduino ?
« on: 15 / May / 2017, 08:02:40 »
Advertisements
Hello:
     Is that possible to use CHDKPTP to control an arduino ? or just sending a signal to an arduino.

*

Offline cdg

  • **
  • 53
Re: Is that possible to use CHDKPTP to control arduino ?
« Reply #1 on: 15 / May / 2017, 08:04:32 »
Is there any scripts could do that ?

Is that possible to use CHDKPTP to control arduino ?
« Reply #2 on: 15 / May / 2017, 08:59:15 »
You would have to implement a PTP handler on the arduino and add the Chdkptp functions. AFAIK nobody had done this so you would have to code it on the arduino from scratch.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline cdg

  • **
  • 53
Re: Is that possible to use CHDKPTP to control arduino ?
« Reply #3 on: 15 / May / 2017, 09:06:15 »
so you would have to code it on the arduino from scratch.
:'( :'( :'( so sad hear about that


*

Offline cdg

  • **
  • 53
Re: Is that possible to use CHDKPTP to control arduino ?
« Reply #4 on: 15 / May / 2017, 09:13:18 »
How about  raspberry ?

Re: Is that possible to use CHDKPTP to control arduino ?
« Reply #5 on: 15 / May / 2017, 09:29:02 »
Raspberry Pi to control an Arduino is possible.  You will find lots of info about that via google.

Raspberry Pi to control a Powershot via CHDKPTP is easy.  There is even a custom build available for the Pi.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Online reyalp

  • ******
  • 11449
Re: Is that possible to use CHDKPTP to control arduino ?
« Reply #6 on: 15 / May / 2017, 16:49:15 »
Hello:
     Is that possible to use CHDKPTP to control an arduino ? or just sending a signal to an arduino.
If you just want to send a signal to the arduino from a Lua script in chdkptp over a serial port or something like that, you can execute external commands form chdkptp using os.execute. You can also use popen and lua IO functions to send output to a running process.

If you describe what you are actually trying to do a bit more, we might be able to give you better advice.
Don't forget what the H stands for.

*

Offline cdg

  • **
  • 53
Re: Is that possible to use CHDKPTP to control arduino ?
« Reply #7 on: 16 / May / 2017, 20:46:44 »
Hello:
     Is that possible to use CHDKPTP to control an arduino ? or just sending a signal to an arduino.
If you just want to send a signal to the arduino from a Lua script in chdkptp over a serial port or something like that, you can execute external commands form chdkptp using os.execute. You can also use popen and lua IO functions to send output to a running process.

If you describe what you are actually trying to do a bit more, we might be able to give you better advice.
I want to take some pictures with turntable which belt to an electric motor,after i take the picture i want to turntable  turn a angle,then i could make something like 360° image .
so what i need is a script to take the picture then give a signal to arduino to control the turntable to turn,then take the picture and turn again,until finish the whole 360°, something like that。


*

Online reyalp

  • ******
  • 11449
Re: Is that possible to use CHDKPTP to control arduino ?
« Reply #8 on: 16 / May / 2017, 21:17:11 »
I want to take some pictures with turntable which belt to an electric motor,after i take the picture i want to turntable  turn a angle,then i could make something like 360° image .
so what i need is a script to take the picture then give a signal to arduino to control the turntable to turn,then take the picture and turn again,until finish the whole 360°, something like that。
As long as you have some way to communicate with the arduino from the system that's running chdkptp, you should be able to do this using the method I described.

The details would depend on how you intend to communicate with the arduino.
Don't forget what the H stands for.

Is that possible to use CHDKPTP to control arduino ?
« Reply #9 on: 17 / May / 2017, 07:08:00 »
If it was me, I'd use a Lua script running on the camera to light the focus assist lamp after each shot. Then I'd use a phototransistor connected to the arduino to tell the arduino to index the turntable.  No PC or PTP required.

You could also close the loop by having the arduino tell their camera to shoot via a CHDK USB Remote signal.
« Last Edit: 17 / May / 2017, 07:09:37 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics