+ Post New Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 20 of 45
  1. #1
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    Hi, I need a PIC program for my project,there it is required to display the present battery volage in a seven segmant disply and wants to switch on a circuit when it will reach in predetermined value.For example if we set the circuit to 10V,then when the diplay monitor the value '10" then it is required to switch on the circuit automatically.It is important that the switching circuit must only depends on the value that displayed on the sevan segmant display.

  2. #2
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    Can you use LCD instead of 7 Segment display?



  3. #3
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    may be...but I think 7 segment is the better one for voltage indicators..right??..



  4. #4
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    I haven't written programs for 7 Seg. I can do it with LCD.



    •   AltAdvertisement

        
       

  5. #5
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    okay..then if you don't mind can you help me with that?.but it is important that the switching circuit must depend on the the displayed value only...i



  6. #6
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    let us say adc value = 12.6 volts and user limit is also 12.6 volts then with the following code you can turn on or off a relay for the prescribed value

    Code:
     if(adc_value >=12.6) {
                          PORTD.F0 = 1;
              }
    PORTD.F0 is a relay which disconnect the power or load. Which PIC do you want to use. PIC with 10bit adc or 12 bit adc?

    Check the circuit. Is your circuit like this? Post your circuit? How are you entering values for setting the voltage limits? Are you using incrment/decrement keys or are you using keypad? Should there be a provision to store the set values in eeprom, so that the value is read after a power failure?

    What is the range of voltage you are measuring?

    Download this video and see. It is set that if volt is >= 10 volts then toggle the relay.
    Last edited by internetuser2k12; 13th September 2012 at 16:23.



  7. #7
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    No..My circuit is different from this....but the circuit is only for to monitor the battery voltage,I want to modify this...Click image for larger version. 

Name:	voltmeter.jpg 
Views:	28 
Size:	48.8 KB 
ID:	80190



  8. #8
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    Then post your circuit.



  9. #9
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    And this is some photos of the current volt meter

    - - - Updated - - -



    - - - Updated - - -

    this is my circuit

    - - - Updated - - -

    this is the current one



  10. #10
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    Do you want to use PIC16F676. Can you tell me which pins the lcd should be connected? Which pins the relays should be connected? What is the range of voltage you want to measure?



    •   AltAdvertisement

        
       

  11. #11
    Advanced Member level 5
    Points: 38,590, Level: 48
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    Tahmid's Avatar
    Join Date
    Jun 2008
    Location
    Silicon Valley, California, USA (from Dhaka, Bangladesh)
    Posts
    4,758
    Helped
    1799 / 1799
    Points
    38,590
    Level
    48
    Blog Entries
    22

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    Let's assume the 10k pot is adjusted to give approximately 5.2k ohm resistance. So, the input is divided by 10. So, a 30V input gives 3V to the ADC input pin.

    RA4 is AN3 - ADC channel 3. Sample the input and save the ADC result.

    Calculate what voltage is represented by the corresponding ADC result. Generate the signals accordingly and drive the 7 segments.

    Use the ADC value and compare it to the value that would have been received at the low-voltage.

    Before all of this, you must make sure you know how to use the ADC properly. Then, you must know how to interface with 7 segments.

    Hope this helps.
    Tahmid.


    1 members found this post helpful.

  12. #12
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    hi,This is what need to do....



  13. #13
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    I said cant you use LCD? I told you I haven't used 7 Segments.

    Check the video.
    Last edited by internetuser2k12; 14th September 2012 at 06:04.


    1 members found this post helpful.

  14. #14
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    okay..if we use LCD,is it more easy???....I am less experienced with PIC programming thats why I am asking...can I replace the 7-segment with LCD in my circuit???



  15. #15
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    Which PIC do you want to use? We need 6 pins for LCD. Check the video in my last post. sim4.rar



  16. #16
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    we can use any PIC...but the 16f676 and 877a are easily available here



  17. #17
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    Then you can use my design with PIC16F877A. Are you using external / internal oscillator. What is the oscillator frequency?



  18. #18
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    I think it is better to use external oscillator...I am planning to do with a frequency if 8Mhz



  19. #19
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    Quote Originally Posted by pradeep_k_b View Post
    I think it is better to use external oscillator...I am planning to do with a frequency if 8Mhz
    Check this simulation with proteus.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  20. #20
    Full Member level 3
    Points: 2,082, Level: 10
    Achievements:
    Created Album pictures 7 years registered
    pradeep_k_b's Avatar
    Join Date
    Dec 2011
    Location
    Nilambur, India
    Posts
    154
    Helped
    0 / 0
    Points
    2,082
    Level
    10

    Re: Looking for a PIC program for battery voltage indicator cum cut off circuit.....

    I am sorry,I don't have the Proteus...is it a free software ??or can I download any demo versions??



--[[ ]]--