BLDC motor spinning very roughly over HC-12

Hello, I am building an electric skateboard using a BLDC motor and two HC-12 for the wireless control. The problem is that when I start sending values from the potentiometer the motor starts spinning very roughly. I think the values being sent are unstable making it hard for the motor to spin smoothly, if so, is there a way I can smooth out the values being sent?

transmitter_HC12.ino (413 Bytes)

receiver_HC12.ino (529 Bytes)

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom.... :slight_smile: