Introduction

The development of molecule-based electronic devices for sensing or computation requires the synthesis of new materials and the fabrication of new architectures. As a result, switchable molecules, which can be turned into two different states using an external stimulus, have been thoroughly investigated during the last decade1,2,3,4. Their switching can be activated using a wide range of external excitations such as photons5, tunneling electrons6, chemical species7, or temperature8. Among the large variety of molecular switches, magnetic molecules have attracted a lot of interest as they combine interesting magnetic, electronic and mechanical properties9 and can be, in certain cases, photoactivated10,11. These magnetic molecular switches (MMSs)12 possess two accessible states with high-spin (HS) and low-spin (LS) configurations. The switching between these two states can be induced either by a change in the spin configuration of a metal center (e.g. spin crossover compounds)9,10,11,12 or by the transfer of one electron from one metal site to another (e.g. electron transfer molecules)13,14. The HS/LS conversion is commonly driven by a competition between the enthalpy and the entropy of the system. Thus, a change of the molecular spin is observed as a function of the temperature with the LS state being favorable below the crossover temperature. Remarkably, once in their LS state, the MMSs can be photo-switched in their HS state9,10,11,12,13,14.

Interestingly, the HS/LS switching involves an electronic redistribution between the non-bonding t2g and bonding eg orbitals of the metal ions, leading to a change of the molecule geometry and volume, as schematized in Fig. 1a. Therefore, this effect leads to a change of the mechanical properties of the switchable material. Recently, it has been proposed to exploit these properties by integrating MMSs in a free-standing mechanical system15,16,17. An alternative experimental approach consists in using an inorganic microelectromechanical system (MEMS) functionalized with switchable magnetic molecules for which the change of mechanical properties affects the resonance frequency of the device18,19. Another interesting and powerful approach to expand the application capability of the molecular switches is the use of organic MEMS20. In this case, large variations of the organic MEMS resonance could be observed when a surface stress is generated by the volume change of the MMSs. This idea has been experimentally demonstrated here. We have measured unprecedentedly large resonance frequency shifts of the hybrid device when the molecules experience a switching, either induced by thermal or optical excitations. Moreover, the present results have been reproduced with different molecular systems under different forms, thus demonstrating the versatility of our approach.

Figure 1
figure 1

A molecule-based MEMS. (a) Scheme illustrating that the magnetic switching can be activated in a MMS using different stimuli: temperature, light or pressure. The change of magnetic state is accompanied by a change of the molecule volume. (b) View of a chip implemented with the organic piezoelectric microelectromechanical system and the reference structure. Scale bar is 2 mm. (c) Scheme of the cut view of the MEMS suspended part highlighting its layered structure: the PEN substrate (25 µm) is covered with a piezoelectric PVDF-TrFE layer (4 µm) sandwiched between two aluminum electrodes (100 nm). A protective PDMS layer (6 µm) is deposited on the top of the structure and covered with the switchable magnetic molecule (<500 nm). (d) Temperature dependence of the resonance frequency, f0, of the pristine structure. The stiffness of the resonator increases with decreasing temperature leading to an increase of the resonance frequency when lowering the temperature. Inset: a typical resonance spectrum of the well-compensated piezoelectric resonator. (e) SEM micrograph of the molecule-based MEMS with the functionalized area in purple that contrasts with the uncovered area in green (artificially colorized view). Scale bar is 100 µm. Inset: molecular structure of complex SCO1, that exhibits spin-crossover (SCO) properties.

