Help with DS2436 Voltage monitor


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    "Can you correct following code?"

    This forum tends to take the "teach a man to fish" attitude. We try to provide people with information to assit them with problems not solve them for the person. I and others are more than happy to assist you with specific problems or questions. Keep in mind we don't have a schematic and often don't know what the intentions of your design are.

    Your code seems very close to being correct. Make sure you have read through the section at the back of the manual about the differences between PICBasic and Stamp. That will help.

    I do see that you have a bunch of debug commands which I would assume are supposed to be text sent to the LCD; if so check out the LCDOut command. These debug statements are causing your errors, lcdout should remedy this. You will also want to specify the xtal speed you are using with the following command at the top of your program:

    DEFINE OSC 20 ; 20mhz XTAL (change notes above)

    Beyond that I found that the search function in the forum will turn up a lot of useful info. I too was a beginner once so I understand the challenges you are facing; that being said you have a jumpstart since what you have works on a stamp.
    Last edited by DynamoBen; - 30th July 2006 at 23:22.

  2. #2
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Posts
    31


    Did you find this post helpful? Yes | No

    Talking DS 2436 voltage monitor

    Hello DynamoBen.
    I couldn’t agree with you more! I’m talking about “teach a man to fish attitude”.
    But like anyone else living on this planet I’m trying to find easiest ways first. Another point I’m just started reading PIC BASIC Pro manual, and as English isn’t my native language it probably takes me about a week to finish. I’m very impatient person and after I spent almost 300 CAD I’d really like to accomplish something in first two days. Especially DS2436 voltage monitor project, as I already tried to put through on Basic Stamp II, unsuccessfully unfortunately. That’s why my attempt to put problems on somebody’s shoulders is not a habit; it is just exiting about new “toy” and wish to play with it as soon as possible. I assure you in few weeks I will be familiar with PIC Basic and I will write such program from scratch myself.
    Anyway, thank you for your messages I will check up web site for similar programs and hints.
    Best regards
    Vladimir

  3. #3
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Thumbs up

    The best way to learn is:

    Read and understand the datasheets and user manual
    Review the Melabs examples (some of which come from users on this forum)
    Utilize the search function above
    and most of all...experiment.

    If you still can't find your answer, go ahead and post. This forum is a wealth of information; and a nice bunch of people.

    Soon you too with be a contributing member.

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Vladimir,

    Just wanted to reinforce that Ben pretty much hit the nail on the head.

    DEBUG is your biggest problem. It's not the same in PBP.

    Something to focus in on, instead of trying to learn it all at once.
    Quote Originally Posted by DynamoBen
    Make sure you have read through the section at the back of the manual about the differences between PICBasic and Stamp. That will help.
    regards,
    Darrel

  5. #5
    Join Date
    Jul 2006
    Location
    Surrey, BC, Canada
    Posts
    31


    Did you find this post helpful? Yes | No

    Wink DS 2436 voltage monitor

    Thank you everybody for replies and advises. I corrected the code and a bit improve it. Now it works flawless.
    Thanks again

    Vladimir.

  6. #6
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Thumbs up

    See you didn't need us to correct the code, well done!

Similar Threads

  1. Voltage monitor and PWM control
    By StoneColdFuzzy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th May 2009, 16:11
  2. Voltage monitor for car battery
    By passion1 in forum mel PIC BASIC Pro
    Replies: 50
    Last Post: - 23rd April 2008, 21:47
  3. Expanded Scale Voltmeter
    By Pic_User in forum Schematics
    Replies: 6
    Last Post: - 8th February 2008, 20:32
  4. voltage monitor
    By aftab in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 17th August 2007, 09:57
  5. Help with final project
    By OvERKiLL in forum General
    Replies: 4
    Last Post: - 15th December 2006, 20:35

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