TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (385 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 (139843 times)
  2. FAT32 Library (72209 times)
  3. Network Ethernet Library (57392 times)
  4. USB Device Library (47740 times)
  5. Network WiFi Library (43364 times)
  6. FT800 Library (42700 times)
  7. GSM click (29980 times)
  8. mikroSDK (28440 times)
  9. PID Library (26989 times)
  10. microSD click (26398 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: 275 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

LLC I2C click

6

LLC I2C click can be utilized as the level converter for the logic signals, which makes it a very useful Click board. The topology of this logic level conversion (LLC) circuit is perfectly suited for the bi-directional I2C communication.

[Learn More]

RTC 6 click

6

RTC6 click carries Microchip’s MCP79410 Real-Time Clock/Calendar IC with built-in 64 bytes of battery-backed SRAM an additional 1 Kbit of EEPROM.

[Learn More]

Hall Current 16 Click

0

Hall Current 16 Click is a compact add-on board that contains a precise solution for AC/DC current sensing. This board features the ACS37002, a 400kHz high-accuracy current sensor from Allegro Microsystems. This sensor features pin-selectable gains that can be used to configure the device to one of the four defined sensitivities and corresponding current ranges, increasing design flexibility. In addition, an adjustable overcurrent fast fault provides short-circuit detection.

[Learn More]