Commit 897590fd authored by Jilay Pandya's avatar Jilay Pandya Committed by Alberto Escolar
Browse files

boards: shields: add mikroe h bridge 4 click



add mikroe h bridge 4 click board to shields

Signed-off-by: default avatarJilay Pandya <jilay.pandya@outlook.com>
parent 3ce26616
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
# Copyright (c) 2025 Jilay Sandeep Pandya
# SPDX-License-Identifier: Apache-2.0

config SHIELD_MIKROE_H_BRIDGE_4_CLICK
	def_bool $(shields_list_contains,mikroe_h_bridge_4_click)
+60.5 KiB
Loading image diff...
+37 −0
Original line number Diff line number Diff line
.. _mikroe_h_bridge_4_click_shield:

MikroElektronika H Bridge 4 Click
#################################

Overview
********

H-Bridge 4 Click is a Click board™ that contains the AP1010AEN, which is a two channel H-Bridge
motor driver compatible with a motor operating voltage up to 18V and can drive two DC motors or
one stepper motor. The protection circuit has under voltage lockout circuit, thermal shutdown
circuit, and overcurrent protection circuit, and overcurrent protection circuit can be disabled
with the DIS OCP terminal.

H-Bridge 4 click supports multiple connection options and can be used in different application
setups which might include DC or Stepper motors.

.. figure:: h-bridge-4-click.webp
   :align: center
   :alt: MikroElektronika H Bridge 4 Click

   MikroElektronika H Bridge 4 Click (Credit: MikroElektronika)

Requirements
************

This shield can be used with a board that  defines the ``mikrobus_header`` node label (see
:ref:`shields` for more details).

Programming
***********

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/stepper/generic
   :board: <board>
   :west-args: --shield mikroe_h_bridge_4_click
   :goals: build flash
+18 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2025 Jilay Sandeep Pandya
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
	mikroe_h_bridge_4_click: h_bridge_4_click {
		status = "okay";
		compatible = "zephyr,h-bridge-stepper";

		en-gpios  = <&mikrobus_header 2 GPIO_ACTIVE_LOW>;
		gpios = <&mikrobus_header 0 GPIO_ACTIVE_LOW>, /* IN1 */
			 <&mikrobus_header 1 GPIO_ACTIVE_LOW>, /* IN2 */
			 <&mikrobus_header 6 GPIO_ACTIVE_LOW>, /* IN3 */
			 <&mikrobus_header 7 GPIO_ACTIVE_LOW>; /* IN4 */

	};
};
+6 −0
Original line number Diff line number Diff line
shield:
  name: mikroe_h_bridge_4_click
  full_name: H Bridge 4 Click
  vendor: mikroe
  supported_features:
    - stepper