TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136618 times)
  2. FAT32 Library (69823 times)
  3. Network Ethernet Library (55883 times)
  4. USB Device Library (46221 times)
  5. Network WiFi Library (41859 times)
  6. FT800 Library (41074 times)
  7. GSM click (28942 times)
  8. PID Library (26401 times)
  9. mikroSDK (26315 times)
  10. microSD click (25328 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Alarm System 12V Lead Acid Battery Charger (Simple Example Version)

Rating:

0

Author: Petar Timotijević

Last Updated: 2016-02-20

Package Version: 6.0.0.0

Example: 1.0.0.0

Category: Power supply

Downloaded: 2317 times

Followed by: 1 user

License: MIT license  

Device purpose is to maintain alarm system 12V battery on float charge voltage.
When battery voltage reach or go above 13,80V charger is disconnected.
In : ADC 0-5V Out : LCD 0-18V
RA1 is ADC input. RC0 is output to control charger.
RC0 On &lt;= 13,80V &gt; RC0 Off

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Alarm System 12V Lead Acid Battery Charger (Simple Example Version)" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Alarm System 12V Lead Acid Battery Charger (Simple Example Version)" changes.

Do you want to report abuse regarding "Alarm System 12V Lead Acid Battery Charger (Simple Example Version)".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

Battery is Empty (Deep Cycle type)

Battery is Empty (Deep Cycle type)

ADC Step 600 Voltage 10,5V

View full image
Battery is Empty (Starter type)

Battery is Empty (Starter type)

ADC Step 682 Voltage 11,99V

View full image
Battery is Full (Voltage 24h after charging process is finished and in resting state)

Battery is Full (Voltage 24h after charging process is finished and in resting state)

ADC Step 724 Voltage 12,72V-12,73V

View full image
Float Charging Voltage

Float Charging Voltage

ADC Step 785 Voltage 13,8V

View full image
Cycling charging voltage

Cycling charging voltage

ADC Step 820 Voltage 14,4V

View full image

Device use float charge method and monitor battery voltage.
When battery voltage reach or go above 13,80V charger is disconnected.

Compiler  : Compiler MikroC 6.00
Dev sys   : EasyPIC7 Development Board
Platform  : PIC18F45K22 32MHz (8MHz Crystal 4x PLL)
Version   : 1.0 - 08.07.2013

ADC 10-bit 0-5V  0-1024

In  : ADC 0-5V
Out : LCD 0-18V

RA1 is ADC input.
RC0 is output to control charger.
PortB(RB0-RB5) LCD output.

Charger is On if voltage is bellow 13,80V (RC0 is 1).
Charger is Off if voltage is above or equal 13,80V (RC0 is 0).

Output Conditions:
=========================
At >= 13,80V RC0 Turn Off LED-output control (Step 785 - 13,799V).

Use appropriate voltage divider configuration to adjust ADC input in 0-5V range.

ALSO FROM THIS AUTHOR

LCD 2x16 ADC Steps to Progress bar / Bargraph

5

EasyPIC v7, PIC18F45K22 32MHz, 8MHz crystal oscillator, PLL Enabled. Description: ADC voltage on RA0, show ADC steps in first row and progress bar / bargraph in second row. Progress bar represents ADC steps in range from 0-1023.

[Learn More]

Knight Rider

5

Knight Rider 1.0 for EasyPIC7 8 LEDs on PORTC

[Learn More]

ADC Code Examples for Various Offset Ranges

5

ADC Input: 0-5V Output 2x16 LCD: 0-5V ADC Input: 0-5V Output 2x16 LCD: 0-20V ADC Input: 0-5V Output 2x16 LCD: -25A 0 +25A ADC Input: -10V 0 +10V Output 2x16 LCD: 0-5V ADC Input: -2,5V 0 +2,5V Output 2x16 LCD: -2,5V 0 +2,5V ADC Input: -20V 0 +20V Output 2x16 LCD: 0-5V ADC Input: -5V 0 +5V Output 2x16 LCD: 0-5V

[Learn More]