betaFeedback

WorksPhysics and Astronomy

Harnessing Oscillatory Dynamics for Reprogrammable Mechanical Functionality

Abstract

A long-standing goal in the field of "mechanical computing" is the creation of truly reprogrammable mechanical structures, where the function of each unit can be dynamically defined, modified, and accessed on demand, much like rewriting data on a hard drive. Prior efforts have largely focused on bistable building blocks, which mimic binary states, but robust and efficient methods for programming large arrays of such units remain limited. In this study, we introduce a new approach for defining and reconfiguring the state of mechanical bits. Specifically, we investigate arrays of pendula whose boundary conditions break symmetry, effectively transforming them into mechanical bits. When actuation times are short compared to the natural oscillation periods, the state of each pendulum can be controlled solely by adjusting the timing of global boundary conditions. This mechanism enables rapid reprogramming, arbitrary information writing, and even the construction of a "mechanical piano" capable of generating user-defined note and chord sequences within only a few oscillation cycles. Because it integrates seamlessly with diverse functionalities, our strategy establishes a scalable framework for reprogrammable mechanical systems and can be readily generalized to other oscillatory systems like membranes or beams.

Mechanical bits are typically non-volatile, implemented using bistable structures with a double-well energy landscape in which each stable configuration represents a digital state, either state 0 or state 1 [13, 14]. A key advantage of this approach is that the states are inherently robust and require no external energy to be maintained. However, switching between states requires an external energy input to drive the transition. In contrast, monostable structures exhibit a globally convex energy landscape with a single stable equilibrium configuration (Figure 1a). While they are not inherently suited for storing states, they can still be used for mechanical computing by harnessing their predictable harmonic oscillations and associating logical states with the direction of motion [12]. However, due to damping, these oscillations decay over time and persist only when energy is continuously supplied through external excitation, thereby mimicking the behavior of volatile memory [22]. A promising pathway towards mechanical reprogrammable systems is to develop a hybrid system that can switch between monostable and bistable energy landscapes through a single control parameter. In this framework, the bistable (double-well) phase serves as a non-volatile regime that stores mechanical information without continuous energy input, while the monostable (single-well) phase introduces volatility and allows the system to be reprogrammed.

Mechanical bit and experimental time evolution of the pendulum angular motion and indenter displacement

Figure 1. Mechanical bit. a) Schematic of the globally convex energy landscape of a freely oscillating pendulum. b) Schematic of the energy landscape when the indenter is lowered, breaking the symmetry of the system. c) Experimental time evolution of the pendulum angular motion (left axis) together with the indenter displacement uyu_y (right axis). The pendulum has a natural period T=0.72T = 0.72 s. Insets show snapshots of the pendulum locked in state s=0s = 0 at t=7t = 7 s and in state s=1s = 1 at t=17t = 17 s.

Here, we present a proof-of-concept for a hybrid mechanical bit that operates by kinematically breaking the symmetry of an oscillating pendulum. Unlike conventional bistable structures, where the geometry itself gives rise to two energy minima [23], a vertically moving indenter introduces the double-well energy landscape in our system. When the indenter is raised, the pendulum oscillates freely and exhibits a single energy minimum when aligned vertically (i.e. at θ=0\theta=0 - Figure 1a). Lowering the indenter reshapes the energy landscape into two potential wells separated by an effectively infinite energy barrier, thereby locking the pendulum into one of the wells, each corresponding to a distinct state (Figure 1b). The well in which the pendulum settles is determined by its angular displacement θ\theta at the moment of actuation. If the indenter is lowered while θ\theta is positive, the pendulum is captured to the left of the vertical axis, which we define as state s=1s=1 (Figure 1c). If instead it is lowered when θ\theta is negative, the pendulum settles to the right, corresponding to state s=0s=0 (Figure 1c). Thus, by precisely timing the actuation, we can deterministically set the pendulum to either state 0 or 1. Moreover, by raising the indenter, the pendulum is released into free oscillation, allowing the state to be reprogrammed by lowering the indenter again after a specific time window Δt\Delta t (Figure 1c and Supplementary video S1). The pendulum retains the same state if Δt∈[(n−1)T+T4]∪[nT−T4,nT]\Delta t\in[(n-1)T+\frac{T}{4}]\cup[nT-\frac{T}{4},nT], where TT is the natural period of the pendulum and nn is a positive integer. Conversely, it switches state if indentation occurs in Δt∈[(n−1)T+T4,nT−T4]\Delta t\in[(n-1)T+\frac{T}{4},nT-\frac{T}{4}].

Next, we investigate the collective behavior of NN independent hybrid mechanical bits subjected to simultaneous actuation by a vertically moving indenter. By assigning each pendulum a distinct natural period, we leverage their gradual desynchronization to access all 2N2^N possible system states. As an illustrative example, in Figure 2 we show results for an array of three pendula with periods Tmin⁡=0.59 sT_{\min}=0.59\ \mathrm{s}, Tmid=0.61 sT_{\mathrm{mid}}=0.61\ \mathrm{s}, and Tmax⁡=0.64 sT_{\max}=0.64\ \mathrm{s}. At time t=0t=0, we initialize all pendula in state s=0s=0, placing the system in state smin⁡smidsmax⁡=000s_{\min}s_{\mathrm{mid}}s_{\max}=000. The pendula are then released to oscillate freely. To program a specific target state, we identify a time window Δtw\Delta t_w during which all three pendula simultaneously occupy the desired state. We note that the duration of the actuation window Δtw\Delta t_w must

Figure 2. State programming via desynchronization. a) Temporal evolution of s(t)s(t) for three pendula with Tmin⁡=0.59 sT_{\min}=0.59\ \mathrm{s}, Tmid=0.61 sT_{\mathrm{mid}}=0.61\ \mathrm{s}, and Tmax⁡=0.64 sT_{\max}=0.64\ \mathrm{s}. Gray windows indicate intervals Δtw=0.1 s\Delta t_w=0.1\ \mathrm{s} during which all three pendula occupy the desired state. b) Experimental temporal evolution of the angular positions θ(t)\theta(t) of the three pendula. c) Experimental setup of the reprogrammable linear spring. The system is shown in state 101 with three elastomeric spheres positioned on the left side of each pendulum. d) Experimental force–displacement curves (continuous lines) for three hemispherical shells with thickness-to-radius ratio d/R=1d/R=1, 0.3, and 0.2 under pendulum indentation. Curves are obtained by taking the mean of three tests. Dashed lines indicate linear fits. e) Experimental force–displacement curves obtained by further lowering the indenter with the system programmed in all 8 states (continuous lines). Predictions from the summed responses of the indented shells are shown as dotted lines. f) Numerical prediction of Δtmax⁡=max⁡(Δt)\Delta t_{\max}=\max(\Delta t) as a function of the pendula natural periods for Δtw=0.1 s\Delta t_w=0.1\ \mathrm{s}. Blue and red markers indicate the set used in a) and the optimal set that minimizes Δtmax⁡\Delta t_{\max}, respectively.

be shorter than half the smallest period in the array (Tmin⁡T_{\min}), but large enough to ensure that the indenter can successfully lock each pendulum in place during it. In Figure 2a, the shaded regions mark the time intervals where the indenter must be lowered to reach all seven states from the initial 000 state when choosing Δtw=0.1 s\Delta t_w=0.1\ \mathrm{s}. Figure 2b presents the measured angular trajectories (Supplementary video S2), confirming that each pendulum can indeed be trapped in the desired state. For the chosen pendula and Δtw=0.1 s\Delta t_w=0.1\ \mathrm{s}, state 010 requires the longest time to be accessed, with Δt=Δtmax⁡=5.85 s≃9.1Tmax⁡\Delta t=\Delta t_{\max}=5.85\ \mathrm{s}\simeq9.1T_{\max}.

The ability to efficiently program the system state enables reconfiguration of its mechanical response, which can be exploited for both functionality and state readout. As an example, we construct a reprogrammable linear spring by attaching elastomeric shells to the left side of each pendulum, such that indentation occurs only when the pendulum is in state s=1s=1. After programming a state, we apply an additional displacement upushu_{\mathrm{push}} by further lowering the indenter, causing the pendula in state s=1s=1 to indent their shells while we measure the resulting force–displacement response (see Supporting Information, Section II.B). The shells are fabricated by molding a VPS elastomer (Zhermack Elite Double 32) (see Supporting Information, Section I.B) and their mechanical response is tuned through the thickness-to-radius ratio d/Rd/R (Figure 2d and Figure S5). To ensure distinct responses, shells with d/R=0.2d/R=0.2, 0.3, and 1.0 (all with outer radius R=20 mmR=20\ \mathrm{mm}) are placed on the left side of the pendula with periods Tmin⁡T_{\min}, TmidT_{\mathrm{mid}}, and Tmax⁡T_{\max}, respectively. Since each shell produces a different indentation response, each programmed state yields a distinct force–displacement curve (Figure 2e). This leads to two key outcomes. First, the system acts as a reprogrammable linear spring: selecting a particular bit configuration gives rise to a predictable, distinct mechanical response. Second, the one-to-one mapping between state and force–displacement curve provides a robust state readout mechanism. Because these curves can be accurately reconstructed by summing the responses of the indented shells (dotted lines in Figure 2e), the underlying bit configuration can be identified by matching the measured response to this superposition (see Supporting Information, Section II.B), without requiring prior knowledge of the initial state or timing.

Figure S5. Characterization of the shell response. a) Photograph of the experimental setup used to characterize the response of an individual shell. b) Force–displacement curves of the three shells. Solid lines: experimental data; dashed lines: linear fits.

While the three pendula used in Figure 2a–Figure 2e require up to 5.85 s to reach a system state starting from 000, this time can be substantially reduced by carefully selecting their natural periods. The maximum time interval Δt\Delta t needed to access one of the seven system states from 000, denoted Δtmax⁡\Delta t_{\max}, cannot be shorter than 23Δtw2^{3}\Delta t_{\mathrm{w}}. This lower bound is intuitively achieved by choosing Tmin⁡=4ΔtwT_{\min}=4\Delta t_{\mathrm{w}}, Tmid=8ΔtwT_{\mathrm{mid}}=8\Delta t_{\mathrm{w}}, and Tmax⁡=16ΔtwT_{\max}=16\Delta t_{\mathrm{w}} (see Supporting Information, Section III.B, Figure S12 for details). However, due to fabrication tolerances and spatial constraints, the pendulum periods in our experimental setup are restricted to the range T∈[0.5,0.8]T \in[0.5,0.8] s, making it impossible to realize the theoretical optimum. Instead, we systematically explore the allowable design space to identify the set of periods that minimizes Δtmax⁡\Delta t_{\max} within these constraints. As shown by a red dot in Figure 2f, for Δtw=0.1\Delta t_{\mathrm{w}}=0.1 s, the optimal set within the permitted range corresponds to periods Tmin⁡=0.63Tmax⁡=0.5T_{\min}=0.63T_{\max}=0.5 s and Tmid=0.78Tmax⁡=0.62T_{\mathrm{mid}}=0.78T_{\max}=0.62 s with the longest period set to Tmax⁡=0.79T_{\max}=0.79 s. With those three natural periods, all eight configurations are reached within Δtmax⁡=1.225\Delta t_{\max}=1.225 s ≃1.6Tmax⁡\simeq1.6T_{\max} when starting from state 000 (we recall the absolute possible minimum is Δtmax⁡=23Δtw=0.8\Delta t_{\max}=2^{3}\Delta t_{\mathrm{w}}=0.8 s for Δtw=0.1\Delta t_{\mathrm{w}}=0.1 s).

