Please help with connection: Bluetooth, Fingerprint, Motorshield, Mega2560

Hello guys Im working on a project using arduino mega, Im working on a project where I want to be able to control the motor(Stepper motor) using the motor shield L293D from Sainsmart, Connecting the bluetooth HC-06 module and also the fingerprint scanner. When I do some testing connecting the bluetooth only it will give me weird characters into serial monitor without the fingerprint scanner( they both use RX and TX), however, when i try the fingerprint scanner only with the motor without the bluetooth it would give me fine results, BUT my problem is connecting both of them, i tried connecting the fingerprint using digitalpins 50,51 while having the bluetooth module on pins RX0, TX0, and after upload the fingerprint wouldnt turn on the LED to recognize finger. Im also trying using Rx1 and Tx1 and leaving the fingerprint on digitalPins 50,51 Any suggestions why when i connect them the Fingerprint does not turn on the LED( in other words, not working). Fingerprint scanner is FPS_GT511C3. Please help me. Above is the current code i have

#include"FPS_GT511C3.h"     // Fingerprint scanner Library
#include"SoftwareSerial.h"    //Bluetooth, (Communication Library)
#include "AFMotor.h"       // Stepper motor MotorShield
#include "LiquidCrystal.h"    //LCD library (Ignore for now)

char myBluetooth;
FPS_GT511C3 FingerPrint(50,51);   //Define Pins of fingerprint
AF_Stepper Mymotor(2048, 1);  //Define Steps Per revolution, and which port from the motor shield for stepper.










void setup() {
  Serial.begin(9600);
  Serial1.begin(9600);
  Serial2.begin(9600);
  delay(100);
  FingerPrint.Open();
  FingerPrint.SetLED(true);     //Turn on sensor of fingerprint
Mymotor.setSpeed(14);   // Set speed of motor (RPM's)
//pinMode(19, INPUT);      //From Bluetooth TXD From Arduino RX0
//pinMode(18, OUTPUT); // From Bluetooth RXD from Arduino TX0

}

void loop() {
if (FingerPrint.IsPressFinger())
{
  FingerPrint.CaptureFinger(false);
  int FingerPic = FingerPrint.Identify1_N();
  if (FingerPic < 200)
  {
    if(FingerPic == 0)
    {
    Serial.print( "Finger Verified: "); Serial.println(FingerPic);
    Serial.print("You got it!");
    Serial.print("Motor Initializing");
    Mymotor.step(10000, FORWARD, DOUBLE);
  delay(1000);
    }
    else if(FingerPic == 1)
    {
      Serial.print("Motor Going backward");
      Mymotor.step(10000, BACKWARD, DOUBLE);
      delay(5000);
    }
  }
  else
  {
    Serial.print(" Keep Trying :)");
  }
}
  else(FingerPrint.IsPressFinger());
  {
    Serial.println("Please Press Scanner");
  }
  delay(1000);
  if(Serial1.available())
  {
    myBluetooth = Serial1.read();
    Serial.write(myBluetooth);
  }
  if(myBluetooth == 'n')
  {
  Mymotor.step(10000, BACKWARD, DOUBLE);
  delay(1000);
  Serial.println("Blue On!!");
  }
}

You have four hardware serial ports on a Mega. Four. This means that the first thing you do is get rid of Software serial, and the last thing you do is apply software serial to hardware serial pins.

The first three lines of your setup are what one would expect but there is no indication that you are actually using them.

I know nothing about the fingerprint thing but I understand it is a serial device. If you connect it to Serial1 and bluetooth to serial2, thereby leaving serial to the serial monitor in the normal manner, it will probably work.

Cross post. Thread locked