Nanoparticles may be formed on a substrate by mixing precursor solutions deposited by an inkjet printer. A first solution is deposited on a substrate from a first inkjet print cartridge. Then, a second solution is deposited on the substrate from a second inkjet print cartridge. The solutions may be printed in an array of droplets on the substrate. Nanoparticles form when droplets of the first solution overlap with droplets of the second solution. In one example, the nanoparticles may be gold nanoparticles formed from mixing a first solution of 1,2-dichlorobenzene (DCB) and oleylamine and a second solution of gold chloride trihydrite and dimethyl sulfoxide (DMSO). The nanoparticles may be incorporated into optoelectronic devices.