12f675_fuse_about_to_blow!


Closed Thread
Results 1 to 40 of 929

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Same problem here with time and now I find out that I am getting sent "out of town" for a couple weeks. Not sure how much I will be online for a while.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Same problem here with time and now I find out that I am getting sent "out of town" for a couple weeks. Not sure how much I will be online for a while.
    Put your Boss on, I'll have a word (unless you're being sent to Hawaii or similar?)

    These things happen from time to time. As the BBC say 'Normal service will resume shortly'.

    Have a good trip.

    Dave

  3. #3
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit,

    I hope your working out of Town is going well and not causing you too many problems?

    I've been working on the Servo 'Badger' project these last couple of nights (I've actually been able to make some spare time)

    The project is coming along well now. The PIR puts a 5V input onto PORTC.3 on the PIC which in turn puts a PULSE onto the servo which then moves up and operates the cable release to start the camera. When I finally finish the whole thing I'll put the code up.

    Anyway I hope you're keeping well.

    Dave

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Glad the project is going well. Maybe you can post a picture of a badger soon
    Things here went better than expected, now I am back in the shop trying to get caught up on other things... it never ends
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Glad the project is going well. Maybe you can post a picture of a badger soon
    I should have it rigged to go for the weekend so fingers X'd.

    I'm still amazed at the versatility of these PIC's though, is there anything they can't do circuit wise?

    Things here went better than expected, now I am back in the shop trying to get caught up on other things... it never ends
    Pleased it went well, like you say though....it never does end

    Take it easy.

    Dave

  6. #6
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Well I spent hours writing a program to operate a video camera to film the 'Badger' only to find out that the video camera after five minutes powers down and a switch has to be pushed up to re-activate into record mode and then the record button pressed. So a non starter after all that.

    I then hooked out my old but simple digital stills camera and re-wrote the program to activate that.The camera stays 'on' when powered up using the mains adaptor so no power down problem and I've turned the LCD display off.

    All I need to do now is make a simple board up for the PIC (It's on breadboard at the moment) and I should be in business tomorrow night.

    Probably not the most accurate program ever written, then again I couldn't turn an LED on this February anyway here's the code:

    Code:
    ANSEL   = %00000000    'Disable analog select so ports work as digital i/o.
    CMCON0  = %00000111    'Disable analog comparators.
    TRISA   = %00000000    'Set PORTA as OUTPUT.
    PORTA   = %00000000    'Set PORTA pins all low.
    TRISC   = %00001000    'Set PORTC.0 as INPUT.
    PORTC   = %00000000    'Set PORTC pins all low.
    
    
    x var byte          'Loop counter Variable
    Servo var PORTC.1   'Servo control output_pin
    PORTC = 0           'Setup for high_pulsout
    
    
    MAIN:
    PAUSE 50
    FOR X = 1 TO 20
    PULSOUT Servo,180  'Set the Servo_Arm_Pos (Ready to take a picture)
    PAUSE 20
    NEXT X
    
    LOOP1:
    PAUSE 50
    IF PORTC.3 = 0 THEN FIRE: 'PIR Activated (Badger present?)(N/C Contacts opened).
    IF PORTC.3 = 1 THEN LOOP1:'PIR Not activated loop until it is.
    
    FIRE:              'Take a picture routine
    PAUSE 50
    FOR X = 1 TO 20
    pulsout servo,130  'Servo_arm moves cable release to take picture
    PAUSE 50
    NEXT X
    pause 1000         'Time for shutter to fire
    FOR X = 1 TO 20    'Cable release for camera released / picture taken
    PULSOUT Servo,180  'Servo_arm moves back releases cable release
    PAUSE 50
    NEXT X
    
    PAUSE 10000        'Wait 10 sec's for Camera flash to recycle / recharge
    goto LOOP1:
    What do you think?

    Dave

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Looks like you are coming right along!

    But I am curious about one thing...
    What do you plan to do when you find out it is a badger?
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts