You can use a Seeed Studio XIAO SAMD21 as a function generator to make a 3 Hz sine wave with this code: XIAO_sine.ino similar to the default value of this simulator.
This simulator created by Steven Sahyun, University of Wisconsin - Whitewater, Physics Department using MATLAB to graph, converted with ChatGPT and then additional editing and coding. 4/11/2025