Topic-icon Is it possible to initiate the script with the switch on the RC transmitter?

3 months 23 hours ago - 3 months 22 hours ago #29534414 by little

I made a cablecam which is controlled by the STM32 F4 microcontroller connected to the Syren 50A motor driver and brushed 24V motor. All the set is controlled over RC tx/rx connected to STM32F4. I have options like acceleration limiter, max speed limiter, limiter of endpoints....but it sits between two systems and hence has to know both. The software tries to automate as much as possible but without feedback, many things are not possible.

I am very interested in the Roboteq mdc1460 controller because it has a lot of advanced options (closed loop, deceleration limiter, ...), and I think it would be a real upgrade for the current setup that I use, and could be a great "all in one" solution. Before I take serious money, I would like to know if it is possible to have the options I currently have, and what I need in the old/new system. Later, I could add other great advanced options that the MDC1460 offers to me.

One of the mandatory options is setting up a permitted area of driving on the rope, as I call it "A-B RANGE"

Setup will be:
Motor controller is MDC1460. Motor runs in Closed Loop Relative Mode. Encoder (Vcc, GND, S1, S2) is fixed on the frame and counts the revolutions of pulley with the 22 magnets on the pulley. Motor forward/reverse is controlling over RC control stick.

I would like to find a way, after setting up a cablecam on the rope, to drive (with rc remote, not by hand) the cablecam to point A and mark it as "END POINT A", then drive cablecam (with rc remote, not by hand) to point B and mark it as "END POINT B". As result, I want to get a driving "A-B RANGE" in which a cablecam can operate without fear of passing by those points and impact to the end of the rope ends.
I suppose I need two scripts:
- One script that enters and exits the "SET ENDPOINT"-mode, activated with the one „2-position switch“ on the remote controller
- The second script for marking endpoints, activated by the momentary switch on the remote. Or two separate switches for each point.

Or maybe I just need one script which is automatically activated if A and B points are set?

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

2 months 2 weeks ago #29534441 by Gabriel_Isko

The controllers can only run one script at a time, but you can implement your separate script idea as subroutines in the same MicroBasic Script.

Your application sounds intriguing, and our controller should be a good fit for it. Let me know when you have written a script and I will be happy to take a look at it and provide feedback.

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

Time to create page: 0.072 seconds
Go to top