Speedometer Input Suggestions

10 months 4 weeks ago #29536274 by wstuck
All,

I would like some help and suggestions for setting up a speedometer input for basic motor control functionality. I have used Arduino boards in the past to accomplish the same functionality but I would like to do the micro processing in the Roboteq controller if possible.

If I use a magnetic sensor and read the pulse on an input pin, can I calculate the wheel speed using the basic programing? I would know the diameter and the pulse timing. Any suggestions on best practices or commands to use?

Are there any samples of a pulse input signal being used to change control setting?

Are there any samples of an analog input signal being used to change control settings?Will the Roboteq controller allow for scripting and commands like an Arduino board would do?

Thanks for your help.

Please Log in or Create an account to join the conversation.

10 months 2 weeks ago #29536284 by jeremy.batson
Hi wstuck,

The Microbasic scripting of the RoboteQ controllers is very powerful. You can find the MicroBasic scripting manual that shows the ins and outs of the programming language here . You can also find all of the MicroBasic scripting commands in our main controller user manual here

As for calculating wheel speed based on a magnetic sensor, the script on the controller will run at the speed of your waits, so if you have a wait in your script it will be unable to update faster than this which may give you inaccurate results. This is why we have built in to the controller the ability to use many different speed sensors such as hall, encoders, and SSI.

With Kind Regards
Jeremy Batson
Field Application Engineer
The following user(s) said Thank You: wstuck

Please Log in or Create an account to join the conversation.

10 months 2 weeks ago - 10 months 2 weeks ago #29536285 by DestineyCummings
Using a magnetic sensor: If you use a magnetic sensor and read the pulses at the input contact, you can calculate the speed of the wheel using basic programming. Knowing the diameter of the wheel and the time between pulses, you can calculate the speed using the formula: speed = (2 * π * wheel radius) / time between pulses.
Advanced methods and commands: You may find it helpful to review the documentation and user manuals for the Roboteq controller to learn about advanced methods and commands supported by the controller. Refer to Roboteq's official resources for more information about the controller's programming and control capabilities.
Pulse Input: Generally, controllers, including Roboteq controllers, support the use of pulse input signals to change control settings such as speed, acceleration and braking. This allows you to programmatically control various aspects of the motor based on signals from external sources such as the speedometer.
Analog input signal: Some controllers can support an analog input signal to change control settings. This allows you to use an analog signal, such as from a potentiometer or sensor, to control various engine parameters.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds