TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137078 times)
  2. FAT32 Library (70222 times)
  3. Network Ethernet Library (56094 times)
  4. USB Device Library (46409 times)
  5. Network WiFi Library (42028 times)
  6. FT800 Library (41373 times)
  7. GSM click (29109 times)
  8. mikroSDK (26553 times)
  9. PID Library (26487 times)
  10. microSD click (25483 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
mikroSDK Library

Analog Input Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.0.0.21

mikroSDK Library: 2.0.0.0

Category: Force

Downloaded: 116 times

Not followed.

License: MIT license  

The application demonstrates Analog input SDK functionality.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Analog Input Demo" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Analog Input Demo" changes.

Do you want to report abuse regarding "Analog Input Demo".

  • Information
  • Comments (0)

mikroSDK Library Blog

Analog Input DEMO

This is a simple example of analog-digital converter that utilizes mikroSDK 2.0 ADC driver library. Conversion results are represented on port A (and port B in case of 8-bit MCU) LEDs and can also be seen on the Standard output - Application output or UART, determined by the chosen setup.


  • Author : MIKROE
  • Version : 2.0.0.21
  • Date : June 2023.

Hardware support

  • Analog input voltage needs to be in range from 0 to VREF volts on the MIKROBUS_1_AN pin. Place a click with potentiometer in mikroBUS 1, such as POT click.
    • image
  • Turn on PORT LEDS
    • image

Software Support

We provide code for demonstrating the usage of functions contained in Analog In driver library. To run this example, follow these steps:

  1. Install the package from Package manager.
  2. Open example.
  3. It will take you to setups, so make one for your hardware.
  4. Choose adequate setup and the project will open.
  5. Program the example by clicking on Flash.
  6. You should be able to see the digital representation of the voltage value on port A.
  7. NOTE: ADC values can also be visible in Application output through debug or on UART terminal if setup with that selection is chosen.

example


ALSO FROM THIS AUTHOR

GPS 3 click

0

GPS3 click carries Quectel’s L80 GPS module, a high-sensitivity ultra slim GPS module with a patch antenna.

[Learn More]

LDC 1101 click

5

LDC1101 click is an inductance-to-digital converter Click Board. It is designed for a range of different applications, based on the inductivity measurements. You can use it to detect the position, rotation, or motion of an object. LDC1101 carries the LDC1101, the integrated, high-resolution, high-speed, inductance-to-digital converter.

[Learn More]

Step Up click

0

Step Up Click is a fixed frequency DC-DC step-up (boost) regulator, which can be obtained from any low voltage input - such as NiCd, NiMH or one cell Li-Po/Li-Ion batteries.

[Learn More]