TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136554 times)
  2. FAT32 Library (69757 times)
  3. Network Ethernet Library (55855 times)
  4. USB Device Library (46195 times)
  5. Network WiFi Library (41817 times)
  6. FT800 Library (41010 times)
  7. GSM click (28931 times)
  8. PID Library (26386 times)
  9. mikroSDK (26297 times)
  10. microSD click (25305 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

Driver click

Rating:

5

Author: MIKROE

Last Updated: 2018-08-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Stepper

Downloaded: 3761 times

Not followed.

License: MIT license  

Driver click features an IC with seven integrated high-current sink drivers drivers, which can be used to drive a wide range of loads via simple parallel interface.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Driver click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Driver click" changes.

Do you want to report abuse regarding "Driver click".

  • mikroSDK Library 2.0.0.0
  • Comments (1)
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

Driver click

Driver click

Native view of the Driver click board.

View full image
Driver click

Driver click

Front and back view of the Driver click board.

View full image

Library Description

Library performs the control of the output pins (OUT1 - OUT7) by setting input pins (IN1 - IN7).
For more details check the documentation.

Key functions :

  • void driver_setIN1( uint8_t state ) - Function determines state of output 1 (OUT1).

Example description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes GPIO driver and selects which inputs will be set in operation. Bits from 0 to 6 (selectIN) select inputs from IN1 to IN7, respectively.
  • Application Task - (code snippet) - Performs cycles in which selected inputs will be turned on for pulse width delay time one by one. When one input is turned on, he will be turned off after the desired delay time before the next input be turned on.
void applicationTask()
{
 temp = 1;

 for (count = 0; count < 7; count++)
 {
 switch (selectIN & temp)
 {
 case 0x01 :
 {
 driver_setIN1( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN1( disableIN );
 break;
 }
 case 0x02 :
 {
 driver_setIN2( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN2( disableIN );
 break;
 }
 case 0x04 :
 {
 driver_setIN3( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN3( disableIN );
 break;
 }
 case 0x08 :
 {
 driver_setIN4( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN4( disableIN );
 break;
 }
 case 0x10 :
 {
 driver_setIN5( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN5( disableIN );
 break;
 }
 case 0x20 :
 {
 driver_setIN6( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN6( disableIN );
 break;
 }
 case 0x40 :
 {
 driver_setIN7( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN7( disableIN );
 break;
 }
 default :
 {
 break;
 }
 }

 temp <<= 1;
 }
}

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

Environment 4 click

0

Environment 4 Click is a compact add-on board combining 4th-generation SHT humidity and SGP air-quality sensing solutions from Sensirion. This board features SHT41A-AD1B and SGP41, an I2C-configurable high-accuracy relative humidity/temperature combined with a MOx-based gas sensor. The SHT41A-AD1B offers linearized digital output alongside temperature/humidity accuracy up to ±0.3°C/±2%RH. It performs best within the operating range of 5-60°C and 20-80%RH. With the help of SGP41, which features a temperature-controlled micro hotplate, it also provides a humidity-compensated VOC and NOx-based indoor air quality signal.

[Learn More]

LEM click

6

LEM click carries the LTS 6-NP current transducer and MCP3201 ADC converter. The click can measure AC and DC current with exceptional speed, up to 200 KHz. LEM click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over SPI interface.

[Learn More]

Altitude click

0

This is a simple example of using MPL3115A2 sensor to calculate the current altitude. Resulting altitude in meters is displayed on the Lcd.

[Learn More]