answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
konstantin123 [22]
2 years ago
12

Put four red LED as a straight line and connect each of them to a corresponding analog output. Connect a potentiometer to a 5 Vo

lt power source. Divide the 0 to 5 Volt output of the potentiometer into four parts (0 ~ 1.25 Volt, 1.25 to 2.5 Volt, 2.5 to 3.75 volt, and 3.75 to 5 Volt). Write a program to change the brightness of a LED with respect to the voltage. For each 1.25 V interval, the brightness of one LED will be proportional to the output voltage of the connected potentiometer.
Engineering
1 answer:
N76 [4]2 years ago
3 0

Explanation:

There has been no information about related to which programming language is to be used, writing code algorithm.

Defining I/O's ;

Analogue output

A01, A02, A03,AO4

Analogue Input;

AI_1   // potentiometer input

// Based on controller used, assign channels to I/O's

// code

int voltage

Voltage = AI_1;

If (Voltage > 0 && Voltage < 1.25)

 {

   A01 = voltage

   A02 = 0;

   A03= 0

   AO4= 0

 }

If (Voltage > 1.25 && Voltage < 2.5)

 {

   A01 = 1.25

   A02 = (Voltage -1.25);

   A03= 0

   AO4= 0

 }

If (Voltage > 2.5 && Voltage < 3.75)

 {

   A01 = 1.25

   A02 = 1.25

   A03=  (Voltage - 2.5);

   AO4= 0

 }

else

 {

   A01 = 1.25

   A02 = 1.25

   A03=  1.25

   AO4= (Voltage - 3.75);

 }

return

You might be interested in
A curve in a speed track has a radius of 1000 ft and a rated speed of 120 mi/h. (From Sample Prob. 12.7 is the definition of rat
forsale [732]

Answer:

tan \theta = \frac{(176ft/s)^2}{1000 ft 32.2 ft/s^2}= 0.962

\theta = tan^{-1} (0.962) = 43.89

Explanation:

If the question is: Determine the banking angle θ

We have the forces involved on the figure attached.

For this case we know that the weight is given by:

W = mg

And for this case the centripetal acceleration would be given by:

a=\frac{v^2}{r}

If we analyze the sum of forces on x and y we have:

\sum F_x = m a_x

F + W sin \theta = ma cos theta

And if we solve for the force we got:

F = ma cos \theta - mg sin \theta = \frac{mv^2}{r} cos \theta - mg sin \theta

\sum F_y = m a_y

N - W cos \theta = ma sin \theta

If we solve for the normal force we got:

N =W cos \theta + ma sin \theta = \frac{mv^2}{r} sin \theta + mg cos \theta

In order to find the banking angle we use the fact that F =0

0 = \frac{mv^2}{r} cos \theta - mg sin \theta

tan \theta= \frac{v^2}{rg}

The velocity on this case is 120 mi/h if we convert this into ft/ s we got:

120 mi/h * \frac{5280 ft}{1mi} *\frac{1hr}{3600 s}= 176 ft/s

And then we have this:

tan \theta = \frac{(176ft/s)^2}{1000 ft 32.2 ft/s^2}= 0.962

\theta = tan^{-1} (0.962) = 43.89

5 0
2 years ago
A three-phase line has an impedance of 0.4 j2.7 ohms per phase. The line feeds two balanced three-phase loads that are connected
Viktor [21]

Answer:

a. The magnitude of the line source voltage is

Vs = 4160 V

b. Total real and reactive power loss in the line is

Ploss = 12 kW

Qloss = j81 kvar

Sloss = 12 + j81 kVA

c. Real power and reactive power supplied at the sending end of the line

Ss = 540.046 + j476.95 kVA

Ps = 540.046 kW

Qs = j476.95 kvar

Explanation:

a. The magnitude of the line voltage at the source end of the line.

The voltage at the source end of the line is given by

Vs = Vload + (Total current×Zline)

Complex power of first load:

S₁ = 560.1 < cos⁻¹(0.707)

S₁ = 560.1 < 45° kVA

Complex power of second load:

S₂ = P₂×1 (unity power factor)

S₂ = 132×1

S₂ = 132 kVA

S₂ = 132 < cos⁻¹(1)

S₂ = 132 < 0° kVA

Total Complex power of load is

S = S₁ + S₂

S = 560.1 < 45° + 132 < 0°

S = 660 < 36.87° kVA

Total current is

I = S*/(3×Vload)   ( * represents conjugate)

The phase voltage of load is

Vload = 3810.5/√3

Vload = 2200 V

I = 660 < -36.87°/(3×2200)

I = 100 < -36.87° A

The phase source voltage is

Vs = Vload + (Total current×Zline)

Vs = 2200 + (100 < -36.87°)×(0.4 + j2.7)

Vs = 2401.7 < 4.58° V

The magnitude of the line source voltage is

Vs = 2401.7×√3

Vs = 4160 V

b. Total real and reactive power loss in the line.

The 3-phase real power loss is given by

Ploss = 3×R×I²

Where R is the resistance of the line.

Ploss = 3×0.4×100²

Ploss = 12000 W

Ploss = 12 kW

The 3-phase reactive power loss is given by

Qloss = 3×X×I²

Where X is the reactance of the line.

Qloss = 3×j2.7×100²

Qloss = j81000 var

Qloss = j81 kvar

Sloss = Ploss + Qloss

Sloss = 12 + j81 kVA

c. Real power and reactive power supplied at the sending end of the line

The complex power at sending end of the line is

Ss = 3×Vs×I*

Ss = 3×(2401.7 < 4.58)×(100 < 36.87°)

Ss = 540.046 + j476.95 kVA

So the sending end real power is

Ps = 540.046 kW

So the sending end reactive power is

Qs = j476.95 kvar

7 0
2 years ago
The fatigue data for a brass alloy are given as follows: Stress Amplitude (MPa) Cycles to Failure 170 3.7 × 104 148 1.0 × 105 13
prohojiy [21]

Answer:

i) S–N plot is attached

