- Forum
- Roboteq Motor Controllers
- MicroBasic
- How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate
How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate
4 years 9 months ago #29534417
by little
How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate was created by little
How to assign an "analog input 2" from the controller to operate the motor deceleration rate? I would like to add one of the potentiometers (it will be left joystik on Taranis x9D plus remote, because right joystick is for motor direction on analog input 1), to manage the Motor Deceleration Rate function.
THX!
THX!
Please Log in or Create an account to join the conversation.
4 years 8 months ago #29534432
by little
Replied by little on topic How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate
10 days from posting, almost 200 views and still no answer. Not even a moderator's response that could at least give direction to the beginner. Because of this kind of support in this forum, I will never buy a Roboteq product or recommend it to anyone. You can be the best in the world, but you have sold one controller less. At least for me.
Please Log in or Create an account to join the conversation.
- Gabriel_Isko
4 years 8 months ago #29534433
by Gabriel_Isko
Replied by Gabriel_Isko on topic How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate
I'm sorry for the frustration. We are still catching up on correspondence from our holiday shutdown. For future reference, you can also reach out to us directly by emailing This email address is being protected from spambots. You need JavaScript enabled to view it..
Doing what you are asking about can be accomplished through the use of a microbasic script. You can find a micro basic reference here . You can find an example of reading an analog input from this forum post.
I highly recommend reading our user manual, as it gives in depth documentation on how to use our controllers. After reading our user manual, changing the acceleration with an analog input should be relatively simple.
Doing what you are asking about can be accomplished through the use of a microbasic script. You can find a micro basic reference here . You can find an example of reading an analog input from this forum post.
I highly recommend reading our user manual, as it gives in depth documentation on how to use our controllers. After reading our user manual, changing the acceleration with an analog input should be relatively simple.
Please Log in or Create an account to join the conversation.
- Gabriel_Isko
4 years 8 months ago #29534434
by Gabriel_Isko
Replied by Gabriel_Isko on topic How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate
I'm sorry for the frustration. We are still catching up on correspondence from our holiday shutdown. For future reference, you can also reach out to us directly by emailing This email address is being protected from spambots. You need JavaScript enabled to view it..
Doing what you are asking about can be accomplished through the use of a microbasic script. You can find a micro basic reference here . You can find an example of reading an analog input from this forum post.
I highly recommend reading our user manual, as it gives in depth documentation on how to use our controllers. After reading our user manual, changing the acceleration with an analog input should be relatively simple.
Doing what you are asking about can be accomplished through the use of a microbasic script. You can find a micro basic reference here . You can find an example of reading an analog input from this forum post.
I highly recommend reading our user manual, as it gives in depth documentation on how to use our controllers. After reading our user manual, changing the acceleration with an analog input should be relatively simple.
Please Log in or Create an account to join the conversation.
4 years 8 months ago #29534435
by little
Replied by little on topic How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate
I apologize for a little hard stance in trying to find a solution. I'm a complete beginner in robotics, and is very discouraged when you come to the walls constantly. Moreover, we are all still sluggish after the holiday season.
Of course, I'm glad we can go on together and on.
So... in Roborun + I set AIn2:
-Conversion type: Absolute
-Input use: Feedback
-Range: (in my case after calibration 1000-1500-2000)
-Conversion polarity: Direct
-Deadband: 0%
-Action on min: No action
-Action on max: No action
I suppose I need the following:
1. MicroBasic script reading the input voltage on AIn2 and turning it into Decceleration. Determining the minimum and maximum values Decceleration should be tested, which best suits me in real world, but for the start it would be:
- min 100rpm
- max 1000rpm
2. Roborun+ /Start-up / Auto-Start Script: "Enable"
3. Save to Controller
Is this OK?
Since I'm very weak with writing scripts, is there a somewhat similar example that I could modify for my case? (some link maybe). I admit that I've been searching for all these days in the forum but I just do not recognize finding it. Or if someone is willing to write these few script lines, it would be great.
Thx!
Of course, I'm glad we can go on together and on.
So... in Roborun + I set AIn2:
-Conversion type: Absolute
-Input use: Feedback
-Range: (in my case after calibration 1000-1500-2000)
-Conversion polarity: Direct
-Deadband: 0%
-Action on min: No action
-Action on max: No action
I suppose I need the following:
1. MicroBasic script reading the input voltage on AIn2 and turning it into Decceleration. Determining the minimum and maximum values Decceleration should be tested, which best suits me in real world, but for the start it would be:
- min 100rpm
- max 1000rpm
2. Roborun+ /Start-up / Auto-Start Script: "Enable"
3. Save to Controller
Is this OK?
Since I'm very weak with writing scripts, is there a somewhat similar example that I could modify for my case? (some link maybe). I admit that I've been searching for all these days in the forum but I just do not recognize finding it. Or if someone is willing to write these few script lines, it would be great.
Thx!
Please Log in or Create an account to join the conversation.
- Gabriel_Isko
4 years 8 months ago #29534443
by Gabriel_Isko
Replied by Gabriel_Isko on topic How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate
Hey no worries, we definitely appreciate that you are trying to use our products in this application.
Your approach seems like it should work quite well. Once you have a script, let me know and I will be happy to review it with you.
You can find an archive of example scripts on our MicroBasic Reference page.
Your approach seems like it should work quite well. Once you have a script, let me know and I will be happy to review it with you.
You can find an archive of example scripts on our MicroBasic Reference page.
Please Log in or Create an account to join the conversation.
- Forum
- Roboteq Motor Controllers
- MicroBasic
- How to assigning analog input (potentiometer) to MDEC - Motor Deceleration Rate
Time to create page: 0.066 seconds