The piezoelectric MEMS used in this work are organic and fabricated at low-cost thanks to a rapid and simple process (Methods)20. They are made of a multilayer assembly consisting of a polyethylene naphtalate (PEN) substrate covered with the piezoelectric copolymer, poly(vinylidene fluoride-trifluoroethylene) (PVDF-TrFE), sandwiched between two thin layers of aluminum20 (Fig. 1b,c). Thanks to the polymer piezoelectricity, the resonators are actuated by applying a voltage across the two parallel aluminum electrodes. The detection of the mechanical resonance is achieved by measuring the change of the motional impedance, Z m , of the piezoelectric layer, induced by the displacement (Methods). Prior to the functionalization of the MEMS with MMSs, the temperature dependence of the first flexural mode, f0, was investigated. For this purpose, the MEMS device was cooled down using a liquid nitrogen cryostat and the resonance curves were collected for different temperatures (Fig. 1d). The characteristic frequency f0 exhibits a quadratic behavior mainly due to the dependence of the Young’s modulus with temperature. A significant change of f0 was not observed during the different thermal cycling. In addition, it should be mentioned that at low temperatures, around liquid nitrogen temperature, some frequency instability have been observed, probably due to the freezing out of the charges in the piezoelectric material, however, as soon as the devices reaches 90 K this instability vanishes.

To demonstrate the feasibility of our detection method, we focused first on the [Fe(dmbpy)(H2B(pz)2)2] spin crossover compound (noted SCO1; dmbpy = 4,4′-dimethyl-2,2′-bipyridine and H2B(pz)2 = dihydrobis(pyrazolyl)borate; Figs 1e and S1), as it exhibits a large change of unit cell volume (6%) at the crossover temperature (See supporting information). SCO1 was either dissolved in methanol and dropcasted onto the MEMS surface (device A; Fig. 1e), or directly sublimated using a thermal evaporator (device B), as reported in reference21. Figure 2a shows the resonance frequency for device A as a function of the temperature for pristine and hybrid resonators. A clear decrease of f0 is observed around 165 K for the hybrid resonator, which corresponds to the spin crossover temperature measured by standard magnetometry on bulk samples (Fig. S2). It is important to note, that this behavior is reproducible upon thermal cycling. To highlight the effect of the spin crossover on the mechanical response, we apply a quadratic correction to f0 which suppresses the intrinsic temperature dependence of the resonator structure. The Fig. 2b presents the evolution of ∆f*/f*, the relative variation of the corrected frequency that is directly compared to the signature of the spin crossover phenomenon obtained by direct magnetic measurements (Fig. 2c,d for devices A and B, respectively). These results prove that the large variations of the organic MEMS resonance frequency are induced by the spin crossover phenomenon of the molecules. Moreover, it clearly indicates that the deposition method does not strongly affect the crossover.

Figure 2
figure 2

Molecule-based MEMS and detection of the spin crossover phenomenon. (a) Comparison of the resonance frequency as a function of temperature before and after functionalization of the resonator (here as an illustrating example with SCO1 molecules). The hybrid resonator shows a drop of the resonance frequency around 165 K. (b) Relative variation of the resonance frequency corrected with the quadratic behavior of the pristine resonator. The red (blue) curve corresponds to a single (double)-side functionalization by MMSs (dropcasted). (c,d) High spin fraction of the SCO1 molecules as a function of the temperature. The red dots are extracted from the mechanical response (resonance frequency) of the resonator functionalized with dropcasted (c; Device A; frequency data are shown in Fig. 2a) or sublimated (d; Device B) MMSs. The experimental data are then fitted using a Fermi distribution (continuous line). The purple curve corresponds to magnetometry measurement performed on a polycrystalline sample of SCO1 using a SQUID magnetometer (See Fig. S2).

The shift of the resonance frequency is the consequence of a mechanical alteration of the resonator triggered by the switchable molecules at the spin crossover temperature. Two main effects have been discussed in the literature15,18,19: (i) the change of mechanical properties of the material (Young’s modulus, mass density) and (ii) the change of surface stress at the interface between MMSs and the resonator. The total relative frequency shift, [∆f0/f0]Total, is thus given by Equation 1:

$${[\frac{{\rm{\Delta }}{f}_{0}}{{f}_{0}}]}^{Total}={[\frac{{\rm{\Delta }}{f}_{0}}{{f}_{0}}]}^{Material}+{[\frac{{\rm{\Delta }}{f}_{0}}{{f}_{0}}]}^{Stress}$$
(1)

