That is a heck of a lot of caterpillars!!!!!!And it works, the led flashes 600 times (I know I've counted them)![]()
That is a heck of a lot of caterpillars!!!!!!And it works, the led flashes 600 times (I know I've counted them)![]()
Dave
Always wear safety glasses while programming.
Lol...........Can't be too careful here though, checkout the link belowThat is a heck of a lot of caterpillars!!!!!!![]()
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
That bird doing the feeding better not fall into the nest, it might end up being lunch...
@SLEEPQuestion: How quick does a PIC wake_up from sleep with an IOC?
From a data sheet
But even though the OSC is stopped the IOC pin(s) are still active. When the changes occurs the device "wakes up".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.
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.
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.
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.
Hi mackrackit
No I don't think so, a whole days visits in one transmit will do the job.Do you want data sent at each sensor trigger?
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)Have the sensor on one of the pins currently used for a switch.so looking good to go.
I know, you gotta feel for the feeder, overworked or whatThat bird doing the feeding better not fall into the nest, it might end up being lunch...
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.
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.
Bookmarks