A roller conveyor assembly including a plurality of rollers and a frame including a pair of spaced apart frame members, wherein each of the rollers is rotatably mounted between the pair of frame members, a mounting arrangement is configured to mount a drive unit to one of the pair of frame members; and the drive unit comprises: a motor, including: a stator configured to receive an applied voltage, a rotor configured to rotate as a function of the applied voltage, a housing containing the stator and the rotor, wherein the housing has a first end, a second end opposite the first end, and a side wall extending between the first and second ends (51, 53), and an output shaft operatively connected to the rotor and extending through an opening in the first end of the housing; and a controller characterized by: a circuit board mounted to an outer surface of the housing of the motor, the circuit board including a logic circuit configured to control operation of the motor, a terminal block mounted to the circuit board and configured to receive a plurality of electrical conductors transmitting at least one of an input and an output signal to the logic circuit, and a cover enclosing the circuit board and connected to the motor housing, wherein the cover has an opening providing access to the terminal block. a motor, including: a stator configured to receive an applied voltage, a rotor configured to rotate as a function of the applied voltage, a housing containing the stator and the rotor, wherein the housing has a first end, a second end opposite the first end, and a side wall extending between the first and second ends (51, 53), and an output shaft operatively connected to the rotor and extending through an opening in the first end of the housing; and a stator configured to receive an applied voltage, a rotor configured to rotate as a function of the applied voltage, a housing containing the stator and the rotor, wherein the housing has a first end, a second end opposite the first end, and a side wall extending between the first and second ends (51, 53), and an output shaft operatively connected to the rotor and extending through an opening in the first end of the housing; and a controller characterized by: a circuit board mounted to an outer surface of the housing of the motor, the circuit board including a logic circuit configured to control operation of the motor, a terminal block mounted to the circuit board and configured to receive a plurality of electrical conductors transmitting at least one of an input and an output signal to the logic circuit, and a cover enclosing the circuit board and connected to the motor housing, wherein the cover has an opening providing access to the terminal block. a circuit board mounted to an outer surface of the housing of the motor, the circuit board including a logic circuit configured to control operation of the motor, a terminal block mounted to the circuit board and configured to receive a plurality of electrical conductors transmitting at least one of an input and an output signal to the logic circuit, and a cover enclosing the circuit board and connected to the motor housing, wherein the cover has an opening providing access to the terminal block.