The relative frequency shift due to mechanical properties, [∆f0/f0]Material, was discussed in ref.19. Applying this model to our devices gives a theoretical [∆f0/f0]Material value of +0.16% (See supporting information). This estimation is clearly contrasting with our results, which reveal a total shift of −2.25% (Fig. 2b). The detected resonance shift is thus dominated by the surface stress that implies two contributions19: (i) the differential surface stress, \({\sigma }_{S}^{Diff}={\sigma }_{S}^{Upper}-{\sigma }_{S}^{Lower}\) (with \({\sigma }_{S}^{Upper}\) and \({\sigma }_{S}^{Lower}\), the surface stresses applied to the upper and lower faces of the cantilever) that induces a bending of the cantilever and (ii) the total surface stress: \({\sigma }_{S}^{Total}={\sigma }_{S}^{Upper}+{\sigma }_{S}^{Lower}\). While the first component is known to have a negligible effect on the resonance frequency22, the total surface stress strongly influences the cantilever resonance frequency23. The analytical expression of [∆f0/f0]Stress in relation with the total surface stress is explicitly given by Lachut and Sader23, Equation 2:

$${[\frac{{\rm{\Delta }}{f}_{0}}{{f}_{0}}]}^{Stress}=-\,0.042\frac{\nu (1-\nu ){\sigma }_{s}^{Total}}{Eh}(\frac{b}{L}){(\frac{b}{h})}^{2}$$
(2)

with L being the cantilever length, b the width, h the thickness, E the equivalent Young’s modulus of the multistacked device, and ν the Poisson ratio. Applying this approach to our hybrid MMS/MEMS resonators gives a stress induced in the MMSs material of 250 MPa \(({\sigma }_{MMS}=\frac{{\sigma }_{s}^{Total}}{{h}_{MMS}})\) for an experimental resonance frequency shift of −2.25%. To further demonstrate the key role of the total surface stress on the resonance frequency, the resonator was functionalized with MMSs on both its top and bottom faces as a significant increase of the shift is expected, whereas an effect of the differential surface stress should cancel this shift. As shown in Fig. 2b, [∆f0/f0]Total indeed increases to −3.8%, in agreement with the prediction of our model. It is also possible to compare the surface stress value, \({\sigma }_{MMS}\), of 250 MPa obtained with the above model with the stress, \({\sigma }_{MMS}^{\ast }={\varepsilon }_{MMS}^{\ast }{E}_{MMS}/(1-{\nu }_{MMS})\), that should be induced by eigenstrain due to MMS volume change \(({\varepsilon }_{MMS}^{\ast }=\frac{1}{3}{\rm{\Delta }}V/V)\). The numerical estimation of \({\sigma }_{MMS}^{\ast }\) leads to 145 MPa, which is in relative good agreement with the \({\sigma }_{MMS}\) value obtained above, especially considering that \({\sigma }_{MMS}^{\ast }\) does not take into account effects at the interface between MMSs and the MEMS resonator. The present analysis establishes that the origin of the frequency shift observed is the total surface stress induced by the volume change of the switchable molecules. This work also underlines the benefits for molecular sensing using MMSs when combined with organic MEMS. Their low Young’s modulus leads to highly sensitive sensors with large frequency shift responses. It is interesting to note that there is a slight difference in the characteristic spin crossover temperature between the two curves in Fig. 2b (140 K and 160 K). This effect can be explained considering that the molecules, which are deposited on the top layer, can move freely, meaning that at the spin crossover, the stress induced by the reduction of volume is released thanks to the bending of the MEMS. In this case, the mechanical curve reproduces the same thermal behaviour as the magnetization data observed for a polycrystalline sample. When both MEMS sides are covered, it becomes more difficult for the stress to be released and as a result, it requires more energy for the molecules to overcome the spin-crossover and thus the associated temperature is modified.