Figure S12. Optimal set of 3 pendula. a) Schematics of the pendula. b) Temporal evolution of s(t)s(t) for three pendula with Tmin⁡=0.4 sT_{\min} = 0.4\,\mathrm{s}, Tmid=0.8 sT_{\mathrm{mid}} = 0.8\,\mathrm{s} and Tmax⁡=1.6 sT_{\max} = 1.6\,\mathrm{s}. The light gray windows indicate the minimal time window Δtw=0.1 s\Delta t_{\mathrm{w}} = 0.1\,\mathrm{s} in which we can observe each configuration.

The platform can be readily generalized to an arbitrary number of pendula and to transitions between any pair of system states. As a demonstration, we consider a system of five pendula, select five out of the 252^{5} possible states, and search for the set of pendulum periods that minimizes the maximum transition time between any pair of the selected states. The chosen states are those in which only one pendulum is in state 1 and the others are in state 0 (namely, 10000, 01000, 00100, 00010, and 00001), yielding Ns(Ns−1)/2=10N_{\mathrm{s}}(N_{\mathrm{s}}-1)/2=10 unique state transitions, where NsN_{\mathrm{s}} is the number of selected states (Figure 3a). Using the minimum achievable time window of our experimental setup, Δtw=0.02\Delta t_{\mathrm{w}}=0.02 s, we find the optimal set of pendulum periods to be T=0.50T=0.50, 0.54, 0.61, 0.67, 0.76 s. As shown in Figure 3a, for this configuration the shortest transition occurs between states 00010 and 00001 with Δt=0.44\Delta t=0.44 s, while the longest occurs between states 01000 and 00010 with Δt=2.375\Delta t=2.375 s.

Figure 3. Playing five-notes songs. a) Diagram of all possible transitions between the five states, with colored arrows indicating the transition times Δt\Delta t. b) The system sorted into state 10000 by lowering the indenter. c) A further 2 mm downward displacement of the indenter brings the pendulum in state s=1s=1 into contact with its switch, switching on the red LED. d) Chords of "Oh When the Saints" (34-notes sequence). e) Experimental demonstration of a five-note sequence from "Oh When the Saints". Top: notes and rest times; middle: indenter displacement over time with snapshots showing the pendula activating the corresponding LEDs; bottom: pendulum angles θ\theta over time.

The five pendula can be viewed as the fingers of a robotic hand, each independently programmable to interact with external objects such as a keyboard or piano. To functionalize the system, we place a limit switch on the left side of each pendulum and connect it to an LED. After the pendula are programmed into a desired state (Figure 3b), an additional downward displacement upushu_{\mathrm{push}} of about 2 mm is applied to the indenter, bringing any pendula that are in state s=1s=1 into contact with their switches and thereby activating the corresponding LEDs (Figure 3c). To reprogram the system while maintaining consistent oscillation amplitude, the indenter is displaced upward by about 2 mm before being released into free oscillation. This procedure ensures stability and repeatability across programming cycles.

By assigning a musical note to each sensor [24], the system can be programmed to play five-notes melodies, such as "Oh When the Saints" (Figure 3d), with the pendula acting as actuated ‘fingers’. In this demonstration, we map the notes Do, Re, Mi, Fa, and Sol to the states 00001, 00010, 00100, 01000, and 10000, respectively, and show that the platform can reproduce arbitrary songs composed of these five notes (Figure 3e, Figure S6 and S7, Supplementary video S3 and S4). The rhythm of the song is faithfully reproduced, with the musical tempo set by the longest Δt\Delta t among the required state transitions, together with the motor control time (0.3 s) and the note-playing time (2 s). Here, Δt=2.375\Delta t = 2.375 s ≃3.1Tmax⁡\simeq3.1T_{\max} when playing Re followed by Fa, or vice versa. These factors yield a tempo of 4.7 s, as shown by the gray vertical lines separating consecutive notes in Figure 3d–Figure 3e.

Figure S6. Playing Oh When the Saints. Chorus of Oh When the Saints (34-notes sequence) together with the temporal evolution of the indenter displacement used to play it. Insets show snapshots of the LEDs during the experiment. A recording of the experiments is provided in Supplementary Video S3.

