TOP Contributors

  1. MIKROE (2655 codes)
  2. Alcides Ramos (353 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 (136781 times)
  2. FAT32 Library (69977 times)
  3. Network Ethernet Library (55948 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41184 times)
  7. GSM click (28987 times)
  8. PID Library (26419 times)
  9. mikroSDK (26372 times)
  10. microSD click (25381 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: 93 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

SMS Home Alarm 2

5

This is revised SMS Home Alarm System project with new parts and old function - catch the intruder. When motion sensor detects a movement SMS will be sent to predefined number. If movement is still detectable after disarming delay, Siren or any other device can be activated with help of Relay click.

[Learn More]

Hall current 2 Click

5

Hall current 2 click is a very accurate current measurement Click board, which relies on the Hall effect. The maximum current which can be measured with the Hall current 2 ranges from -12A to +12A, with optimized precision.

[Learn More]

6LoWPAN clicker

0

6LoWPAN clicker is a compact development board with a mikroBUS socket for click board connectivity. It carries Microchip’s PIC32MX470F512H - 120 MHz/150 DMIPS, MIPS32® M4K® core microcontroller. And CA-8210 2.4GHz ISM band transceiver, which allows you to add wireless communication to your project.

[Learn More]