ON 20021002@10:22:56 PM at page: http://www.piclist.com/techref/piclist/pcbcontest.htm CDB-optusnet-AE5 Colin D Barnard added 'Says Sprinkler & Water Usage Controller. This unit combines a 7 day, 7 event twentyfour hour timer with a water consumption/cost meter written using the Wiz-C compiler from Forest Electronics www.fored.co.uk or www.dontronics.com.au and a two line LCD is used as the display. The two units are not dependent on each other so it can be used as a liquid flow meter or as a timer . The duration ON time is a maximum of 4hours 45 minutes and the minutes increment in 15minute intervals. The timer uses the Bresenham algorithm modified by Roman Black for accuracy, and the slightly weird 'C' function for this produces the assembler statements as per Roman's original for this particular compiler. The solenoid and flow sensor were obtained from RS components and similiar flow sensors are available from Rapid Electronics in the UK. It may be possible to use a pre-built solenoid from gardening centres but this hasn't been tried. If a different flow sensor is used or you decided to roll your own the number of pulses per litre or gallon will need to be altered in the appropiate header file. Timer1 is used in compare mode and RC0 is the clock input for the flow sensor. There are 3 buttons. Menu button advances throught the 6 different options and Whole_digits(button2) and Tenth_digit (button3) perform different functions depending on the menu choice. The button format is Menu Sub Menu Button1 Button2 Button3 0 - advance menu view cost/usage totals - 1 0 Timer programming increment On day increment event 1 increment On Hour " " 2 " On Minute " " 3 " Duration Hour " " 4 " Duration Minutes " " 5 Next programming event rolls over to sub menu 0 2 Day setting Increment clock day - 3 Time setting Increment clock time Increment clock minutes 4 Unit cost setting Increment $/£ Increment c/p 5 Reset Zero Klitres/Gallons used Zero Total cost The maximum unit cost is 9.99 of your favourite currency and the maximum volume is 999,999Litres/Gallons. The unit cost is stored in flash EEPROM. The current totals are only stored after a sprinkling event. Provision is made on the PCB for an external I2C EEPROM using address 0 in case a flow meter only version is required or if it is preferred to make more frequent writes to memory. In the future it is intended to add on rain sensor to prevent sprinkling during rainy periods. After a powercut the LED will flash to show that power has been lost and a press of the menu button will start the timer up again. If a powercut happens during an On period then the usage information is lost. At start up the display will default to Day setting and you may need to zero the usage counters. The PCB has been designed using EAGLE v 4.09r2 to allow extra additions if required. The flyback diode is connected directly across the solenoid contacts. The extra file LCD_1.c has been included because I wanted the ability to use any nibble for the data lines and the Wiz-C library file only allows for the upper nibble of a port and uses the WR line. ' ON 20021003@2:51:52 PM at page: http://www.piclist.com/techref/piclist/pcbcontest.htm JMN-EFP-786 James Newton edited the page ON 20021003@2:52:39 PM at page: http://www.piclist.com/techref/piclist/pcbcontest.htm JMN-EFP-786 James Newton edited the page ON 20021005@3:17:18 PM at page: http://www.piclist.com/techref/piclist/questions.htm kentken-HotPOP- added 'Questions: http://www.piclist.com/techref/piclist/kentken@HotPOP.com What is an Error 125 in Mplab, eof or something? How do I fix this?' ON 20021006@7:32:52 AM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'change ' ON 20021006@7:33:15 AM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'delete ' ON 20021006@4:58:12 PM at page: http://www.piclist.com/techref/piclist/questions.htm D-IMC-4A6 Dean added 'Questions: Hi, I was wondering if anyone has tried to keep somewhat accurate time using only the wdt. I'm working on a project that is to be portable (thus powered by a battery) and must last a long time. Thus I cannot afford a power hungry oscillator. I am compensating for the wdt sensitivity to temperature and operating voltage but still drift at least 30 minutes a month. I'm using a PIC16F628 in my design. If anyone has tried this before and has any suggestions I would greatly appreciate it. Cheers.' ON 20021007@6:50:19 PM at page: http://www.sxlist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton added 'delete ' ON 20021009@4:31:57 PM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'change ' ON 20021009@4:32:07 PM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'delete ' ON 20021009@4:32:34 PM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'delete ' ON 20021009@4:32:58 PM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'delete ' ON 20021009@4:33:13 PM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'delete ' ON 20021009@4:33:24 PM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'delete ' ON 20021012@9:23:13 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021012@9:26:38 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021012@9:27:54 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021012@9:28:39 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton added 'See also: http://www.bubblesoftonline.com A very nice tutorial system.' ON 20021012@9:30:31 PM at page: http://www.piclist.com/techref/piclist/index.htm JMN-EFP-786 James Newton added 'delete ' ON 20021012@9:30:46 PM at page: http://www.piclist.com/techref/piclist/index.htm JMN-EFP-786 James Newton added 'delete ' ON 20021015@12:40:18 PM at page: http://www.piclist.com/techref/piclist/questions.htm MDM-arrl- Michael Dean McLaren added 'Questions: ' ON 20021015@12:41:21 PM at page: http://www.piclist.com/techref/piclist/questions.htm MDM-arrl- Michael Dean McLaren added 'Questions: Anyone have a source (Mfr, Distributor, Part #) for 40-MHz crystals for the 18FXX2 and 18FXX8 chips please??? Thanks...' ON 20021017@12:32:07 PM at page: http://www.piclist.com/techref/piclist/questions.htm EMS-SCS-MA6 Edmilton Moreira Silva added 'Questions: Hi all, I need to use an RTC (Real Time Clock) im my smart card reader project in order to record a log of all transactions. I've tried to use the Dallas' DS12887A but I couldn't get a help for that from Dallas. I'm using PIC 18F452 and I would like to use any RTC that fits to this MCU and use three pins at most. Does anyone have any suggestion on this matter? Thanks a lot in advance for those who could help me. Best Regards, Edmilton Moreira' ON 20021017@5:10:28 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton added 'archive reference http://www.piclist.org/techref/postbot.asp?by=time&id=piclist\2002\10\16\233738a PICList post "code that causes crash..." An EXCELLENT job by Myke of helping a new PIC user debug some code.' ON 20021021@9:05:57 PM at page: http://www.piclist.com/techref/piclist/questions.htm SMT-DREM-686 Shane M Tolmie added 'Questions: Hi, I'm running 2 micros off 1 crystal - has anyone got a circuit that works?' ON 20021021@9:07:18 PM at page: http://www.piclist.com/techref/piclist/questions.htm SMT-DREM-686 Shane M Tolmie added 'Questions: Hi, I'm running 2 micros off 1 crystal - has anyone got a circuit that works? My email address is shane@@designrem.com.' ON 20021023@7:59:28 PM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'change ' ON 20021023@8:00:00 PM at page: http://www.piclist.com/techref/piclist/begin.htm rsd-CS-P86 Ranjit Diol added 'delete ' ON 20021024@11:01:09 AM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton added 'change ' ON 20021024@11:07:50 AM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021024@11:15:37 AM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021024@3:43:14 PM at page: http://www.piclist.com/techref/piclist/index.htm FRT-MEE-8OO Fábio Rueda Toledo added 'Questions: Hello !!! My name is Fábio. And I'm looking for informations about audio signals. Especificaly Eletronic Drums Audio Signal. I'm very interesting to do an eletronic drum toy using PIC, but I don't know how I can make the drums noise. Somebody can help me with that ??? Thank you. Fábio A. Rueda de Toledo fabio_toledo@ig.com.br ' ON 20021024@5:29:19 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021024@5:37:09 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021024@5:42:57 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021024@5:43:29 PM at page: http://www.piclist.com/techref/piclist/begin.htm JMN-EFP-786 James Newton edited the page ON 20021029@1:49:21 PM at page: http://www.piclist.com/techref/piclist/questions.htm JMN-EFP-786 James Newton added 'change ' ON 20021029@1:49:46 PM at page: http://www.piclist.com/techref/piclist/questions.htm JMN-EFP-786 James Newton added 'change ' ON 20021031@1:10:11 AM at page: http://www.piclist.com/techref/piclist/projects.htm G-hotmail-C43 Gabriel added 'Questions: Hi, My name is Gabriel.., I am trying to do a game of tic-tac-toe with the pic 16f84, anybody knows any idea in how can i do that, thanks in advance...'