In order to test the versatility of our molecule-based sensors, SCO1 has been replaced by another switchable complex: Fe(MeOL-mCl)2 (noted SCO2; MeOL-mCl: N′((5-chloropyridin-2-yl)methylene)-4-methoxybenzohydrazonate; Fig. S3; see supporting information). This compound exhibits a magnetic change from HS to LS through a first order phase transition induced by strong elastic interactions between molecules. As a consequence, at finite temperature sweep rate, a thermal hysteresis is observed (see Fig. S4), which could confer our sensor a memory effect. As for device A, SCO2 has been dropcasted onto the organic MEMS. From the temperature dependence of f0, before and after deposition, the HS fraction of SCO2 was estimated for a thermal cycle between 300 and 120 K (a cooling/warming cycle). As shown in Fig. 3a, the spin crossover is preserved after deposition of SCO2 and as expected for a spin transition, it appears more abrupt than for devices A and B coated with SCO1. The presence of a thermal hysteresis loop between 220 and 180 K, larger than in the SCO2 bulk material (Fig. S4), is clearly observed. This reveals that the elastic interactions in this material are still active and even reinforced after the deposition. It is worth mentioning, that in contrast with SCO1 where the intermolecular interactions are much weaker, the switching process is instantaneous and discontinuous (as expected for a 1st order phase transition), inducing an abrupt change in the mechanical properties, which are thus not fully reversible. As a consequence, the life time of such bistable device is limited to only few thermal cycles. A better control of the elastic interactions between the molecules should allow us to study and control the fundamental physics underlying such switching processes. However, at this stage, the present result opens perspectives toward the use of spin transition materials in molecule-based sensors exhibiting non-volatile memory.

Figure 3
figure 3

Bistable molecule-based MEMS. (a) High spin fraction of SCO2 molecules as a function of the temperature. The blue dots and squares are deduced from the experimental mechanical response (resonance frequency) of the organic resonator functionalized with dropcasted MMSs in cooling and heating modes, respectively. The continuous lines are guides for the eyes. The first order phase transition of the deposited molecule-based material induces a thermal hysteretic effect giving rise to a bistable behavior. (b) High spin fraction of ET3 molecules as a function of the temperature. The blue and red dots are deduced from the experimental mechanical response (resonance frequency) of the organic resonator functionalized with dropcasted MMSs in cooling (in the dark) and heating (in the dark after light irradiation at 80 K) modes, respectively. The continuous lines are guides for the eyes. (c) Time evolution of the resonance frequency of the organic MEMS functionalized with ET3 during illumination at 80 K with white light (P = 1 mW/cm2).

Another interesting property of some MMSs is their ability to be photo-switched between their different magnetic states. To probe the possibility to build photo-active sensors, an electron transfer molecule, ({[(pzTp)Fe(CN)3]4[Co(pz)3CCH2OH]4[ClO4]4}·13DMF·4H2O noted ET3; pzTp = tetrakis(pyrazolyl)borate and (pz)3CCH2OH = 2,2,2-tris(1-pyrazolyl)ethanol; see supporting information) has been considered in this study as it can be photoswitched at liquid nitrogen temperature24. These molecules have been directly dropcasted onto the organic MEMS. The high-spin fraction of ET3 was estimated from f0 upon decreasing the temperature from 300 to 80 K as shown by the blue symbols in Fig. 3b. A magnetic switching of the ET3 molecules from the HS to the LS states is observed around 230 K. This magnetic conversion seems to be less abrupt than in the original ET3 material24 and slightly shifted of about 20 K to lower temperatures. At 80 K, the ET3-based hybrid device was irradiated with white light while the time evolution of f0 was recorded (Fig. 3c). In less than 5 minutes, f0 increases from 4.57 kHz to a saturation value of 4.63 kHz. It is important to note that the dynamical evolution under illumination depends on the light intensity. To avoid any parasitic light-induced heating, we have worked at relatively low irradiation power (P = 1 mW/cm2). The HS fraction estimated from this f0 variation evidences the complete photo-conversion of the ET3 molecules at 80 K (Fig. 3b). When increasing the temperature in the dark (the red symbols in Fig. 3b), the hybrid MEMS recovers the resonance frequency as before irradiation at 150 K. This feature, also seen in the original ET3 material at about 200 K, corresponds to the relaxation of the photo-induced HS molecules into their LS ground state; in other words, the system at 150 K has enough thermal energy to overcome the barrier separating the metastable and thermodynamic states. Further increase of the temperature leads to a recovery of the HS state above 220 K (Fig. 3b). It is worth noting that the difference between the cooling and warming branches contrasts with the absence of thermal hysteresis in the bulk ET3 material. This observation and the fact that the characteristic relaxation temperature of the photo-induced state is different for the hybrid device (150 K) and the original ET3 compound (200 K) strongly suggests that the ET3 molecules do not organize on the surface of the resonator with the same interaction pattern as in the bulk material. Consequently, this type of device could be very interesting to investigate the switchable properties of molecules in thin films. This last example highlights the remarkable versatility of these molecule-based microelectromechanical sensors: they can be triggered by temperature, as observed for the three reported hybrid devices, but also by light at a fixed temperature when functionalized with ET3 molecules.

Combining organic MEMS with switchable magnetic molecules has allowed us to detect large variations of the resonance frequency induced by a small change of volume at the molecular scale. Providing that this class of switchable molecules is extremely sensitive to external stimuli (such as temperature, light, pressure, chemical atmosphere…), these hybrid devices are promising systems for sensing applications9,10,11,12,13,14,15,16,17,18. In this work, we have indeed demonstrated that the reported molecule-based MEMS could be operated as a temperature and light detector as well as a non-volatile memory. These results pave the way toward an integration of organic MEMS devices in molecular electronics.

Methods

Fabrication of devices

The fabrication process starts with a 25 µm thick PEN film, used as a substrate, cleaned with isopropanol. Then, 300 nm of aluminum is evaporated through a PET (polyethylene terephthalate) shadow mask to pattern the bottom electrodes (for the free-standing cantilever and the reference capacitance). The deposition of the PVDF-TrFE layer is then achieved by using PVDF-TrFE powder (75–25% in mole; Piezotech) dissolved in 2-butanone with a mass content of 20%. This solution is spin-coated at 3500 rpm with a ramp of 1 second for 45 seconds, giving a thickness of about 4 µm. The resulting assembly is then annealed at 50 °C for 10 minutes to evaporate the solvent and at 140 °C for a hour to improve crystallinity. The aluminum top electrode is subsequently evaporated in the same conditions as the bottom one through a PET shadow mask. A 6 µm protective PDMS (polydimethylsiloxane; Sylgard 184, Dow Corning) layer is spin-coated on the top surface of the devices and cured at 80 °C for 2 hours. To finish the assembly process, the shape of the cantilever is obtained simply by xurography, thanks to a vinyl cutting machine Craft RoboPro CE6000 (Graftec Craft ROBO Pro). For proper use, the resulting MEMS resonators are glued on a glass blade with a double-sided adhesive tape, leaving the cantilever part suspended and the reference capacitance fixed. To induce piezoelectricity in the PVDF-TrFE film, the set-up is poled with a DC electric field of 100 V/µm for 10 minutes. It is worth mentioning that the obtained MEMS devices possess quality factors between 15 and 35.

Device measurement

The total impedance Z t between the two aluminum electrodes is composed of the motional impedance Z m with a constant capacitance C0 in parallel (C0 corresponds to the geometrical capacitor made of the PVDF-TrFE dielectric layer sandwiched between the two aluminum electrodes). To measure directly the variation of Z m , a reference capacitance C0 has been integrated on the MEMS chip, see Fig. 1b. It is composed of the same stacked layers but not free to move. An alternative signal is then applied on both structures with an independent, tunable amplitude of opposite sign to compensate the effect of C0. The voltage at the common electrode is then zero except when the free structure starts to move. Both the amplitude and phase are obtained using an IQ demodulator and then the resonance frequency f0 can easily be measured by a dedicated electronic card. The measurement error is less than few Hz on the resonance frequency (in the experimental kHz range) and less than 0.5 K over the 80–300 K range using an optical cryostat.