Skip to content

Commit 0f22fde

Browse files
jbehrensnxkartben
authored andcommitted
boards: shields: Added Mikroe Stepper 18 Click Shield
This shield includes a drv8426 stepper driver and a mcp4726 dac for current control. Note that the micro-step pins are controlled by physical switches and are thus not available in Zephyr. Signed-off-by: Jan Behrens <[email protected]>
1 parent a3d298c commit 0f22fde

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Navimatix GmbH
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_MIKROE_STEPPER_18_CLICK
5+
def_bool $(shields_list_contains,mikroe_stepper_18_click)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.. _mikroe_stepper_18_click_shield:
2+
3+
MikroElektronika Stepper 18 Click
4+
#################################
5+
6+
Overview
7+
********
8+
9+
Stepper 18 Click shield has a TI DRV426 stepper driver accessed via GPIO.
10+
It also features a Microchip MCP4726 DAC to allow for current control. The
11+
micro-step pins are controlled via physical switches, making them unavailable
12+
in Zephyr.
13+
The DRV8426 uses the work-queue timing source by default.
14+
15+
Note that the MCP4726 is compatible with the MCP4725 driver.
16+
17+
More information about the shield can be found at
18+
`Mikroe Stepper 18 click`_.
19+
20+
.. figure:: stepper_18_click.webp
21+
:align: center
22+
:alt: MikroElektronika Stepper 18 Click
23+
24+
MikroElektronika Stepper 18 Click (Credit: MikroElektronika)
25+
26+
Requirements
27+
************
28+
29+
The shield uses a mikroBUS interface. The target board must define
30+
a ``mikrobus_i2c`` and ``mikrobus_header`` node labels
31+
(see :ref:`shields` for more details).
32+
33+
Programming
34+
***********
35+
36+
.. zephyr-app-commands::
37+
:zephyr-app: samples/drivers/stepper/generic/
38+
:board: <board>
39+
:shield: mikroe_stepper_18_click
40+
:goals: build flash
41+
42+
References
43+
**********
44+
45+
.. target-notes::
46+
47+
.. _Mikroe Stepper 18 click:
48+
https://www.mikroe.com/stepper-18-click
Binary file not shown.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2025 Navimatix GmbH
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
stepper = &drv8426_mikroe_stepper_18_click;
9+
};
10+
};
11+
12+
&mikrobus_i2c {
13+
status = "okay";
14+
15+
mcp4726_mikroe_stepper_18_click: mcp4726@70 {
16+
status = "okay";
17+
compatible = "microchip,mcp4725";
18+
reg = < 0x60 >;
19+
20+
#io-channel-cells = <1>;
21+
};
22+
};
23+
24+
/ {
25+
drv8426_mikroe_stepper_18_click: drv8426 {
26+
status = "okay";
27+
compatible = "ti,drv84xx";
28+
29+
dir-gpios = <&mikrobus_header 0 0>;
30+
step-gpios = <&mikrobus_header 6 0>;
31+
sleep-gpios = <&mikrobus_header 1 GPIO_ACTIVE_LOW>;
32+
en-gpios = <&mikrobus_header 2 0>;
33+
fault-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
34+
};
35+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: mikroe_stepper_18_click
3+
full_name: Stepper 18 Click
4+
vendor: mikroe
5+
supported_features:
6+
- stepper

0 commit comments

Comments
 (0)