Question: Exercise 3 Write a C code corresponding to the circuit below to convert three single ended analog signals of the three sensors ( S 1

Exercise 3
Write a C code corresponding to the circuit below to convert three single ended analog signals of the three sensors (S1, S2, and S3) as follows:
a- The three signals are converted alternatively using software ADC trigger (i.e. S1, S2, S3, S1, S2, S3, S1, S2, S3, and so on.......)
b- Take the average of 10 samples of each signal and assign the values corresponding to \(\mathrm{S}1,\mathrm{~S}2\), and 53 to the variables value1, value2, and value 3 respectively
c- Switch ON the red, green, and bleu LED is the average value of val1, val2, and val3 respectively exceeds 2 Volts.
d- Assume a 16 bits conversion.
Exercise 3 Write a C code corresponding to the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!