Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Investigate and implement Micro ROV Thruster change #42

Open
antoinepetty opened this issue Mar 1, 2020 · 3 comments
Open

Investigate and implement Micro ROV Thruster change #42

antoinepetty opened this issue Mar 1, 2020 · 3 comments

Comments

@antoinepetty
Copy link
Member

Currently the assumption in the code is that the Micro ROV is using an ESC controlled thruster like the other 8 on the main ROV body.
However, there are some hints in the Electrical team's documentation that this thruster will be using an H-bridge:
image
Which means only binary forward backward control - no speed control. Therefore, a new class will likely need to be created to solve this problem.

@antoinepetty
Copy link
Member Author

This has now been confirmed

@antoinepetty
Copy link
Member Author

Can probably control speed -100 to 100 (or -1 to 1?). Needs 4 binary outputs as per the diagram. Opposite corners need to be activated to either forward or reverse. So S1 - S4 need to be digital output pins on the Arduino.

setValue would take 1 parameter which is the speed as above. This would then control the 4 digital pins as follows.

For forward: S4 activated (high), and S1 with the normal Arduino PWM control taking in the speed parameter. S2 and S3 would be deactivated (low)

For reverse: S2 activated (high), and S3 with the normal Arduino PWM control taking in the speed parameter. S1 and S4 would be deactivated (low)

@antoinepetty
Copy link
Member Author

antoinepetty commented Mar 8, 2020

S1 and S3 would probably be connected to the thruster control board because PWM, except the PWM will be full 100% not only setting microsecond widths like with ESCs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant