It’s entirely possible to drive the TCD1304 directly from the GPIO’s of the Nucleo F401RE, but a PCB adds a lot of convenience and lower noise levels if done right (I’m not an electrical engineer, so I can’t guarantee that anything here is low-noise).

The datasheet suggests the following drive circuit for the TCD1304:


Typical drive circuit for the TCD1304.

And the PCBs presented here follow that, with the exception of an extra decoupling capacitor on the SMD-board. The typical supply voltage is 4V, but connecting V+ to the 5V pin on the Nucleo F401RE works fine.


TCD1304DG housed on the through-the-hole PCB


Front and back of the SMD TCD1304 PCB. The board is fitted with a TCD1304AP. The electrolytical cap C1 may be substituted for a smaller cheaper SMD tantalum cap.

The pin-out is as follows:


Pin-out of the through-the-hole PCB (NB: Parts numbering differ on the two boards).


Pin-out of the SMD-version of the TCD1304 PCB.

Eagle files:

Eagle-files for TCD1304 PCB (through-the-hole)

Eagle-files for TCD1304 PCB (SMD)

You can also buy the SMD-board directly from dirtyPCBs:

SMD-version at dirtyPCBs

I have a few spare SMD boards, that I’m selling for 2€. Use the contact form. The SMD version for sale is slightly different from the one depicted here.