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. The typical supply voltage is 4V, but connecting V+ to the 5V or 3.3V pin on the Nucleo F401RE works fine.
The most recent PCB is also the smallest. It features an option for on-board supply-voltage regulation with a low-noise LDO (LT1761). It may be bypassed.
The supply-voltage is given by the resistors in the voltage divider connected to the ADJ-pin of the LT1761 (unpopulated in the photo above):
V = 1.22V(1+R₂/R₁) = 1.22V(1+2k7/1k2) = 3.965V
The drop-out voltage is 300mV, so this and the desired output voltage for the CCD must be taken into accound when choosing values for R₂ and R₁.
This PCB also features a cut-out for a thermoelectrically cooled heatsink.
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.