Name four ways to improve the integration of variable wind and solar resources.
In: Electrical Engineering
Consider that you desire a digital transmission system, such that the quantization distortion of any audio source does not exceed ±2% of the peak-to-peak analog signal voltage. a. If the audio signal bandwidth and the allowable transmission bandwidth are each 4000Hz. And the sampling takes place at Nyquist rate, what value of bandwidth efficiency (bits/s/Hz) is required. b. Repeat part (a) except that the audio signal bandwidth is 20kHz (high fidelity), yet the available transmission bandwidth is still 4000Hz.
In: Electrical Engineering
The code below takes in values from LDR but only one LED is lit. The other 3 LEDs are always off. What can I do to correct this ?
#include "mbed.h"
AnalogIn ADC(A5);
BusOut myLEDs(D10, D11, D12, D13); //Using Bus out instead of DigitalOut for Group of signals in order to control multiple outputs
PwmOut Led1(D10);
PwmOut Led2(D11);
PwmOut Led3(D12);
PwmOut Led4(D13);
int main(void)
{
while(1)
{
float brightness;
//LEDs.period(1);
brightness= 1-ADC.read();
float I_val;
I_val =brightness*100;//Intensity value= I_val
printf("light Level =%3.1f%%\n", I_val);//maximum of 5 significant figures and maximum of 2 decimal places.
wait(1);
Led1.period(1.0f);//period to be 1 second
Led2.period(1.0f);
Led3.period(1.0f);
Led4.period(1.0f);
if(I_val<25)
{
Led1.write(0.0f); //duty cycle as 20% of 1 period (1 second)
Led2.write(0.0f);
Led3.write(0.0f);
Led4.write(0.0f);
break;
}
else if(I_val >=25 && I_val <50)
{
Led1.write(0.25f);
Led2.write(0.25f);
Led3.write(0.25f);
Led4.write(0.25f);
break;
}
else if(I_val >=50 && I_val <75)
{
Led1.write(0.50f);
Led2.write(0.50f);
Led3.write(0.50f);
Led4.write(0.50f);
break;
}
else if (I_val >=75 && I_val<100)
{
Led1.write(0.75f);
Led2.write(0.75f);
Led3.write(0.75f);
Led4.write(0.75f);
break;
}
else if (I_val == 100)
{
Led1.write(1);
Led2.write(1);
Led3.write(1);
Led4.write(1);
break;
}
else if (I_val<0 && I_val >100)
{
printf("ERROR!");
}
}
}
The task is to use mbed library with Nucleo 64 bits STM32f303RE ARM board and the four red leds as lighting devices. There are five required levels of lighting, 1, 2, 3, 4 and off. The lighting level is controlled by the lightness/darkness detected by the LDR sensor, for example when it is very light, all the leds will be off, and when it is very dark all the four leds will be on. All the 5 levels of lighting will be corresponded to the evenly distributed ‘ReadIn’ value from the LDR. PWM control is not required for this task.
That is,
[1.] when the darkness corresponding to 25% then one of the 4 led will be lit with 25% of duty cycle and
[2.] when darkness is equivalent to 50% then the 2 of 4 LEDs will be lit with 50% duty cycle and
[3.] when when darkness corresponds 75% then 3 of 4 LEDs will be lit with 75% duty cycle and
[4.] with complete darkness all the 4 LEDs with be lit with 100% duty cycle of brightness
In: Electrical Engineering
In assembly
1.What is the effect of the following instructions executing on a modern x86 64-bit system (describe what happens and the final contents of the registers involved)? Can you obtain the same end result using only two instructions, and no other registers?
PUSH RAX
PUSH RBX
PUSH RCX
XOR RAX,RAX
XOR RBX,RBX
XOR RCX,RCX
POP RAX
POP RAX
POP RBX
2. What is the purpose of a segment register in protected mode memory addressing?
3. For a 32-bit Pentium4 descriptor that contains a base address of 01000000H, a limit of 0FFFFH, and G=0, what starting and ending locations are addressed by it? (also see Segmentation and Pagination Diagrams in BlackBoard, Other Reference Materials).
4. If DS=0105H in protected mode, which descriptor entry, table, and RPL are selected? (also see Segmentation and Pagination Diagrams in BlackBoard, Other Reference Materials).
5. What is the purpose of the TLB located within the Pentium class microprocessor?
In: Electrical Engineering
A PIC C code for Interfacing Ultrasonic sensor using
PIC C 18F8722 microcontroller
In: Electrical Engineering
Create a 4-bit full adder design using VHDL in vivado 2017.2.
Project description: You need to create a vhd file for the four-bit full adder.
Note: Instead of using bit, please use std_logic; instead of using bit_vector, please use std_logic_vector.
One simulation source is required, i.e. testbench
Please don't write out on paper. Code written out in text or screen shots would be very much apprecitated.
In: Electrical Engineering
Table 1 Momentum Before and After A Collision |
|||||
Mass of Red Chart 250 kg or 0.25 |
|||||
Mass of Blue Chart 750 kg or 0.75 |
|||||
Cart |
Vo (m/s) |
Vr (m/s) |
Po(kg • m/s) |
Po(kg • m/s) |
?p(kg • m/s) |
Red |
0.48 |
-0.1875 |
0.12 |
-0.0468 |
|
Blue |
0 |
0.218 |
0 |
0.1638 |
|
p(sys)o = .12 |
p(sys)f =.117 |
?psys = |
Compute the ?p(kg • m/s) for the red chart and the blue chart and
the ?psys.
In: Electrical Engineering
Using the programing language of Verilog I attempted to make a counter to count from 0 to 9 then loop back to 0 using the internal clock of the FPGA cyclone IV from altera. the code is posted at the bottom
I get the following errors
Error (10663): Verilog HDL Port Connection error at Encryption.v(9): output or inout port "clk" must be connected to a structural net expression
Error (10285): Verilog HDL Module Instantiation error at Encryption.v(9): instance "" specifies 3 actual port connections but module "clockgen" only expects 2
Error (12153): Can't elaborate top-level user hierarchy
Can someone help me debug this code so it can count up to 9
module Encryption(SW, CLOCK_50, OUT, HEX0);
input[1:0]SW;
input CLOCK_50;
output reg[6:0] HEX0;
output [3:0]OUT;
wire S1, S2, S3;
clockgen(CLOCK_50, 25000000,clk);
Tflipflop(SW[0], clk, SW[1], OUT[0]);
and(S1, clk, SW[0], OUT[0]);
Tflipflop(S1, clk, SW[1], OUT[1]);
and(S2, S1, OUT[1]);
Tflipflop(S2, clk, SW[1], OUT[2]);
and (S3, S2, OUT[2]);
Tflipflop(S3, clk, SW[1], OUT[3]);
always
begin
case(OUT)
4'b0000: HEX0 = 7'b1000000;
4'b0001: HEX0 = 7'b1111001;
4'b0010: HEX0 = 7'b0100100;
4'b0011: HEX0 = 7'b0110000;
4'b0100: HEX0 = 7'b0011001;
4'b0101: HEX0 = 7'b0010010;
4'b0110: HEX0 = 7'b0000010;
4'b0111: HEX0 = 7'b1111000;
4'b1000: HEX0 = 7'b0100000;
4'b1001: HEX0 = 7'b0010000;
4'b1010: HEX0 = 7'b0001000;
4'b1011: HEX0 = 7'b0000011;
4'b1100: HEX0 = 7'b1000110;
4'b1101: HEX0 = 7'b0100001;
4'b1110: HEX0 = 7'b0000110;
4'b1111: HEX0 = 7'b1001110;
endcase
end
endmodule
module Tflipflop(En, Clk, Clear, Q);
output Q;
input En, Clk, Clear;
reg Q;
always @(posedge Clk)
if (Clear == 0)
begin
Q = 1'b0;
end
else
begin
Q = En^Q;
end
endmodule
module clockgen(clk_in, clk_out);
input clk_in;
output[3:0] clk_out;// count up to 9 length must be 4 so [3:0]
reg[3:0] counter = 0; //temp variable
always@(posedge clk_in)
begin
if(counter< 9)
counter<=counter+1;//manupulate temp variable
else
counter = 0;
end
assign clk_out = counter;//assigning temp variable value(counter in always block) to the output variable
endmodule
In: Electrical Engineering
what is the voltage output specification of the charging system when a load is placed on the system?
In: Electrical Engineering
DTMF Home Automation System
This project is about controlling of home appliances using DTMF (Dual Tone Multi Frequency) technology. These appliances includes lights, fans, central heating, etc. A control unit will be required to encode the 4bit binary code from the DTMF decoder to link with 16 appliances or operations. However anyone can control your appliances if they know the cell number of the phone connected to the module. Furthermore, the number of appliances is limited to 16, which is the number of DTMF tones. These problems can be solved by using a controller at both transmit and receive end, and introduce a digital code. Now it will be possible to use more than one tone per command. For example, using 2 tones will give 16x16 =256 commands. A duplex operation can now be possible.
I need help Designing the DTMF Home Automation System using an Arduino.
I need the source code and circuit
Set up and demonstrate the operation of the DTMF controlled automation system, using a designed control unit.
In: Electrical Engineering
In: Electrical Engineering
what are the ingredients to design a security system using Microcontroller MSP 430? and what is the proper flowchart for this system?
In: Electrical Engineering
Sketch the waveform of the letter g when it is transmitted via the USART interface, using the format of 1 start bit, 8 data bits and 1 stop bit
In: Electrical Engineering
Sketch the waveform of the letter g when it is transmitted via the USART interface, using the format of 1 start bit, 8 data bits and 1 stop bit
In: Electrical Engineering