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

    And it works, the led flashes 600 times (I know I've counted them)
    That is a heck of a lot of caterpillars!!!!!!
    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

    That is a heck of a lot of caterpillars!!!!!!
    Lol...........Can't be too careful here though, checkout the link below

    http://www.arkive.org/cuckoo/cuculus...video-09c.html

    I need to do some thinking for the next part of the program. I'm going to need another pin as an input for the counter from the sensor and another pin as an input from an LDR to tell the PIC when it's dark and send the days count_data over. I guess I won't be able to use the two pins with buttons on (GPIO.3/4).

    Question: How quick does a PIC wake_up from sleep with an IOC?

    Steadily moving along.

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    That bird doing the feeding better not fall into the nest, it might end up being lunch...

    Question: How quick does a PIC wake_up from sleep with an IOC?
    @SLEEP
    From a data sheet
    The power-down Status bit, PD is
    cleared. Time-out Status bit, TO
    is set. Watchdog Timer and its
    prescaler are cleared.
    The processor is put into Sleep
    mode with the oscillator stopped.
    But even though the OSC is stopped the IOC pin(s) are still active. When the changes occurs the device "wakes up".

    The PBP SLEEP command is different. The device will sleep for a given time period.

    So I think to answer the underlying question... You only need one of the buttons.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Thanks for that mackrackit.

    I was thinking that the TX will work in a kind of fully automatic mode, no actual button pressing to transmit the days data_count over. The trigger for this would be the LDR sensing it's dark(so no more feeds / visits) turning a pin high that then triggers the transmit.

    This the pin-out as is stands is below:

    GPIO.0 - Pot - R1
    GPIO.1 - Pot - R2
    GPIO.2 - Data_out
    GPIO.3 - SW2
    GPIO.4 - SW1
    GPIO.5 - RF_Enable

    So I'm thinking I need two more input pins (one for the sensor the other for the LDR) Pots R1 - R2 look favourite to me, do you think they'd be ok as inputs.

    Dave
    Last edited by LEDave; - 1st December 2010 at 20:01.

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


    Did you find this post helpful? Yes | No

    Default

    Maybe I am missing something..
    Do you want data sent at each sensor trigger?
    Have the sensor on one of the pins currently used for a switch.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit

    Do you want data sent at each sensor trigger?
    No I don't think so, a whole days visits in one transmit will do the job.

    Have the sensor on one of the pins currently used for a switch.
    Well initially I thought ah, just bye-pass the switch then thought I can't do that as it's in series with the pin but once again you inspire me mackrackit, RA3 / 4 bye-pass the switches straight onto GPIO.3 / 4 the switches are connected to ground when pressed (if that makes sense) so looking good to go.

    That bird doing the feeding better not fall into the nest, it might end up being lunch...
    I know, you gotta feel for the feeder, overworked or what

    I almost forgot, I've had a look at RS / Maplins for a product similar to header J3, it would be really handy to be able to just plug the RX / TX modules in and out but can't find anything, I'm going to email Microchip and ask them for a UK supplier and spec.

    Dave
    Last edited by LEDave; - 1st December 2010 at 21:29.

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


    Did you find this post helpful? Yes | No

    Default

    Do you have mouser over there?
    If so look at type "D"
    http://www.mouser.com/catalog/catalogUSD/642/1419.pdf
    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