ii) fatigue strength = 100 MPa

iii) fatigue life = 5.62 x 10^(5) cycles

Explanation:

i) I have attached the S–N plot (stress amplitude versus logarithm of cycles to failure)

ii) The question says we should find the fatigue strength at 4 × 10^(6) cycles.

So let's find the log of this and trace it on the graph attached.

Log(4 × 10^(6)) = 6.6

From the graph attached, at log of cycle value of 6.6, the fatigue strength is approximately 100 MPa

iii) The question says we should find the fatigue life for 120 MPa.

Thus, from the graph, at stress amplitude of 120 MPa, the log of cycles is approximately 5.75.

Thus,the fatigue life will be the inverse log of 5.75.

Thus, fatigue life = 10^(5.75)

Fatigue life = 5.62 x 10^(5)

8 0
2 years ago
A certain printer requires that all of the following conditions be satisfied before it will send a HIGH to la microprocessor ack
Elza [17]

Answer:

D) AND gate.

Explanation:

Given that:

A certain printer requires that all of the following conditions be satisfied before it will send a HIGH to la microprocessor acknowledging that it is ready to print

These conditions are:

1. The printer's electronic circuits must be energized.

2. Paper must be loaded and ready to advance.

3. The printer must be "on line" with the microprocessor.

Now; if these conditions are met  the logic gate produces a HIGH output indicating readiness to print.

The objective here is to determine the basic logic gate used in this circuit.

Now;

For NOR gate;

NOR gate gives HIGH only when all the inputs are low. but the question states it that "a HIGH is generated and applied to a 3-input logic gate". This already falsify NOR gate to be the right answer.

For NOT gate.

NOT gate operates with only one input and one output device but here; we are dealing with 3-input logic gate.

Similarly, OR gate gives output as a high if any one of the input signals is high but we need "a HIGH that is generated and applied to a 3-input logic gate".

Finally, AND gate output is HIGH only when all the input signal is HIGH and vice versa, i.e AND gate output is LOW only when all the input signal is LOW. So AND gate satisfies the given criteria that; all the three conditions must be true for the final signal to be HIGH.

3 0
2 years ago
Explain why the fundamental software engineering principles of process, dependability, requirements management, and reuse are re
Svet_ta [14]

Answer:

1. Costs and frequency of change.

2. The most important ‘non-functional’ requirements. Different systems have different priorities for non-functional requirements.

3. The software lifetime and delivery schedule.

Explanation:

The process of requirement gathering is required in both generic and customized software.

• A document to define the development process is required in all type of software application.

• Updating is required in each type of software. For doing so, new version of each type of software is released.

• Maintenance is an important part of software development. It is required in each type of application development.

• Software has some minimum requirements to execute. So, platform dependability is considered in all software development.

5 0
2 years ago
Read 2 more answers
Other questions:
  • Theorems of Pappus and Guldinus are used to find: a. The surface area and volume of a body of rotation b. The surface area and v
    14·1 answer
  • The basic barometer can be used to measure the height of a building. If the barometric readings at the top and the bottom of a b
    15·1 answer
  • You are an electrician on the job. The electrical blueprint shows that eight 500-W lamps are to be installed on the same circuit
    11·1 answer
  • Two resistors of values 7.0 and 15.0 Ω are connected in parallel. This combination in turn is hooked in series with a 3.8- Ω res
    7·1 answer
  • Three return steam lines in a chemical processing plant enter a collection tank operating at steady state at 1 bar. Steam enters
    6·1 answer
  • A piston-cylinder assembly contains 2 lb of air at a temperature of 540 °R and a pressure of 1 atm. The air compressed to a stat
    5·1 answer
  • John was a high school teacher earning $ 80,000 per year. He quit his job to start his own business in pizza catering. In order
    11·1 answer
  • A rectangular beam having b=300 mm and d=575 mm, spans 5.5 m face to face of simple supports. It is reinforced for flexure with
    14·1 answer
  • What is the component called that usually has a dual-voltage selector switch and has cables that connect to the motherboard and
    15·1 answer
  • A spring-loaded toy gun is used to shoot a ball of mass m = 1.50 kg straight up in the air. The spring has spring constant k = 6
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!