User Tools

Site Tools


remote_fire_camera_via_gpio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
remote_fire_camera_via_gpio [2017/02/04 20:08] – [The Circuit] walkeradminremote_fire_camera_via_gpio [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 56: Line 56:
 \\  \\ 
 \\  \\ 
-{{:3poleplugcanon.jpg?350|}}+{{:3poleplugcanon.jpg?400|}}
 \\  \\ 
 \\  \\ 
Line 91: Line 91:
 \\  \\ 
 <color red>Remember:</color> if you don't set the pins to low after shooting, it's the same as keeping your finger on the shutter button, the camera will just stay in shooting mode (but the shutter will close) and you won't see your preview image or be able to take any more shots. <color red>Remember:</color> if you don't set the pins to low after shooting, it's the same as keeping your finger on the shutter button, the camera will just stay in shooting mode (but the shutter will close) and you won't see your preview image or be able to take any more shots.
-<file>+\\  
 +<sxh [py][; options for SyntaxHighlighter]>
 #! /usr/bin/python #! /usr/bin/python
 # Python Script to fire Canon camera using 2 GPIO pins.  # Python Script to fire Canon camera using 2 GPIO pins. 
 # Version 1.0 # Version 1.0
 # Feb 2017 # Feb 2017
 +# Written in Python 2.7
  
 # Import libraries # Import libraries
Line 129: Line 131:
 # Cleanup GPIO # Cleanup GPIO
 GPIO.cleanup() GPIO.cleanup()
-</file>+</sxh>
 \\  \\ 
  
Line 137: Line 139:
 We have used a simple program to fire the camera, but more useful would be to have some options. The following code prompts the user for two inputs, the first input is the number of desired photos to be taken, the second is the delay between photos. We have used a simple program to fire the camera, but more useful would be to have some options. The following code prompts the user for two inputs, the first input is the number of desired photos to be taken, the second is the delay between photos.
 \\  \\ 
-<file>+<sxh [py][; options for SyntaxHighlighter]>
 #! /usr/bin/python #! /usr/bin/python
 # Python Script to fire Canon camera using 2 GPIO pins. # Python Script to fire Canon camera using 2 GPIO pins.
Line 144: Line 146:
 # Version 2.0 # Version 2.0
 # Feb 2017 # Feb 2017
 +# Written in Python 2.7
  
 import RPi.GPIO as GPIO import RPi.GPIO as GPIO
Line 176: Line 179:
              
       for setPin in (gpioPins):       for setPin in (gpioPins):
-      # Set first GPIO to High and wait 1s+      # Set first GPIO to High and wait 0.25s
         GPIO.output(setPin,GPIO.HIGH)         GPIO.output(setPin,GPIO.HIGH)
         time.sleep(0.25)         time.sleep(0.25)
Line 195: Line 198:
 # Cleanup GPIO # Cleanup GPIO
 GPIO.cleanup() GPIO.cleanup()
-</file>+</sxh>
 \\  \\ 
 \\  \\ 
Line 205: Line 208:
 \\  \\ 
 \\  \\ 
-{{:canon_30d_raspberry_pi_trigger_test_video.mp4?640x360|}}+{{:canon_30d_raspberry_pi_trigger_test_video.mp4|950x574|autoplay,loop}}
 \\  \\ 
 \\  \\ 
 This code will form the start of my Raspberry Pi Intervalometer. This will be a great tool for static time lapse photography. Once this is done then I can move on to my camera slider project. However the actual slide rails for this will I think take me some time. This code will form the start of my Raspberry Pi Intervalometer. This will be a great tool for static time lapse photography. Once this is done then I can move on to my camera slider project. However the actual slide rails for this will I think take me some time.
 \\  \\ 
remote_fire_camera_via_gpio.1486238915.txt.gz · Last modified: 2023/03/09 22:35 (external edit)