Jump to content
diesel

Aio Board Test

Recommended Posts

I have been putting my boards together . Is ther a way I can test the boards to see if they work and are ok before I put them in a build or connect them to a camera ?

Share this post


Link to post
Share on other sites
 

 

I always temporarily hook up everything to any circuit I build to see if it works like I expect, etc. before ever putting it in an enclosure. Mine hardly ever work the first time around LOL. There will be jumper wires connecting the cam, ir arrays, etc all over my work bench. I don't know of any other way......

Share this post


Link to post
Share on other sites
 

I came up with this a while back by modifying an existing code and adding a bit to it. This does not test the PT for flash sensing and collecting if I recall. Take a look at the code and see. It makes sure all the outputs work.

You need to have a working camera and slave flash hooked to the board. I thought I had posted this before, but I can't find it no matter how I search for it.

 

 

#picaxe20x2                
'#terminal 9600
#no_data
#no_table
disablebod

'=====================================================
' Map Ports
'=====================================================
Symbol PT_IN = B.0        ' Photo Transistor input
Symbol CDS_Out = C.5        ' Output to LDR voltage Divider 
Symbol Flash_Out = C.4      ' slave flash opto
Symbol Flash_Charge = C.3     ' Flash Charge Mosfet
Symbol PT_Out = C.2    ' ADC Input for battery monitor
Symbol LDR_IN = B.5        ' LDR ADC Input
Symbol Shutter_Out = B.4    ' Shutter Mosfet
Symbol Power_Out = B.3        ' Power Mosfet
Symbol LED_Out = B.2        ' LED 
Symbol PIR_In = B.1
Symbol Byte_Var = B2


'=====================================================
' Set Port Directions
'=====================================================
Input PT_IN
Output CDS_Out
Output Flash_Out
Output Flash_Charge
Output PT_Out
Input LDR_IN
Output Shutter_Out
Output Power_Out
Output LED_Out
Input PIR_In
Output C.7
Output C.0    
Output B.7
Output A.0


'=====================================================
'Pullups
'=====================================================
'Disable all PUs
    pullup %00000000

'=====================================================
' Configure ADC
'=====================================================
    adcsetup = %010000000000           'make adc 10 a input

    hintsetup %00100010    'set HINT1(FLASH) to trigger Interrupt at rising edge
    Setintflags %00000010,%00000010      'enable interrupt flags
    
Main:

    High LED_Out
    Sleep 2
   
    'Test Camera Power & Shutter
    sertxd ("Power On ",13,10)
   GoSub CamPWR
   Sleep 3
    sertxd ("Shutter ",13,10)
   GoSub Shutter
   Sleep 3
    sertxd ("Power Off ",13,10)
   GoSub CamPWR
   
   Byte_Var = 6 '3 blinks
   GoSub Blink
   
   
   'Testing Slave Charge and Fire
    sertxd ("Slave On ",13,10)
   gosub Slave_Charge 
   Sleep 1
    sertxd ("Slave Fire ",13,10)
    High Flash_Out
    doze 1
    Low Flash_Out
    
   Byte_Var = 12 '6 blinks
   GoSub Blink    


    'Testing PT
    gosub Slave_Charge
    High PT_Out
   Sleep 1
    GoSub slowBlink    
    Low PT_Out
    sleep 3
    
    'Testing Complete
    Low LED_Out
    Sleep 2
    
    Gosub fastBlink
    
GoTo Main



Blink:
    Do
        Toggle LED_Out
        Pause 200
        dec Byte_Var
    Loop While Byte_Var > 0
Return
    
slowBlink:
    ' 5 seconds to test the flash sensing
    For Byte_Var = 0 To 9
    Toggle LED_Out
    Pause 500
    Next

Return

fastBlink:
    
    For Byte_Var = 0 To 99
    Toggle LED_Out
    Pause 50
    Next

Return

CamPWR:
    High Power_Out
    pause 750
    Low Power_Out
Return

Shutter:
    High Shutter_Out
    Sleep 2    'Held for a long time to be sure it works for slow cams
    Low Shutter_Out
Return 

Slave_Charge:
    High Flash_Charge
    Pause 30000 ' charge for 15sec
    Low Flash_Charge
Return

Interrupt:
    
    High Flash_Out
    doze 1
    Low Flash_Out

Return

Share this post


Link to post
Share on other sites
 

tbass this will work with any camera ?

 

Must likely will not work with a Samsung 503 correct ?

 

Thanks

 

Share this post


Link to post
Share on other sites
 

For the 3 wires cams. I don't know how one of the 503's hooks up, so I can't say for sure.

Share this post


Link to post
Share on other sites
 

Larry,

 

I thought someone had posted a code that would test the board as fa as power on and the PIR, but I can't find it on any of the six forums I hit!

Maybe someone else will remember and link to it?

Ed

Share this post


Link to post
Share on other sites
 

Check with Ron. For some reason I thought he had soldered up a breadboard for this, may be totally wrong as usually but wouldn't hurt to try.

Share this post


Link to post
Share on other sites
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×