Ask Your Question
0

PWM control (Rosbot 2.0)

asked 2021-10-20 01:46:21 -0600

choking gravatar image

Hi, I'd like to know how to control the PWM signal directly. The motor is controlled by cmd_vel by using ros node but how to control the PWM without cmd_vel msg?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-21 06:52:24 -0600

The Rosbot 2.0 uses an ASUS Tinker board for low level control. You have the ability to read PWM from the servos but you can also interact with the firmware via rosservice to set PWM: https://github.com/husarion/rosbot-st...

$ rosservice call /config "command: 'CSER'
>data: 'V:0 S:1 E:1 P:20000 W:1000 '"
edit flag offensive delete link more

Comments

I'm already read the material But I want to control the DC motor for the wheels. Can I have any information for DC motor control for Rosbot 2.0?

choking gravatar image choking  ( 2021-10-24 18:42:58 -0600 )edit

Just connect to the hbridge of the core2

https://husarion.com/manuals/core2/

osilva gravatar image osilva  ( 2021-10-24 20:09:35 -0600 )edit

Thank you, sir. I will try it!

choking gravatar image choking  ( 2021-10-24 23:34:58 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-10-20 01:46:21 -0600

Seen: 29 times

Last updated: Oct 21 '21