In the picture we have a variable signal (it can be any: sine wave, square wave,…
- User
In the picture we have a variable signal (it can be any: sine wave, square wave, triangle, etc...) included in the Arduino In a similar reader. The amplitude and frequency of the signal are variable, one thing we know is that the voltage The maximum value relative to ground may vary from 1 to 5 to volts, while the signal voltage never goes negative, as far as The frequency is from 0 to 100 hertz. Our task is to read this through the Arduino Divide the signal and the given input signal at any moment of time by 2 state: logic high and logic low. logically higher Consider the input signal if its instantaneous amplitude is greater than or equal to (Vmax + Vmin)/2, and logical low if it is less than the given image. ours The task is that when we have a logical high, then we have a voltage of 12 volts We have to let the voltage from the source into the lamp, and when we have a logical low The current should no longer flow through the lamp. That is, it is easy to understand that it should be in the lamp Let's run square wave 12 volt pulses depending on the input signal. also The picture shows the screen on which we should output the input signal frequency and maximum voltage to ground. Also worth noting is the fact that the signal may be in some period of time Let it be, for example, a sinusoid with a frequency of 5 Hz, and the voltage should vary from Vmin=2 Vmax=3 volts to ground and at this time, it should be displayed Image: 3 volts, 5 hertz. And after some time it becomes sinusoidal The signal may be replaced by a rectangular signal that oscillates Vmin=1- from Vmax=5 volts, and the frequency will be 20 hertz, and at this time the screen The values should be changed accordingly. corresponding to the input signal Data changes should be updated on the screen every 5 seconds. Create a Proteus circuit using the components in the picture in the simulator and write the code for Arduino.
- Assistant