The system is not limited to the five states shown in Figure 3; it can be programmed to access all 252^5 states, corresponding to 496 possible transitions. These transitions, however, are not unique, since Δt\Delta t depends only on which pendula flip and which remain unchanged. For example, the transition from 00100 to 01000 takes the same time as the transition from 01101 to 00001, as both involve flipping the second and third pendula while leaving the others unchanged (Figure 4a). We denote such transitions as XFFXXXFFXX, where ‘F’ indicates a state flip and ‘X’ denotes no change. Consequently, although 496 transitions are possible, only 32 distinct Δt\Delta t exist. We therefore search for the pendulum periods that minimize the longest of these 32 transitions, Δtmax⁡\Delta t_{\max}. We find that for T=0.50T = 0.50, 0.53, 0.59, 0.65, and 0.78 s all 32 transitions occur in less than 3.225 s ≃4.1Tmax⁡\simeq4.1T_{\max} for Δtw=0.02\Delta t_w = 0.02 s (Figure 4a). As shown in Figure 4b, Δtmax⁡\Delta t_{\max} depends strongly on the observation window Δtw\Delta t_w: larger Δtw\Delta t_w yields systematically longer Δtmax⁡\Delta t_{\max}, with the set of optimal natural periods also shifting. In the limit Δtw→0\Delta t_w \to0, Δtmax⁡\Delta t_{\max} approaches a plateau of 2.875 s.

Figure 4. Accessing all 32 states. a) Transition times Δt\Delta t for the 32 distinct state changes, using pendulum periods chosen to minimize the maximum transition time Δtmax⁡\Delta t_{\max}. b) Dependence of Δtmax⁡\Delta t_{\max} on the observation window Δtw\Delta t_w. c) Chorus of "Smoke on the Water" (12-chords sequence). d) Experimental demonstration of a three-chord sequence from "Smoke on the Water". Right axis: indent displacement over time (black lines). Left axis: pendulum angles θ\theta over time (colored lines). Insets: snapshots from Supplementary Video S5.

Accessing any state within a bounded actuation time enables the system to play arbitrary sequences of notes and chords. To demonstrate this, we fabricated the set of pendula that minimizes Δtmax⁡\Delta t_{\max} across all 32 possible transitions and programmed the system to reproduce a 12-chords progression from the chorus of "Smoke on the Water" (Figure 4c). In this demonstration, the notes Do, Re, Mi, Sol, and La are mapped to the states 00001, 00010, 00100, 10000, and 01000, respectively, with chords formed by simultaneously activating multiple notes. For instance, the first three chords of the progression are realized by programming the system into states 01100, 10001 and 01010 (Figure 4d, Figure S8, Supplementary video S5). The rhythm of the song is faithfully captured by adjusting the resting times between transitions in proportion to the pendula sorting time, ensuring a musical tempo of 4.2 s (the longest transition used in the song is FFXFFFFXFF with Δt=1.9\Delta t = 1.9 s).

Smoke on the Water musical sequence and indenter displacement over time

Figure S8. Playing Smoke on the Water. Chorus of Smoke on the Water (12-chords sequence) together with the temporal evolution of the indenter displacement used to play it. Insets show snapshots of the LEDs during the experiment. A recording of the experiments is provided in Supplementary Video S5.

In summary, we have demonstrated that arrays of oscillating pendula, with symmetry broken by kinematic boundary conditions, can be programmed to function as mechanical bits. The system state is dictated solely by the timing of a global actuation signal, which can be tuned to access desired configurations. This platform enables reprogrammable mechanical responses, arbitrary information encoding, and the implementation of a mechanical piano capable of executing user-defined note sequences within only a few oscillation periods of the slowest pendulum.

By integrating multiple functionalities within a single framework, our approach establishes a new class of scalable systems that exploit dynamics for simple and efficient mechanical reprogramming. Although our experiments employed pendula as mechanical bits, the concept readily generalizes to other oscillatory systems. In particular, elastic oscillators like membranes or beams [25], which are now relatively easy to make at the microscopic scale [26], could provide faster and more scalable reprogrammability. More broadly, the same principles may inspire analogous platforms in fluids [27], chemical oscillators [28], and electronic circuits [29], all of which inherently exhibit oscillations and multistability, underscoring the universality of dynamics as a pathway to reprogrammable matter.

Acknowledgments

K.B. acknowledges support from the Simons Collaboration on Extreme Wave Phenomena Based on Symmetries. G.R. acknowledges support from the Swiss National Science Foundation under Grant No. P500PT-217901. A.L acknowledges support from the French National Center for Scientific Research for hosting him in a CNRS delegation.

Fabrication

Fabrication of the pendula

The pendula are fabricated from 4 mm thick PMMA sheets, laser-cut according to the design in Figure S1. A ball bearing is inserted into the top hole after cutting to reduce friction with the metallic support rod. The natural period is tuned by adjusting the pendulum length LL. Figure S1 reports the experimentally measured periods for seven pendula with L∈[55,180]L \in[55, 180] mm, showing a linear dependence:

Figure S1. Design of the pendula. a) Schematic of a pendulum used for laser cutting. b) Experimentally measured periods TT for pendula of varying lengths LL (circular markers). The dashed line shows the linear fit described by Eq. (1).

T=2.4×10−3L+3.7×10−1,(1)T = 2.4 \times10^{-3} L + 3.7 \times10^{-1}, \tag*{(1)}

with LL in millimeters and TT in seconds. In this study, Eq. (1) is used to determine LL for a desired target period TT.

Fabrication of the hemispherical shells

