Question

In: Physics

Make a circuit with a Arduino that: • Has 2 digital pins, each pin connects to...


Make a circuit with a Arduino that:
• Has 2 digital pins, each pin connects to the base of a transistor, which then
acts as a switch to turn on/off the LED
• Connect a DC motor directly to the Arduino.
Include Pictures of your circuit please.

Solutions

Expert Solution

I made the below circuits on Fritzing.

The transistor I have used is an NPN transistor and resistors at base and collector terminal with the LED. I have labeled the diagram (transistor terminals, resistor, and LED legs) to avoid confusion.

The two digital pins that I have used are pin13 which is connected to the base of the NPN transistor via 1KΩ resistor. This resistor limits the current flow through the base terminal. The other digital pin is pin5, this pin is connected to the +ve terminal of led, which is then connected to the NPN transistor's collector terminal via 330Ω resistor (this resistor limits the amount of current flow through the LED).

So, to turn on the LED digital pin5 and pin13 they both need to be in HIGH state. Or you can simply keep pin5 in HIGH state and toggle pin13 to HIGH or LOW state to turn led on/off, this way the transistor acts as a switch.

The motor question does not ask for any detailed connection so the motor can simply be connected to 5V pin and GND pin of the arduino.

Note: Connecting a motor directly to your Arduino board in real life can damage the Arduino board. Because motors draw a lot of current. If you are planning on making something that involves motors I'll recommend using a motor driver with the Arduino board.


Related Solutions

Arduino Project - Part 1 • Connect 3 LEDs on 3 digital pins • Blink LEDs...
Arduino Project - Part 1 • Connect 3 LEDs on 3 digital pins • Blink LEDs at: – 1 at 1 Hz – 2 at 4 Hz – 3 at 5 Hz • Blink LEDs at: – 1 Hz – 3 Hz – 5 Hz 36 What to submit • 2 Arduino files – one for 1,4,5 Hz blinking – one for 1,3,5 Hz blinking
2. Design a digital circuit, using a decoder, only Nor gates, a 7-segment display, and D...
2. Design a digital circuit, using a decoder, only Nor gates, a 7-segment display, and D Flip Flops, that repeatedly outputs the sequences of characters ‘P’, ‘E’, ‘A’, ‘L’ if x=0 and ‘L’, ‘E’, ‘A’, ‘P’ if x=1 .
2. A sequential circuit has two pulse inputs, x1 and x2. The output of the circuit...
2. A sequential circuit has two pulse inputs, x1 and x2. The output of the circuit becomes 1 whenever the pulse sequence x1x1x2x2x2x1 is detected. The output then remains 1 for all subsequent x1 pulses until an x2 pulse occurs. (a) Derive a minimal state table describing the circuit operation. (Here you need to define the states and then perform state reduction). (b) Synthesize the circuit using SR latches in the master rank. (Here, you need to make state assignment,...
Make circuit diagrams for each of the objectives: -tTo observe the input voltage and excitation current...
Make circuit diagrams for each of the objectives: -tTo observe the input voltage and excitation current waveforms and the hysteresis loop resultingfrom the two waveformsof an unloaded transformer, transformer harmonic components, and tomeasure the power supplied to and power factor of the transformer. also -To observe the current waveform and the harmonics of a series lamp-diode circuit, and measure the power supplied to and power factor of the circuit.
design a circuit of an alarm system that has buzzer that rings for 2 minutes and...
design a circuit of an alarm system that has buzzer that rings for 2 minutes and LED'S that flicker for 2minutes.
A horizontal force of P = 56kN is applied to joint C. Each pin has a diameter of 25 mm and is subjected to double she...
A horizontal force of P = 56kN is applied to joint C. Each pin has a diameter of 25 mm and is subjected to double shear. Determine the average shear stress developed in pin Aof the truss. A horizontal force of P = 56kN is applied to joint C. Each pin has a diameter of 25 mm and is subjected to double shear. Determine the average shear stress developed in pin Aof the truss.
2)If an LRC series circuit has a resistance of 20 ohms and an inductor of L...
2)If an LRC series circuit has a resistance of 20 ohms and an inductor of L = 1 H, find the capacitance C so that the circuit is critically damped. Solve this case with the external force is E(t)=32e^(-32t) volts, q(0)=0, q'(0)=5
2. Blockbuster Entertainment manufactures digital video equipment. For each unit $500 of direct material is used...
2. Blockbuster Entertainment manufactures digital video equipment. For each unit $500 of direct material is used and there is $1,500 of direct manufacturing labour at $30 per hour. Manufacturing overhead is applied at $35 per direct manufacturing labour hour. Calculate the cost of each unit. a. $4,975 b. $4,025 c. $3,750 d. $4,150 e. $4,725 3. In an activity-cost pool a. a measure of the activity performed serves as the cost allocation base. b. the costs have a cause-and-effect relationship...
2. Blockbuster Entertainment manufactures digital video equipment. For each unit $500 of direct material is used...
2. Blockbuster Entertainment manufactures digital video equipment. For each unit $500 of direct material is used and there is $1,500 of direct manufacturing labour at $30 per hour. Manufacturing overhead is applied at $35 per direct manufacturing labour hour. Calculate the cost of each unit. a. $4,975 b. $4,025 c. $3,750 d. $4,150 e. $4,725 3. In an activity-cost pool a. a measure of the activity performed serves as the cost allocation base. b. the costs have a cause-and-effect relationship...
2. How has Digital Media influenced (or changed) the field of education? Include a historical (before...
2. How has Digital Media influenced (or changed) the field of education? Include a historical (before and after the digital media) and global perspective (include discussion of the US and at least two additional countries). Include whether the change has been positive, negative, or both. Support your discussion with reliable data. I need 500 words.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT