Public projects 3

HC-SR04 Distance Sensor Service

Project tutorial by Nahuel Taibo

  • 9,724 views
  • 0 comments
  • 16 respects

Arduino Robot - Service Oriented Architecture

Project in progress by Nahuel Taibo

  • 8,445 views
  • 5 comments
  • 32 respects

L298N Motor Module Service

Project tutorial by Nahuel Taibo

  • 12,194 views
  • 1 comment
  • 17 respects


Respected projects 2

Object oriented state machine

by DGarbanzo

  • 3,527 views
  • 1 comment
  • 5 respects

OpenCat

Project in progress by Petoi

  • 450,481 views
  • 223 comments
  • 2,273 respects

Comments 2

  • Arduino Robot - Service Oriented Architecture over 3 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 5 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