Control-Motors-with-Processing

in utopian-io •  7 years ago  (edited)

Project to control Motor using Motor Library and IHM Processing
Developed by Salim Khazem
It is a Project that allows you to control an Motor using Motor Library and interface Humans Machine (IHM), Processing in this case

You must add the libraries to the Arduino libraries folder.

To do this : you must copy the folder "Motor" paste them in the arduino libraries folder. You will find Motor Library in this link https://github.com/salimkhazem/MotorLibrary

for the application in the Processing, it's just a simple application than allows you run and stop motors. In this case i used Two motors, so, you will find two Push Buttons in the application processing .

Operation:

To include the library you have to include the Motor library and this is done with this formula ( #include <Motor.h> )

To create an instance: Motor object (pin1, pin2, pinPWM);

For the assignment it is necessary to introduce: object.begin ();

To run the motor in the forward direction: object.forward (speed_with_percentage);

To run the motor in the reverse direction: object.rearward (speed_with_percentage);

To stop the motor: object.turnOff ();

Contribution:

If you want contribute:

Fork the project
Add your branch
add your commits
Finally push your pull request

for the components:

  • Arduino Uno
  • L293D double H-Bridge
  • Power Supply
  • Wires



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Your contribution cannot be approved because it does not follow the Utopian Rules.
Your project is too basic and does not add much of value.

You can contact us on Discord.
[utopian-moderator]

Hey @mcfarhat, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!