View previous topic :: View next topic |
Author |
Message |
leonardo.crociati
Joined: 08 Jun 2008 Posts: 2
|
Control Intelligent of Medicines |
Posted: Sun Jun 08, 2008 2:38 pm |
|
|
Hello everyone,
My name is Leonardo I'm developing a project of a machine to control of medicines. My equipment is composed of six pipes where the medicines are kept, the user, through the keyboard, programs which a dosage of medicines of the pipe everything is indicated in a module LCD, the medicines are removed of the pipe through small solenoids. We are working with the PIC 16F877A. Somebody Have You already gotten to generate alarms for different hours? I'm with problems to create the software using the RTC. What is the best PCF or Dallas? Someone has some software to help me?
Regards,
Leonardo Crociati
FEI University
Brazil |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jun 08, 2008 4:37 pm |
|
|
Quote: |
I'm with problems to create the software using the RTC. What is the best
PCF or Dallas? Someone has some software to help me? |
Look in the Code Library forum. It has drivers for DS1307 and PCF8583. |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
|
crystal_lattice
Joined: 13 Jun 2006 Posts: 164
|
|
Posted: Mon Jun 09, 2008 1:31 pm |
|
|
I've used the Maxim/Dallas range of RTC's and they work OK, you can get free samples which is always nice, ST also gives samples, but i had problems getting them in my country.
I am currently using the DS1305 which has two programmable alarms. I have written some basic functions for setting the alarms and a function to set the next alarm time when it goes off to effectively create a "programmable interrupt" function to be used in a data logger application. The code uses a function to convert date to seconds elapsed and vice versa.
The code for setting the alarm has been tested but not extensively for public release. The functions for converting date to seconds elapsed is unfortunately copyrighted by another member of the forum so you will have to write/get your own. Not sure what your needs are exactly but the DS1305 fits my needs given the extra functions written.
Also look for a similar project by elizabeth_ann, might be usefull. |
|
|
leonardo.crociati
Joined: 08 Jun 2008 Posts: 2
|
Clock and alarm whith Dallas |
Posted: Wed Jun 11, 2008 3:27 pm |
|
|
Crystall, Do you have some program to acess the memory of Dallas or the interface circuit with PIC 16F877A? I've used the PCF8583, but it not working yet.
What your e-mail? I´ll send my project with more details.
Do you know how I can to contact elizabeth_ann?
Best Regards,
Leonardo |
|
|
crystal_lattice
Joined: 13 Jun 2006 Posts: 164
|
|
Posted: Sun Jun 15, 2008 11:04 am |
|
|
Do a search on the forum for ds1305 or ds1307 or even ds1302 and you will find some drivers for it, or consult you ccs installation dir, under drivers.
Do a search for users you should be able to find her. |
|
|
|