Public projects 3

HC-SR04 Distance Sensor Service

Project tutorial by Nahuel Taibo

  • 5,710 views
  • 0 comments
  • 11 respects

Arduino Robot - Service Oriented Architecture

Project in progress by Nahuel Taibo

  • 5,545 views
  • 5 comments
  • 32 respects

L298N Motor Module Service

Project tutorial by Nahuel Taibo

  • 7,024 views
  • 1 comment
  • 7 respects


Respected projects 1

OpenCat

Project in progress by Petoi

  • 271,176 views
  • 200 comments
  • 1,789 respects

Comments 2

  • Arduino Robot - Service Oriented Architecture over 1 year ago

    There is no particular reason, no, you can accommodate the parts as required by your project.
    You don't need to have all that in the picture either if you don't need it

  • Arduino Robot - Service Oriented Architecture almost 3 years ago

    Hey Aleksandar,
    Thanks for the comment. It is possible to use PWM to control two motors with the L298N service, creating two service instances, one per motor. Like this:

    L298NMotorService rightMotor(true, true, PIN_L298N_ENA, PIN_L298N_IN1, PIN_L298N_IN2);
    L298NMotorService leftMotor(true, true, PIN_L298N_ENB, PIN_L298N_IN3, PIN_L298N_IN4);

    The, when you set the speed to each, in the background, it also uses PWM. so you can set any speed you want (-255 to 255) to each motor:

    rightMotor.SetSpeed(150);
    leftMotor.SetSpeed(150);

    Is this what you are saying? or you mean something to control a robot in a differential drive (or tank drive) fashion? where you can just say the speed and the angle or rotation, or something like that?

Add projectSign up / Login