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 (139560 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57254 times)
  4. USB Device Library (47609 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42551 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26930 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
mikroSDK Library

Analog Input Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-07-09

Package Version: 2.0.0.23

mikroSDK Library: 2.0.0.0

Category: Force

Downloaded: 250 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.23
  • Date : July 2024.

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

IR Sense 2 Click

0

IR Sense 2 Click is the infrared sensor Click board™, designed to be used for the short range IR sensing applications.

[Learn More]

Hydrogen Click

0

Hydrogen Click carries an MQ-8 sensor for hydrogen (H2). The gas sensing layer on the sensor unit is made of tin dioxide (SnO2), which has lower conductivity in clean air.

[Learn More]

Accel 13 Click

0

Accel 13 Click features an ultra-low power triaxial accelerometer sensor with embedded intelligence, labeled as the IIS2DLPC.

[Learn More]