arduino project: muscular activity

Hey,
I just started learning how to use arduino and how to code in general, and i have this project using tinkercard, where i gotta simulate a muscular contraction on arduino, such contraction the computer will receive and will read its intensity.
In summary i have to send a message to my computer from arduino.
The signal has to have a frequency between 10 to 100Hz and an eletric potential between 1 to 4V.
I would like some tips on how i should code it, where should i start, what should i consider?

On the circuit on thinkercard im using the fuction generator to simulate the contraction.
Thanks!!

So you want an analog square/sine signal built by your arduino at a certain frequency.

Since there is a need for 1v and 4v, you can’t use digital output (0V and 5V or 3.3V). You need a real DAC.

What type of arduino do you plan using?

No, it's an ADC (analog to digital) requirement. What circuit are you using to amplify the microvolt level muscle signals to 1-4V?

aarg:
No, it's an ADC (analog to digital) requirement.

hum, OP said

i have to send a message to my computer from arduino.
The signal has to have a frequency between 10 to 100Hz and an eletric potential between 1 to 4V.

so it was my understanding that the arduino needed to generate the analog signal oscillating Between 1V and 4V. Hence the arduino needing to convert a value (from internal muscular simulation code) to a voltage, that’s the definition of a DAC, isn’t it?

The OP isn't good at explaining themselves. Or following the forum guidelines and posting real information, which would quickly eliminate any doubt.

To me it was kinda making sense

simulate a muscular contraction on arduino

arduino has some code to generate a signal mimicking a muscular contraction sensor

The signal has to have a frequency between 10 to 100Hz and an eletric potential between 1 to 4V.

now we know what the signal looks like. It’s analog and repeating itself.

the computer will receive and will read its intensity

the signal is sent to the computer (as if a muscular contraction sensor was attached to the computer)

=> So that’s making sense to me and hence the DAC.

What’s very unclear is how the computer reads the analog signal... that’s where à ADC or frequency detector is needed.

It's not clear at all, there is plenty of room for interpretation, and the OP should immediately post all the work that they have done, to bypass the guesswork barrier...

Yeah more context would help clear things up.

TinkerCAD? As far as I can tell, it can't do dynamic object creation or deletion. So much for second gear.

-jim lee