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:
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.
The pin-out is as follows:
You can also buy the SMD-board directly from 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.