Strange behaviour with MeStepper when other port is HIGH


#1

Hi everyone,

I’m experiencing a very weird behaviour on the MeAuriga: when I try to switch on PORT_4, the MeStepper on PORT_1 starts to work.

This is the function:

#include "MeAuriga.h"
#include <SoftwareSerial.h>  

MeStepper x_stepper(PORT_1);
MePort pump2(PORT_4);

void setup()
{
   Serial.begin(9600);
   pump2.dWrite1(HIGH);
   Serial.println("end setup");
}

Does anyone know the reason of this behaviour? After few seconds the x_stepper start to run without even defining the move method.

Many thanks,

Diego


#2

You can test the following mBlock program have a check, if it works okay, I think there is problem on your program.
The Port 4 is RJ25 port (which is formed with several pins) on the Me Auriga, I think you can’t set a High or Low to a RJ25 port but to set a High or Low to a pin. For deep principle, you may need search online and figure out by yourself.


#3