def tune_pid(self): """ Interactive PID tuning """ print("\n=== PID Tuning Mode ===") print("Adjust values to improve line following:") print(f"Current: KP=self.KP, KI=self.KI, KD=self.KD") while True: print("\nCommands:") print(" kp [value] - Set proportional gain") print(" ki [value] - Set integral gain") print(" kd [value] - Set derivative gain") print(" test - Test current settings") print(" quit - Exit tuning") cmd = input("> ").strip().lower() if cmd.startswith("kp"): try: self.KP = float(cmd.split()[1]) print(f"KP set to self.KP") except: print("Invalid value") elif cmd.startswith("ki"): try: self.KI = float(cmd.split()[1]) print(f"KI set to self.KI") except: print("Invalid value") elif cmd.startswith("kd"): try: self.KD = float(cmd.split()[1]) print(f"KD set to self.KD") except: print("Invalid value") elif cmd == "test": print("Testing for 5 seconds...") self.follow_line(duration=5) elif cmd == "quit": break else: print("Unknown command") def main(): """Main function to run the line follower with menu""" follower = MBot2LineFollower()

choice = input("\nSelect option: ").strip()

def calibrate_sensors(self): """ Calibrate line sensors for current surface """ print("Calibrating line sensors...") print("Place robot on WHITE surface and press Enter") input() # Read white values white_values = [] for i in range(5): white_values.append(self.bot.get_line_sensor(i+1)) print(f"White readings: white_values") print("Place robot on BLACK line and press Enter") input() # Read black values black_values = [] for i in range(5): black_values.append(self.bot.get_line_sensor(i+1)) print(f"Black readings: black_values") print("Calibration complete!") return white_values, black_values

COURSE DESCRIPTIONS

  • First Day's Agenda
    - Nissei company profile
    - The molding machine: general descriptions
    - Exploring the actual machine
    - Manual operation procedures, including mold setup
    - Procedure for automatic operation
  • Second Day's Agenda
    - Details of the electronic controller
    - Optimizing the molding conditions
    - Controlling the injection process
    - Statistical quality control
    - Starting the machine and molding operation
  • Third Day's Agenda
    - Hydraulic components and circuits
    - Electrical diagrams
    - Diagnostic functions and troubleshooting
    - Maintenance and inspection
    - Presentation of Completion Certificates
NISSEI School USA

Nissei America Headquarters and Nissei Texas Technical Center

HOURS

9:00am to 4:30pm
*Lunch 12 noon to 1PM


FEES

$399.00 per person
*including textbooks and lunch


REGISTRATION FORM DOWNLOAD

After confirming the availability (please call or email the location of your choice), please fill out and send us the registration form.

LOCATIONS

NISSEI LA

Los Angeles Tech Center

623 S State College Blvd. #10A
Fullerton, CA 92831
Phone: 714-693-3000
Size: 12 ppl/course
NISSEI Chicago

Chicago Tech Center

721 Landmeier Road
Elk Grove Village, IL 60007
Phone: 847-228-5000
Size: 11 ppl/course
NISSEI New Jersey

New Jersey Tech Center

1085 Cranbury South River Road Suite 7
Jamesburg, NJ 08831
Phone: 732-271-4885
Size: 12 ppl/course
NISSEI Texas

Texas Tech Center

3730 Global Way
(formerly Lyster Rd)
San Antonio, TX 78235
Phone: 732-271-4885
*Minimum of 10 ppl/course

Mbot2 Line Follower Code May 2026

def tune_pid(self): """ Interactive PID tuning """ print("\n=== PID Tuning Mode ===") print("Adjust values to improve line following:") print(f"Current: KP=self.KP, KI=self.KI, KD=self.KD") while True: print("\nCommands:") print(" kp [value] - Set proportional gain") print(" ki [value] - Set integral gain") print(" kd [value] - Set derivative gain") print(" test - Test current settings") print(" quit - Exit tuning") cmd = input("> ").strip().lower() if cmd.startswith("kp"): try: self.KP = float(cmd.split()[1]) print(f"KP set to self.KP") except: print("Invalid value") elif cmd.startswith("ki"): try: self.KI = float(cmd.split()[1]) print(f"KI set to self.KI") except: print("Invalid value") elif cmd.startswith("kd"): try: self.KD = float(cmd.split()[1]) print(f"KD set to self.KD") except: print("Invalid value") elif cmd == "test": print("Testing for 5 seconds...") self.follow_line(duration=5) elif cmd == "quit": break else: print("Unknown command") def main(): """Main function to run the line follower with menu""" follower = MBot2LineFollower()

choice = input("\nSelect option: ").strip() mbot2 line follower code

def calibrate_sensors(self): """ Calibrate line sensors for current surface """ print("Calibrating line sensors...") print("Place robot on WHITE surface and press Enter") input() # Read white values white_values = [] for i in range(5): white_values.append(self.bot.get_line_sensor(i+1)) print(f"White readings: white_values") print("Place robot on BLACK line and press Enter") input() # Read black values black_values = [] for i in range(5): black_values.append(self.bot.get_line_sensor(i+1)) print(f"Black readings: black_values") print("Calibration complete!") return white_values, black_values mbot2 line follower code