Speed control using pushbutons

Questions about using encoders with the Roboclaw product line
Post Reply
Marko
Posts: 2
Joined: Sun Oct 01, 2017 8:05 pm

Speed control using pushbutons

Post by Marko » Sun Oct 01, 2017 8:31 pm

Hi all

Im working on a small project where I need to control speed and direction of one motor from keypad , I can't figure out how to program the arduino so it will change speed in ForwardM1 or BackwardM1,
in other words I want to have one button for speed up and one button to slow down , all I could find on the internet is how to control speed with potentiometers or PWM , but not with keypads , can someone point me in right direction .

any help would be much appreciated.
cheers

User avatar
Basicmicro Support
Posts: 1247
Joined: Thu Feb 26, 2015 9:45 pm

Re: Speed control using pushbutons

Post by Basicmicro Support » Mon Oct 09, 2017 10:07 am

I recommend you post a question in the Arduino forums on how to use a keypad with an Arduino. This really doesnt have anything to do with the Roboclaw until you are the point you can read the keypad, at which point you already know how to use the Roboclaw ForwardM1 and BackwardM1 commands. I recommend you give specific information on the type of keypad you have. If you post what you posted here in their forum I doubt anyone will help you(no details and no apparent attempt on your part to get it working). I'd also leave what you will be using the keyboard for out of it as well. Based on your post your problem isnt Roboclaw related, it is instead keypad related.

laptophead
Posts: 9
Joined: Mon Oct 16, 2017 5:03 pm

Re: Speed control using pushbutons

Post by laptophead » Mon Oct 16, 2017 5:33 pm

I am also using a keypad to start stop the motors.

Here is a really good article on it.

http://www.circuitbasics.com/how-to-set ... n-arduino/

Marko
Posts: 2
Joined: Sun Oct 01, 2017 8:05 pm

Re: Speed control using pushbutons

Post by Marko » Sat Nov 25, 2017 12:42 am

laptophead wrote:I am also using a keypad to start stop the motors.

Here is a really good article on it.

http://www.circuitbasics.com/how-to-set ... n-arduino/
Thanks for that, can you speed up and slow down the motor using this keypad?

Post Reply