This paper discusses the implementation of Industry 4.0 in an educational setting. Simulation, virtual reality, analytics, robotics and automation, and 3D printing are integrated to develop a small-scale production line for producing and inspecting 3D printed parts. The system consists of a robot and controller, programmable logic controller, 3D printer, machine vision system, conveyor belt, 3-phase motor and motor controller, webcam, PC and monitor, Raspberry Pi computer, pneumatic system, beam sensor, simulation software, and VR equipment. The system components are connected via ethernet cables running to a basic ethernet switch. An ethernet router is also connected to the switch to resolve IP connection attempts by the connected components. A mini CNC machine is used to drill holes on small metal parts that are assembled with 3D printed parts and plastic bricks to make a car toy. A robot is pre-programmed to perform the assembly of the car toy and a Cognex® camera is used to inspect the parts. Deep learning models are used to predict the remaining useful life of the drilling bits.