TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 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 (136221 times)
  2. FAT32 Library (69487 times)
  3. Network Ethernet Library (55706 times)
  4. USB Device Library (45992 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40782 times)
  7. GSM click (28788 times)
  8. PID Library (26332 times)
  9. mikroSDK (26053 times)
  10. microSD click (25140 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

Nano Power 2 click

Rating:

5

Author: MIKROE

Last Updated: 2018-06-04

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Linear

Downloaded: 3973 times

Not followed.

License: MIT license  

Nano Power 2 click is a very low power voltage comparator, aimed at portable and battery-powered applications. It allows detecting a difference of two voltage potentials, applied on two input pins.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Nano Power 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Nano Power 2 click" changes.

Do you want to report abuse regarding "Nano Power 2 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Nano Power 2 click

Nano Power 2 click

Native view of the Nano Power 2 click board.

View full image
Nano Power 2 click

Nano Power 2 click

Front and back view of the Nano Power 2 click board.

View full image

Library Description

Library initializes and defines GPIO driver and performs control of device voltage.
For more details check the documentation.

Key functions:

  • NANOPW2_RETVAL_T nanopw2_checkOutput( void ) - Function gets output voltage from comparator.

Example description

The application is composed of three sections:

  • System Initialization -  Initializes OUT (INT) pin as an input.
  • Application Initialization - Initializes GPIO driver.
  • Application Task - (code snippet) - Checks the comparator's output and logs output value on USB UART. The hysteresis in a comparator creates two trip points: one for upper threshold (VTRIP+) and one for lower threshold (VTRIP-) for voltage transitions on the input signal. When the comparator’s input voltages are equal, the hysteresis effectively causes one comparator input to move quickly past the other, thus taking the input out of the region where oscillation occurs. The output voltage is high (1) when noninverted input voltage rises above the hysteresis and stays high until noninverted input voltage falls below the hysteresis. Then the output goes low and stays low until noninverted input voltage rises above the hysteresis. This is an example where the inverted input voltage is fixed and the noninverted input voltage is varied. If the inputs were reversed, the example would be the same, except with an inverted output.
void applicationTask()
{
 outCheck = nanopw2_checkOutput();
 if (outCheck != outCheckPrev)
 {
 WordToStr( outCheck, text );
 mikrobus_logWrite( "OUT is: ", _LOG_TEXT );
 mikrobus_logWrite( text, _LOG_LINE );
 outCheckPrev = outCheck;
 }
}


Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

Ambient 4 click

5

Ambient 4 click is a light, intensity-sensing and measuring Click boardâ„¢, which features an accurate, light-intensity sensor labeled as BH1721FVC, made by ROHM corporation.

[Learn More]

PWM 2 click

5

PWM 2 click offers 48 independently controlled PWM channels, available over the onboard headers, perfectly suited for driving LEDs.

[Learn More]

FT click

0

FT Click is a compact smart transceiver add-on board that helps you add a Free Topology (FT) interface to any host board with the mikroBUS™ socket. Leveraging FT, the most reliable and easiest-to-scale wired communications media, FT Click lets you network sensors and devices to create IoT solutions for automation and control networks that are easier to develop, integrate and install. This Click board™ supports full communication stacks for LON® and BACnet FT, as well as FTMQ (MQTT like messaging format) on board to simplify integration of BACnet, LON or custom IoT networks over twisted pair wire. FT Click is ideal for markets including smart buildings, cities, machines, agriculture, manufacturing, transportation and many more where wireless communications do not provide the required reliability and scale.

[Learn More]