Public projects 3

HC-SR04 Distance Sensor Service

Project tutorial by Nahuel Taibo

  • 7,632 views
  • 0 comments
  • 13 respects

Arduino Robot - Service Oriented Architecture

Project in progress by Nahuel Taibo

  • 7,202 views
  • 5 comments
  • 32 respects

L298N Motor Module Service

Project tutorial by Nahuel Taibo

  • 9,673 views
  • 1 comment
  • 15 respects


Respected projects 1

OpenCat

Project in progress by Team Petoi

  • 364,160 views
  • 216 comments
  • 2,068 respects

Comments 2

  • Arduino Robot - Service Oriented Architecture over 2 years 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 4 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