ULN2004 Input Voltage (Output On)

Proprio così,
La famiglia ULN2004 non va bene per essere pilotata a 5Volt, al loro posto, se ti devi interfacciare ai micro atmega ti consiglio l'uso di ULN2003A che hanno una R sulla base di 2.7K
Gli ULN200X hanno solo 7 Transistor Darlington, se vuoi la versione a 8 Tr utilizza gli ULN2803A.
Poi magari lo colleghi lo stesso e funziona.... ma il costruttore es TI non ne garantisce il funzionamento a quelle tensioni.

Questo è quello che riportano i DS.

The ULN2002A is designed specifically for use with 14-V to 25-V PMOS devices. Each input of this device has a
Zener diode and resistor in series to control the input current to a safe limit. The ULN2003A and ULQ2003A have
a 2.7-k? series base resistor for each Darlington pair for operation directly with TTL or 5-V CMOS devices. The
ULN2004A and ULQ2004A have a 10.5-k? series base resistor to allow operation directly from CMOS devices
that use supply voltages of 6 V to 15 V. The required input current of the ULN/ULQ2004A is below that of the
ULN/ULQ2003A, and the required voltage is less than that required by the ULN2002A.