1answer.
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]
3 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]3 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
What is the basic of Architecture?​
kobusy [5.1K]

I believe your question is "What are the basics of Architecture?"

Answer:

Architecture is all about<em> people, places and things.</em>

Explanation:

In order to learn about the answer, let's tackle them one-by-one.

First, architecture is the art or practice of designing or constructing building. The basics are pretty simple.

1. People- this refers to the <em>designers, builders and users.</em> This means architecture is all about those who make architecture and those who use it in order to make conscious decisions. It is all about building an environment for people, thus it focuses too on builders. These environments are catered to users. For example, designing a safe place for disabled people.

2. Places- Traveling is very important in order for you to learn the different kinds of architectures in every country. It is, thus, very significant to know<em> where one will build his plan.</em> It is said that <u>"the power of place"</u> can be everlasting.

3. Things- this refers to the <em>built environment</em>. An example of these are the skyscrapers. These are considered to be the "things" that architects design in order to truly scrape the sky. In architecture, one needs to learn what structures and style he wants for his house, church, school, building and the like.

7 0
4 years ago
Air flows from a large reservoir in which the pressure and temperature are 1 MPa and 30°C, respectively, through a convergent–di
SSSSS [86.1K]

Answer:

The solution is attached in the attachment.

3 0
3 years ago
Read 2 more answers
A 220-V electric heater has two heating coils that can be switched such that either coil can be used independently or the two ca
Nana76 [90]

Answer:

The resistances of both coils are 131.7 Ω and 29.64 Ω.

Explanation:

Since, there are two coils, they can be used independently or in series or parallel. The power is given as:

Power = P = VI

but, from Ohm's Law:

V = IR

I = V/R

therefore,

P = V²/R

R = V²/P

Hence, the resistance (R) and (P) are inversely proportional. Therefore, the maximum value of resistance will give minimum power, that is, 300 W. And the maximum resistance will be in series arrangement, as in series the total resistance gets higher than, any individual resistance.

Therefore,

Rmax = V²/Pmin = R1 + R2

R1 + R2 = (220 V)²/300 W

R1 + R2 = 161.333 Ω    ______ en (1)

Similarly, the minimum resistance will give maximum power. And the minimum resistance will occur in parallel combination. Because equivalent resistance of parallel combination is less than any individual resistance.

Therefore,

(R1 R2)/(R1 + R2) = (220 V)²/2000 W

using eqn (1), we get:

(R1 R2) / 161.333 Ω = 24.2 Ω

R1 R2 = 3904.266 Ω²

R1 = 3904.266 Ω²/R2  _____ eqn (2)

Using this value of R1 in eqn (1), we get:

3904.266/R2 +R2 = 161.333

(R2)² - 161.333 R2 +3904.266 = 0

Solving this quadratic eqn we get two values of R2 as:

R2 = 131.7 Ω     OR     R2 = 29.64 Ω

when ,we substitute these values in eqn (1) to find R1, we get get the same two values as R2, alternatively. This means that the two coils have these resistance, and the order does not matter.

<u>Therefore, the resistance of both coils are found to be 131.7 Ω and 29.64 Ω</u>

7 0
3 years ago
Write down the tracking error such that the adaptive cruise control objective is satisfied.
bija089 [108]

Answer:
The most common reason a cruise control stops working is due to a blown fuse or a defective brake pedal switch. It can also be caused by issues with the throttle control system or the ABS. In older cruise control systems it can be caused by a broken vacuum line.

5 0
2 years ago
A pressure gage and a manometer are connected to a compressed air tank to measure its pressure. If the reading on the pressure g
mixer [17]

Answer:

h=1.122652m

Explanation:

Assuming density of air = 1.2kg/m³

the differential pressure is given by:

h^{i} =h(\frac{density of manometer}{density of flowing air}-1)\\h^{i} =h(\frac{1000}{1.2}-1)\\ h^{i}=832.33h...(1)\\\\but\\ h^{i} =\frac{change in pressure}{air density*g} \\\\h^{i} =\frac{11*10^3}{1.2*9.81}\\\\h^{i}= 934.42...(2)\\\\equating, \\\\934.42=832.33h\\\\h=1.122652m

7 0
4 years ago
Other questions:
  • In case the Rectilinear distance is considered, find the optimal coordinates (X,Y) of new facility. Q2) Show and label the exist
    7·1 answer
  • Provide main reasons for the short shot during the injection molding.
    13·1 answer
  • Oil with a density of 850 kg/m3 and kinematic viscosity of 0.00062 m2/s is being discharged by an 8-mm-diameter, 42-m-long horiz
    9·1 answer
  • If the resistance reading on a DMM'S meter face is to 22.5 ohms in the range selector switch is set to R X 100 range, what is th
    5·1 answer
  • What is specific gravity? How is it related to density?
    5·1 answer
  • Water vapor at 6 MPa, 600 degrees C enters a turbine operating at steady state and expands to 10kPa. The mass flow rate is 2 kg/
    14·1 answer
  • a poorly tighten terminal is often the cause of a/an ? a) open circuit b) circuit breaker interrupt c)short circuit d) ground fa
    10·1 answer
  • Advantage of a sheave wheel in a shaft headgear<br>​
    10·1 answer
  • What happens if you leave your car on while pumping gas
    8·1 answer
  • The oxygen consumption of an activated sludge plant is 60 g O2/L.d for the degradation of
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!