TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139566 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57255 times)
  4. USB Device Library (47615 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42566 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26933 times)
  10. microSD click (26309 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

ADC Code Examples for Various Offset Ranges

Rating:

5

Author: Petar Timotijević

Last Updated: 2013-06-07

Package Version: 6.0.0.0

Example: 1.0.0.0

Category: Measurement

Downloaded: 2156 times

Followed by: 1 user

License: MIT license  

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


No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "ADC Code Examples for Various Offset Ranges" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "ADC Code Examples for Various Offset Ranges" changes.

Do you want to report abuse regarding "ADC Code Examples for Various Offset Ranges".

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

Example Blog

LCD Screenshots

LCD Screenshots

Example for ACS712-20 20A Hall Sensor from -20A to +20A Step 1 (ADC 1-1023)

View full image
LCD Screenshots

LCD Screenshots

Example for ACS712-20 20A Hall Sensor from -20A to +20A Step 256 (ADC 1-1023)

View full image
LCD Screenshots

LCD Screenshots

Example for ACS712-20 20A Hall Sensor from -20A to +20A Step 512 (ADC 1-1023)

View full image
LCD Screenshots

LCD Screenshots

Example for ACS712-20 20A Hall Sensor from -20A to +20A Step 768 (ADC 1-1023)

View full image
LCD Screenshots

LCD Screenshots

Example for ACS712-20 20A Hall Sensor from -20A to +20A Step 1023 (ADC 1-1023)

View full image

For each ADC Offset use appropriate voltage divider or OpAmp configuration to ensure ADC input in 0-5V range.

Each example have LCD screenshots, and can be adjusted for other values.


7 ADC Examples :

ADC  Input: 0-5V  Output 2x16 LCD: 0-5V
ADC  Input: 0-5V  Output 2x16 LCD: 0-20V (Example for voltmeter 0-20V)
ADC  Input: 0-5V  Output 2x16 LCD: -25A 0 +25A (Example for ACS712-20 20A Hall sensor)
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

ALSO FROM THIS AUTHOR

Multiple Screens on LCD 2x16

0

LCD 2x16 Multiple Screens EasyPIC7 Development System Board PIC18F45K22 32MHz (4xPLL) or any other Enable LCD Backlight on DIP SW4 switch 6. Enable PortC on DIP SW3 switch 3. Set pull-down for RC0,RC1. Use RC0 to go left. Use RC1 to go right. In while loops add your instructions. Best regards, Peter

[Learn More]

1-Wire Read Serial Number and Temperature DS18B20 or DS18S20

5

1-Wire Read Serial Number and Temperature DS18B20 or DS18S20 Development Board : EasyPIC 7 Microntroller : PIC18F45K22 32MHz (can be other) Sensors : DS18B20, DS18S20 Code recognize type of sensor and print sensor name and unique serial number with temperature on 2x16 LCD. Tested & Works 100%

[Learn More]

Log ADC Values when button is pressed in internal EEPROM

0

Log ADC Values when button is pressed in internal EEPROM RD0 - Start Log RD1 - Erase complete EEPROM LCD shows current ADC steps and voltage in 0-5V range. Each time when RD0 is pressed uC take 8 samples from ADC in intervals of 3sec and stop. PortC LEDs shows progress of sampling each byte in EEPROM like bargraph.

[Learn More]