# What wrong with my hardware stepper motor + as5600 + arduino + l298n

**URL:** https://community.simplefoc.com/t/what-wrong-with-my-hardware-stepper-motor-as5600-arduino-l298n/3005
**Category:** hardware support
**Created:** [February 23, 2023, 4:02am UTC](https://community.simplefoc.com/t/what-wrong-with-my-hardware-stepper-motor-as5600-arduino-l298n/3005 "2023-02-23T04:02:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Arta\_botak333](https://community.simplefoc.com/user_avatar/community.simplefoc.com/arta_botak333/32/6047_2.png) [@Arta\_botak333](https://community.simplefoc.com/u/Arta_botak333)
#### Post date: [February 23, 2023, 4:02am UTC](https://community.simplefoc.com/t/what-wrong-with-my-hardware-stepper-motor-as5600-arduino-l298n/3005/1 "2023-02-23T04:02:52Z")

</div>

Hi i test the stepper motor with the configurasi standar from library, but the motor only shaking a litle bit, when i put value for angle i try 90 and 1000 same error. I font lnow what wrong. I can turn the stepper but the stepper hold on my turn not go back to the angle.  
My motor nema 17 1.8ded 200step.

 ![IMG_20230223_115619](https://community.simplefoc.com/uploads/default/original/2X/e/ed1f736f65170670ea9bf68acb7e68f87d67b7f6.jpeg)  
 ![IMG_20230223_113357](https://community.simplefoc.com/uploads/default/original/2X/e/ef2a2e84f4276fa221f080c9e55906a409ecd4c5.jpeg)  
 ![IMG_20230223_113351](https://community.simplefoc.com/uploads/default/original/2X/e/e9d17a1dda20ad77b630ef96bfaf4eed43b21879.jpeg)

---

<div class="post-metadata">

### Author: ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)
#### Post date: [February 23, 2023, 5:00am UTC](https://community.simplefoc.com/t/what-wrong-with-my-hardware-stepper-motor-as5600-arduino-l298n/3005/2 "2023-02-23T05:00:32Z")

</div>

> [@Arta\_botak333](#):
>
> put value for angle i try 90

Hi there,

What command exactly do you send to the serial?

---

<div class="post-metadata">

### Author: ![Arta\_botak333](https://community.simplefoc.com/user_avatar/community.simplefoc.com/arta_botak333/32/6047_2.png) [@Arta\_botak333](https://community.simplefoc.com/u/Arta_botak333)
#### Post date: [February 23, 2023, 5:34am UTC](https://community.simplefoc.com/t/what-wrong-with-my-hardware-stepper-motor-as5600-arduino-l298n/3005/3 "2023-02-23T05:34:24Z")

</div>

I just write 90 or 1000 sir and enter.

---

<div class="post-metadata">

### Author: ![VIPQualityPost](https://community.simplefoc.com/user_avatar/community.simplefoc.com/vipqualitypost/32/4420_2.png) [@VIPQualityPost](https://community.simplefoc.com/u/VIPQualityPost)
#### Post date: [February 23, 2023, 8:58pm UTC](https://community.simplefoc.com/t/what-wrong-with-my-hardware-stepper-motor-as5600-arduino-l298n/3005/4 "2023-02-23T20:58:38Z")

</div>

In your code, go to line where you put commander.add function and check the character you put there.  
For example with a line like this:

```auto
  // add target command T
  command.add('T', doTarget, "target angle");

```

Then to set the target angle, you type “T90” to set the angle. If you type just the number, it has no idea what parameter you are addressing.

Here is more information on this interface:

> **[Commander Interface](https://docs.simplefoc.com/commander_interface)**
>
> An Arduino Based Field Oriented Control(FOC) library documentation

---

<div class="post-metadata">

### Author: ![Arta\_botak333](https://community.simplefoc.com/user_avatar/community.simplefoc.com/arta_botak333/32/6047_2.png) [@Arta\_botak333](https://community.simplefoc.com/u/Arta_botak333)
#### Post date: [February 23, 2023, 9:36pm UTC](https://community.simplefoc.com/t/what-wrong-with-my-hardware-stepper-motor-as5600-arduino-l298n/3005/5 "2023-02-23T21:36:38Z")

</div>

Aaaahh i think just write the number, and one more the l298n very hot iam suplay 12v 2A. And the motor only shaking not run, i trying to run with a simple code but same only shaking what wrong sir?
