RFID medicine teller!! problem with programming


Closed Thread
Results 1 to 23 of 23

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

    OK.
    MCS is not a compiler. But I will take it you are using Pic Basic or Pic Basic Pro?

    What I meant was how much programing have you done so far?

    Are you needing help with the timer part? Try looking at these:
    http://www.picbasic.co.uk/forum/show...=olympic+timer
    http://www.picbasic.co.uk/forum/show...=olympic+timer

    Or are you completely new and need help with something else?
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Nov 2008
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Time.txt

    RFID sample.txt

    here have sample that i took from my senior.. the project quite similiar with my project. while, the time posted from me is what i took from website. hope that can help you.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sknee8787 View Post
    hope that can help you.
    Now I am confused. I thought you were the one asking for help.

    Start off by getting the timer code working on your chip. Then work on having an event happen at a certain time. That event for testing would be a LED blink in a certain sequence. That is what you want , correct?

    But if this is your first time, write some code to make a LED blink to make sure everything is running, then work on using the display.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Nov 2008
    Posts
    11


    Did you find this post helpful? Yes | No

    Unhappy

    sorry i make you confused.
    the purpose i do is RFID medicine teller. since i posted the step in previous. that is what i want.

    the sample of RFID that i posted is only a guidance. i want to let you more easily to understood what i want. because that sample is also a RFID. i try to modify it on medicine teller.

    the problem is i dunno how to write the program code as well. please help me

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


    Did you find this post helpful? Yes | No

    Default

    Lets start off getting familiar with the chip and and make the LED blink first.

    In the PBP directory you will find *.inc files. Comment out the config lines like it is shown here.
    http://www.picbasic.co.uk/forum/show...75&postcount=5

    We will be setting the configuration in code space. The above thread is talking about how this is done.

    I will also assume and /or suggest you have MPLAB installed and tell MCS to use MPASM.
    And I will assume and suggest you use a resonator for the OSC.
    All the above said, the begining of your code will look like this:
    Code:
    DEFINE OSC 20  ' If the resonator is 4MHz then replace 20 with 4
    '##The line below is the config line
    '##The OSC is HS for resonators,WatchDogTimer is OFF,LowVoltagePrograming is OFF
    '##CodeProtection is OFF and BrownOut is OFF
    @ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF &_BODEN_OFF
    Then we will turn off the ADC and Comparators
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Code:
    ADCON1=7
    CMCON=7
    Then connect an LED to PORTC.7 with a 470 resistor.
    And make it turn on for .25 seconds and off for .25 seconds.
    Code:
    LOOP:
    HIGH PORTC.7
    PAUSE 250
    LOW PORTC.7
    PAUSE 250
    GOTO LOOP
    See if you can get that working and the we will go after the LCD display.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Nov 2008
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    erm... easy way..
    i want setting the time 12:10:00 am/pm on my LCD display
    how to program it?? as i know is:

    if hour = 12 and minute = 10 second = 00 then run

    run:
    reqout#(code) and so on...


    can you help me correct it? whereby that i have wrong with the program.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sknee8787 View Post
    can you help me correct it? whereby that i have wrong with the program.
    Post the code you wrote and we will see what is wrong.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. 16F676 programming problem
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th May 2009, 17:39
  2. PIC18F4620 Programming problem
    By JavPar in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 6th December 2008, 04:21
  3. bh 1415f and picbasic problem
    By patricx in forum Off Topic
    Replies: 3
    Last Post: - 18th September 2007, 22:19
  4. Programming Problem with PIC16F819
    By Dick Ivers in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 24th July 2007, 18:42
  5. Problem programming the PIC16F648A
    By Edgardo_2 in forum General
    Replies: 2
    Last Post: - 29th December 2006, 00:02

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