The hemispherical shells used in this study are made of nearly incompressible polyvinylsiloxane (PVS) elastomers (Elite Double 8 from Zhermack with pink color). The shells are cast using a two-part mold designed using Onshape and 3D printed with a Formlabs SLA 3D printer. The following step-by-step process is followed:

  1. We 3D print the male and female mold shown in Figure S2. A layer of Mann Release mold 200 is applied.

Shell fabrication

Figure S2. Shell fabrication. a) Photograph of the mold used in the process. b) The female mold part filled with uncured polyvinylsiloxane (PVS) elastomer mixture. c) The mold closed with pressure clamps to ensure proper alignment. d) Schematic of the resulting shell with thickness dd and radius RR.

  1. We fill the female mold parts with the uncured polyvinylsiloxane (PVS) elastomer mixture (Figure S2).

  1. We close the molds with pressure clamps to ensure accurate alignment and keep it at room temperature (25 °C) for 30 minutes (Figure S2).

  1. The shell is removed from the mold.

  1. Individual shells are bonded using Loctite Plastics to a circular support with radius 25 mm, which is lasercut from 1/4” acrylic panel.

For this study, we manufacture three hemispherical shells with different wall thicknesses. The outer radius of the shells is R=20R = 20 mm and the thickness-to-radius ratios are d/R=0.2d/R = 0.2, 0.30.3, and 1.01.0.

Testing

Programming states

A. Programming states. In our setup, a metallic rod with a diameter of 5 mm passes through the hole at the top of each pendulum, where ball bearings are inserted to minimize friction. As shown in Figure S3, this rod is fixed to a frame built from aluminium profiles (NORCAN). A 3D-printed indenter with a triangular cross-section (22 mm wide, 15 mm high, and 250 mm long) is positioned above the pendula. Its motion is controlled by two servo motors (MG 996R) –one at the front and one at the back to prevent tilting –driven by an Arduino Mega 2560 connected to a computer. The servomotors are linked to the indenter via laser-cut arms (4 mm thick - Figure S3). By setting the servo angle through an Arduino script, the indenter is translated vertically. More specifically, the indenter displacement is controlled by the servomotor angle as follows:

Experimental setup for programming states, showing an overview and a detailed view of the main components

Figure S3. Programming states. a Overview of the experimental setup. b Detailed view highlighting the main components.

  • An angle of 1.5∘1.5^\circ raises the indenter by approximately 1 mm.

  • An angle of −1.5∘-1.5^\circ lowers the indenter by approximately 1 mm.

In our tests, to program a state we lower and raise the indenter by 10 mm, corresponding to a rotation of ±15∘\pm15^\circ of the servomotor.

Reprogrammable linear spring

B. Reprogrammable linear spring. In Figure S4, we show the experimental setup used to demonstrate a reprogrammable linear spring, achieved by attaching elastomeric shells to the left side of each pendulum. The response of the system is measured with an Instron uniaxial testing machine equipped with a 50 N load cell, operating under displacement control at a rate of 0.06 mm/s, chosen based on a rate-dependency study. A state is first programmed as described in Section A, after which the Instron is used to further press on the indenter while recording the reaction force.

Figure S4. Reprogrammable linear spring. a) Experimental setup used to demonstrate a reprogrammable linear spring. b) Schematic of a pendulum indenting a shell.

To obtain eight distinct responses, three shells with different thickness-to-radius ratios were selected. The response of each shell was characterized as shown in Figure S5, where a single pendulum was pressed against a shell while recording the applied force. The measured force–displacement curves for the three shells, displayed in Figure S5, confirm that shells with larger d/Rd/R ratios exhibit greater stiffness, as expected. The responses are well captured by linear fits (dotted lines in Figure S5). Specifically, the response of the three considered shells is fitted as

Pi=aiufor i=1,2,3,(2)P_i = a_i u \quad\text{for } i = 1,2,3, \tag*{(2)}

where PiP_i is the force in N of the ithi^{\mathrm{th}} shell, uu is the applied displacement in millimeters, and aia_i is a fitting parameter. We find a1=3.8e−1a_1=3.8\mathrm{e}^{-1} N/mm for the shell with d/R=0.2d/R=0.2, a2=6.7e−1a_2=6.7\mathrm{e}^{-1} N/mm for the shell with d/R=0.3d/R=0.3 and a3=2.3a_3=2.3 N/mm for the shell with d/R=1.0d/R=1.0.

We now use these fits to predict the overall system response (Figure 2e in the main text). Because the Instron applies the load to the rod connecting all pendula, the measured load FF is not directly equal to the sum of the shell reaction forces PiP_i defined in Eq. (2). Specifically, the displacement applied by the Instron to the rod, upushu_{\mathrm{push}}, changes the angle of each pendulum by Δθ\Delta\theta, which in turn generates a displacement uu applied by the pendulum to the shell:

u=lsin⁡Δθ,(3)u = l \sin\Delta\theta, \tag*{(3)}

where ll is the distance between the shell–pendulum contact point and the axis of rotation of the pendulum (see Figure S4). Although each pendulum has a different length LL, in this study the shell positions are adjusted so that ll is fixed at 80 mm for all pendula. Substituting Eq. (3) into Eq. (2) and noting that a pendulum indents a shell only when s=1s=1, we obtain

Pi={ailsin⁡Δθif si=1,0if si=0,for i=1,2,3.(4)P_i = \begin{cases} a_i l \sin\Delta\theta& \text{if } s_i = 1,\\ 0 & \text{if } s_i = 0, \end{cases} \quad\text{for } i = 1,2,3. \tag*{(4)}

The rotational equilibrium of the pendula is expressed as

∑i=13Pilcos⁡θ=αFl′,(5)\sum_{i=1}^{3} P_i l \cos\theta= \alpha F l', \tag*{(5)}

where l′l' is the distance between the pivot of the pendulum and the point of load application by the Instron (see Figure S4), and αF\alpha F denotes the component of the reaction force measured by the Instron that is perpendicular to l′l'. Because the contact mechanics between the indenter and pendulum are complex and difficult to model explicitly, α\alpha is introduced as an empirical, dimensionless fitting constant.

Next, we assume small Δθ\Delta\theta and a proportionality between upushu_{\mathrm{push}} and Δθ\Delta\theta,

sin⁡Δθ≈Δθ,cos⁡Δθ≈1,Δθ=βupush.(6)\sin\Delta\theta\approx\Delta\theta,\quad\cos\Delta\theta\approx1,\quad\Delta\theta= \beta u_{\mathrm{push}}. \tag*{(6)}

Substituting Eq. (6) into Eq. (5) gives

F=∑i=13βαl2ail′upush.(7)F = \sum_{i=1}^{3} \frac{\beta}{\alpha}\frac{l^2 a_i}{l'}u_{\mathrm{push}}. \tag*{(7)}

By fitting β/α\beta/\alpha to the experimental data, we obtain β/α=0.05\beta/\alpha=0.05, which provide an accurate prediction of the global system behavior, as shown in Figure 2e of the main text.

Playing songs

C. Playing songs. The pendula can be viewed as the fingers of a robotic hand, each independently programmable to interact with external objects such as a keyboard or piano. To functionalize the system, we place a limit switch (OMRON D3V-6G6M-3C24-K) on the left side of each pendulum and connect it to an LED. After the pendula are programmed into a desired state, an additional downward displacement of about 2 mm is applied to the indenter, bringing any pendula that are in state s=1s = 1 into contact with their switches and thereby activating the corresponding LEDs.

To illustrate the reprogrammability of our system, we demonstrate it by playing three songs: "Oh When the Saints" (Figure S6), "Jingle Bells"(Figure S7), and "Smoke on the Water"(Figure S8). The first two songs use five notes (Do, Re, Mi, Fa, and Sol), which we map to the states 00001, 00010, 00100, 01000, and 10000, respectively. These two songs are performed using pendula with periods T=0.50T = 0.50, 0.54, 0.61, 0.67, and 0.76 s. "Smoke on the Water" incorporates chords built from the notes Do, Re, Mi, Sol, and La, which are mapped to the states 00001, 00010, 00100, 10000, and 01000, respectively, and is played with pendula of periods T=0.50T = 0.50, 0.53, 0.59, 0.65, and 0.78 s.

Figure S7. Playing Jingle Bells. Chorus of Jingle Bells (26-notes sequence) together with the temporal evolution of the indenter displacement used to play it. Insets show snapshots of the LEDs during the experiment. A recording of the experiments is provided in Supplementary Video S4.

Figures S6, S7, and S8 show the complete musical notes alongside the corresponding indenter displacement uyu_y and snapshots of the illuminated LEDs for each note or chord. The vertical black lines in the plots indicate the musical tempo. To faithfully reproduce the rhythm of each song, the tempo was set proportional to the longest transition time Δt\Delta t required among all state changes. For "Oh When the Saints" and "Jingle Bells", Δt=2.375\Delta t = 2.375 s, and for "Smoke on the Water", Δt=1.9\Delta t = 1.9 s. The effective tempo is then calculated as the sum of three contributions: the longest state transition time (Δt\Delta t), the motor control and delay time (0.3 s), and the actuation time required for pressing (2 s), resulting in 4.7 s for "Oh When the Saints" and "Jingle Bells" and 4.2 s for "Smoke on the Water".

Numerical algorithm

Algorithm to determine Δt\Delta t

For a system of NN pendula with periods T1,T2,…,TNT_1,T_2,\ldots,T_N, we determine the time interval Δt\Delta t at which the indenter should be lowered to program a desired state s1s2…sNs_1s_2\ldots s_N. This is done using a Python script that proceeds as follows (see Figure S9):

Image not extracted

Figure S9. Algorithm to determine Δt\Delta t. Square-wave signals si(t)s_i(t), switching times tswt^{\mathrm{sw}}, and intervals Δtsw\Delta t^{\mathrm{sw}} for a system with N=3N=3 pendula.

  • Step 1: Represent the angular motion of each pendulum as a square-wave signal si(t)s_i(t), where

si(t)={1,θi>0(pendulum left of vertical),0,θi<0(pendulum right of vertical).s_i(t) = \begin{cases} 1, & \theta_i > 0 \quad\text{(pendulum left of vertical)},\\ 0, & \theta_i < 0 \quad\text{(pendulum right of vertical)}. \end{cases}
  • Step 2: Compute the switching times of each signal si(t)s_i(t):

tsw={nTi+Ti4,nTi+3Ti4,i=1,2,…,N,n=0,1,2,…t^{\mathrm{sw}} = \begin{cases} nT_i + \frac{T_i}{4},\\ nT_i + \frac{3T_i}{4}, \end{cases} \qquad i=1,2,\ldots,N,\quad n=0,1,2,\ldots
  • Step 3: Collect all switching times tswt^{\mathrm{sw}} into a single list and sort them in ascending order.

  • Step 4: For each consecutive pair (tjsw,tj+1sw)(t_j^{\mathrm{sw}},t_{j+1}^{\mathrm{sw}}) compute their separation

Δtjsw=tj+1sw−tjsw.\Delta t_j^{\mathrm{sw}} = t_{j+1}^{\mathrm{sw}} - t_j^{\mathrm{sw}}.

◇ If Δtjsw<Δtw\Delta t_j^{\mathrm{sw}} < \Delta t_{\mathrm{w}}, no state is considered accessible (since each state must persist for at least Δtw\Delta t_{\mathrm{w}}). Continue with the next pair of switching times.

◇ If Δtjsw≥Δtw\Delta t_j^{\mathrm{sw}} \ge\Delta t_{\mathrm{w}}, then the system is in an accessible state during the interval tjsw<t<tj+1swt_j^{\mathrm{sw}} < t < t_{j+1}^{\mathrm{sw}}. This state is given by s1(tjsw)s2(tjsw)…sN(tjsw)s_1(t_j^{\mathrm{sw}})s_2(t_j^{\mathrm{sw}})\ldots s_N(t_j^{\mathrm{sw}}).

★ If this matches the desired state, store the corresponding switching time.

★ Otherwise, proceed to the next pair of switching times.

To obtain Δt\Delta t for a list of KK desired states, we repeat the procedure KK times, once for each state. This yields a set of Δt\Delta t values, from which we determine Δtmax⁡\Delta t_{\max} as the maximum over all KK results.

Minimizing the time to program states

Our numerical algorithm enables a systematic investigation of how the pendulum periods affect the time required to program the system into a desired state. As an example, Figure S10 reports numerical results for a system of three pendula initially set in state 000. We plot the time associated with the longest transition to reach the seven accessible states from 000, Δtmax⁡\Delta t_{\max}, as a function of the pendulum periods for Δtw=0.1\Delta t_{\mathrm{w}}=0.1 s. To generate this plot, we ran the algorithm described above 25200 times with different combinations of pendulum periods, where Tmin⁡∈[0.1,1]T_{\min} \in[0.1,1] and Tmid∈[0.1,1]T_{\mathrm{mid}} \in[0.1,1]. The results reveal that the pendulum periods have a strong influence on Δtmax⁡\Delta t_{\max}. The blue marker in the plot corresponds to the pendula considered in Figure 2a of the main text (with Tmin⁡=0.59T_{\min}=0.59 s, Tmid=0.61T_{\mathrm{mid}}=0.61 s, Tmax⁡=0.64T_{\max}=0.64 s), whereas the red marker indicates the optimal set of pendula that minimizes Δtmax⁡\Delta t_{\max} within the experimental constraints (T∈[0.5,0.8]T \in[0.5,0.8] s) that correspond to periods Tmin⁡=0.50T_{\min}=0.50 s, Tmid=0.62T_{\mathrm{mid}}=0.62 s, and Tmax⁡=0.79T_{\max}=0.79 s. Results for this optimal set of pendula are shown in Figure S11.

Image not extracted

Figure S10. Δtmax⁡\Delta t_{\max} for N=3N=3 pendula as a function of Tmin⁡T_{\min} and TmidT_{\mathrm{mid}}. Numerically predicted evolution of Δtmax⁡\Delta t_{\max} as a function of Tmin⁡T_{\min} and TmidT_{\mathrm{mid}} for Δtw=0.1\Delta t_w=0.1 s. The blue marker in the plot corresponds to the pendula considered in Figure 2a of the main text. The red marker indicates the optimal set of pendula that minimizes Δtmax⁡\Delta t_{\max} within the experimental constraints (see also Figure S11). The black marker indicates the global minimum (see also Figure S12).

Image not extracted

Figure S11. Optimal set of 3 pendula experimentally accessible. a) Schematics of the pendula. b) Top: Temporal evolution of s(t)s(t) for three pendula with Tmin⁡=0.50T_{\min}=0.50 s, Tmid=0.62T_{\mathrm{mid}}=0.62 s and Tmax⁡=0.79T_{\max}=0.79 s. The light gray windows indicate the minimal time window Δtw=0.1\Delta t_w=0.1 s in which we can observe each configuration. Bottom: Experimental temporal evolution of the angular positions θ(t)\theta(t) of the three pendula.

Interestingly, if the experimental constraints (T∈[0.5,0.8]T \in[0.5,0.8] s) are relaxed, the maximum interval can be further reduced to Δtmax⁡=23Δtw=0.8\Delta t_{\max}=2^3\Delta t_{\mathrm{w}}=0.8 s (black marker). This value represents a global minimum: for a given Δtw\Delta t_{\mathrm{w}}, it is impossible to reach all seven accessible states starting from state 000 in less time. A simple strategy to always ensure access to all states within

Δtmax⁡=2NΔtw\Delta t_{\max} = 2^{N}\Delta t_{\mathrm{w}} is to set the largest period as Tmax⁡=2⋅2NΔtwT_{\max} = 2 \cdot2^{N}\Delta t_{\mathrm{w}}, and then successively divide by two to obtain the natural periods of the remaining pendula until all NN values are fixed. Figure S12 illustrates this for the case N=3N = 3, with Δtw=0.1 s\Delta t_{\mathrm{w}} = 0.1\,\mathrm{s}, giving Δtmax⁡=23×0.1=0.8 s\Delta t_{\max} = 2^{3} \times0.1 = 0.8\,\mathrm{s}. The three natural periods are then set as

Tmax⁡=16Δtw=1.6 s,Tmid=Tmax⁡2=8Δtw=0.8 s,Tmin⁡=Tmid2=4Δtw=0.4 s.T_{\max} = 16\Delta t_{\mathrm{w}} = 1.6\,\mathrm{s}, \qquad T_{\mathrm{mid}} = \frac{T_{\max}}{2} = 8\Delta t_{\mathrm{w}} = 0.8\,\mathrm{s}, \qquad T_{\min} = \frac{T_{\mathrm{mid}}}{2} = 4\Delta t_{\mathrm{w}} = 0.4\,\mathrm{s}.

As shown in Figure S12, for such a configuration of three pendula, the gray windows align perfectly one after another.

Supplementary Videos

Movie S1. By precisely timing the actuation, a pendulum with period T=0.72 sT = 0.72\,\mathrm{s} can be deterministically set to state 0 or 1.

Movie S2. Three pendula with periods Tmin⁡=0.59 sT_{\min} = 0.59\,\mathrm{s}, Tmid=0.61 sT_{\mathrm{mid}} = 0.61\,\mathrm{s}, and Tmax⁡=0.64 sT_{\max} = 0.64\,\mathrm{s} are programmed to reach all seven accessible states, starting from state 000. The time required to reach these seven states can be significantly reduced by instead choosing Tmin⁡=0.50 sT_{\min} = 0.50\,\mathrm{s}, Tmid=0.62 sT_{\mathrm{mid}} = 0.62\,\mathrm{s}, and Tmax⁡=0.79 sT_{\max} = 0.79\,\mathrm{s}. In both cases, we used Δtw=0.1 s\Delta t_{\mathrm{w}} = 0.1\,\mathrm{s} to determine the actuation times.

Movie S3. A set of 5 pendula with periods T=0.50T = 0.50, 0.540.54, 0.610.61, 0.670.67, and 0.76 s0.76\,\mathrm{s} is used to play "Oh When the Saints" with Δtw=0.02 s\Delta t_{\mathrm{w}} = 0.02\,\mathrm{s}.

Movie S4. A set of 5 pendula with periods T=0.50T = 0.50, 0.540.54, 0.610.61, 0.670.67, and 0.76 s0.76\,\mathrm{s} is used to play "Jingle Bells" with Δtw=0.02 s\Delta t_{\mathrm{w}} = 0.02\,\mathrm{s}.

Movie S5. A set of 5 pendula with periods T=0.50T = 0.50, 0.530.53, 0.590.59, 0.650.65, and 0.78 s0.78\,\mathrm{s} is used to play "Smoke on the Water" with Δtw=0.02 s\Delta t_{\mathrm{w}} = 0.02\,\mathrm{s}.

References

  1. [12]Hiromi Yasuda, Philip R Buskohl, Andrew Gillman, Todd D Murphey, Susan Stepney, Richard A Vaia, and Jordan R Raney. Mechanical computing. Nature, 598(7879):39–48, 2021.DOI
  2. [13]Benjamin Treml, Andrew Gillman, Philip Buskohl, and Richard Vaia. Origami mechanologic. Proceedings of the National Academy of Sciences, 115(27):6916–6921, 2018. .DOI
  3. [14]Tian Chen, Matthias Pauly, and Pedro M. Reis. A reprogrammable mechanical metamaterial with stable memory. Nature, 589(7842):386–390, 2021. .DOI
  4. [22]I Mahboob and H Yamaguchi. Bit storage and bit flip operations in an electromechanical oscillator. Nature nanotechnology, 3(5):275–279, 2008.DOI
  5. [23]Z. P. Bažant and Luigi Cedolin. Stability of Structures: Elastic, Inelastic, Fracture and Damage Theories. World Scientific, Singapore, 2010. ISBN 9789814317043.
  6. [24]Bert Van Raemdonck, Edoardo Milana, Michael De Volder, Dominiek Reynaerts, and Benjamin Gorissen. Nonlinear inflatable actuators for distributed control in soft robots. Advanced Materials, 35(35):2301487, 2023.DOI
  7. [25]Robert D Blevins. Formulas for dynamics, acoustics and vibration. John Wiley & Sons, 2015.
  8. [26]Gayathri Pillai and Sheng-Shian Li. Piezoelectric mems resonators: A review. IEEE Sensors Journal, 21(1):12589–12605, 2020.
  9. [27]M. C. Cross and P. C. Hohenberg. Pattern formation outside of equilibrium. Rev. Mod. Phys., 65:851–1112, Jul 1993. . URL https://link.aps.org/doi/10.1103/RevModPhys.65.851.DOI
  10. [28]I.R. Epstein and J.A. Pojman. An Introduction to Nonlinear Chemical Dynamics: Oscillations, Waves, Patterns, and Chaos. Topics in Physical Chemistry. Oxford University Press, 1998. ISBN 9780198025665. URL https://books.google.it/books?id=ci4MNrwSIo4C.
  11. [29]Steven H. Strogatz. Chemistry Applications to Physics, Biology, and Engineering. Nonlinear Dynamics and Chaos. Addison-Wesley, Reading, MA, 1994.

Paper details

vlnc:W_229jfvjm
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents