TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139250 times)
  2. FAT32 Library (71746 times)
  3. Network Ethernet Library (57117 times)
  4. USB Device Library (47429 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28074 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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: 204 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

VCP Monitor 2 click

5

VCP Monitor 2 Click is a three-channel, high-side current and bus voltage monitor with alert indication function ensuring the intended application works within desired operating conditions.

[Learn More]

Magneto 11 Click

0

Magneto 11 Click is a compact add-on board that contains an accurate and reliable magnetic sensing device. This board features the AS5510, a linear hall sensor with 10-bit resolution, and an I2C interface from ams AG. It can measure the absolute position of lateral movement of a simple 2-pole magnet. A lateral stroke of 0.5mm ~ 2mm can be measured with air gaps around 1.0mm, depending on the magnet size. The AS5510 may be switched to a Power-Down state when it is not used to conserve power. This Click board™ is suitable for position sensing applications requiring a small magnetic range where noise is a critical design parameter.

[Learn More]

CAN SPI 3.3V click

0

This is code that shows simple connection of two CAN SPI modules with SN65HVD230.<br/> Messages are sent by pressing PortB buttons and received message can be seen on PortD LEDs.<br/>

[Learn More]