Page 1 of 5 12345 LastLast
Results 1 to 10 of 42

Thread: PIC checking voltage?

  1. #1
    Maximum Bitrate KyleYankan's Avatar
    Join Date
    Mar 2005
    Posts
    491

    PIC checking voltage?

    Hey everyone. I have a quick question. I want to design a PIC interface with my computer. One of the things I want is to check the voltage of my battery and send red flags up if it goes too low. Now, I know of ADC (Analog-digital converters), but not how to use them. I can't find a website either. Can anyone give me a quick tutorial, schematic and code, or anything? Thanks in advance.

  2. #2
    FLAC Mastero's Avatar
    Join Date
    Aug 2001
    Location
    India
    Posts
    1,640
    Quote Originally Posted by KyleYankan
    Hey everyone. I have a quick question. I want to design a PIC interface with my computer. One of the things I want is to check the voltage of my battery and send red flags up if it goes too low. Now, I know of ADC (Analog-digital converters), but not how to use them. I can't find a website either. Can anyone give me a quick tutorial, schematic and code, or anything? Thanks in advance.
    http://www.rentron.com/serial.htm

    You will find what your looking for

    Mastero

  3. #3
    Variable Bitrate
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    311
    PIC Basic? *gag*

  4. #4
    Maximum Bitrate KyleYankan's Avatar
    Join Date
    Mar 2005
    Posts
    491
    PICBasic? Never heard of it. I'm on my way to fireworks, il read tha ttonight though. thanks.

  5. #5
    Constant Bitrate
    Join Date
    Oct 2002
    Posts
    176

  6. #6
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    You should probably put a zener on the input pin just to keep it within the 5V range so it doesn't damage anything and increase those resistors for the higher volts.

  7. #7
    Maximum Bitrate KyleYankan's Avatar
    Join Date
    Mar 2005
    Posts
    491
    Well I just read that the PIC16F877A has 8 A2D inputs, so I ordered them and a few 4.0 mhz crystals. It's too bad I can't find any C code, because that's what I was hoping to program the rest in.

  8. #8
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    That's why I decided on the 18F2455. With the guys here using it and all the source and C compilers, it was easy. I've already got driverless USB I/O going.
    You can search forum.microchip.com for anything related. Something good might show up.

  9. #9
    Variable Bitrate
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    311
    Kyle: I think I have some C code for the 874 (same ports as 877 I believe) which was supposed to be a 0-1.5V battery tester using one pin of the ADC. If you think it would be any use I'll dig it up and any docs that went with it.

  10. #10
    Maximum Bitrate KyleYankan's Avatar
    Join Date
    Mar 2005
    Posts
    491
    rsd: if it's not too much trouble. IT makes me want t ogo back and get an assembly book. there's like NO c code for pics on the internet. at least any that I see.

Page 1 of 5 12345 LastLast

Similar Threads

  1. Need help understanding efficiency and voltage regulation
    By sansoo24 in forum Power Supplies
    Replies: 3
    Last Post: 04-22-2005, 03:45 AM
  2. Replies: 7
    Last Post: 01-14-2005, 11:56 AM
  3. What Gauge wires do I use?
    By Showmehow in forum Newbie
    Replies: 25
    Last Post: 07-25-2004, 11:41 AM
  4. ITPS and Voltage drop issues
    By Wiredwrx in forum Power Supplies
    Replies: 7
    Last Post: 04-20-2004, 07:09 AM
  5. DC-DC psu and high capacity HDD
    By GrahamS in forum General Hardware Discussion
    Replies: 46
    Last Post: 12-19-1999, 06:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •