Ask Your Question
0

How to calibrate analog signal with velocity command?

asked 2017-06-23 10:40:51 -0600

OwnageManFromLOL gravatar image

updated 2017-06-23 11:20:22 -0600

Hi there,

Right now I'm trying to make an autonomous wheelchair. I am using an Arduino to write analog signals to two non-inverting op amps, which are connected to the X (controls forward and backward) and Y (controls rotation) pins of the wheelchair joystick control. All these op amps do is amplify the analog signal and output a voltage between 4 and 6 volts. I also have two encoders connected to the Arduino that will provide me with odometry information.

What is the best way for me to calibrate the magnitude and duration of analog signal required to obtain a particular velocity on my wheelchair? Are there any good ROS tools that I can use?

So far I have looked into rqt_plot and dynamic_reconfigure. I was wondering if there were any better options out there?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-23 10:59:49 -0600

hardik2 gravatar image

Not clear what you mean by writing signal on X and Y pin of joystick. You can directly use the pwm signal from arduino to control the velocity of the motors. I think you are generating the velocity commands using odometery information in ROS. So you just need to implement a PID controller in arduino using the error in the required velocity and actual velocity (from odometry) that will try to achieve the required velocity.

edit flag offensive delete link more

Comments

Hi hardik, sorry I was unclear in the question. I have updated the question. The analog signal actually goes through two non inverting op amps before reaching the wheelchair pins. Can I still use a PID controller in this case?

OwnageManFromLOL gravatar imageOwnageManFromLOL ( 2017-06-23 11:18:37 -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: 2017-06-23 10:40:51 -0600

Seen: 66 times

Last updated: Jun 23 '17