D13 Final capstone · Practice
Every topic, mixed
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
Topics: all 14
Check
A node draws 20 mA for 20 ms every 600 s and 20 µA otherwise. What's its average current?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
A 1000 mAh battery supplies an average of 5 µA. How many days does it last, by the budget?
Check
A 14 dBm, 868 MHz link with 2.15 dBi antennas and 1 dB of cable loss spans 1 km of free space. What's its margin against a −120 dBm receiver?
Check
A measurement chain has three independent error sources of 1%, 0.2% and 1.5%.
(a)
What is the worst-case total?
(b)
What is the root-sum-square total?
Check
A capstone task is estimated at 10 days. The plan adds 20% contingency, as this course recommends for work never done before. How many days are scheduled?
Check
Average current: 5 mA for 5 ms every 3600 s, 50 µA asleep?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
Battery days: 40 mAh at 1 µA?
Check
A 1 W panel sees weather factor 0.2, with a half-sine of sun from 6:00 to 18:00. How much energy does it deliver in a day, before charging losses?
Write units the way you normally would: 1.5 Wh, 1500 mWh and 0.0015 kWh are the same answer.
Check
A node draws 50 mW on average, and charging is 90% efficient. What panel breaks even on days with weather factor 0.3?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A node draws 10 mW and must run 3 days with no sun, using at most 0.8 of the battery's capacity. What capacity does it need?
Write units the way you normally would: 1.5 Wh, 1500 mWh and 0.0015 kWh are the same answer.
Check
A solar panel of 50 cm² with 15% efficiency gets 5 peak-sun-hours a day (1 kW/m² equivalents).
(a)
How much energy does it harvest per day?
Write units the way you normally would: 1.5 Wh, 1500 mWh and 0.0015 kWh are the same answer.
(b)
What average power is that over 24 hours?
Check
A battery of 1000 mAh feeds a node averaging 0.1 mA with no sun at all. How many days does it last?
Check
Daily harvest: 0.1 W at k = 0.05?
Write units the way you normally would: 1.5 Wh, 1500 mWh and 0.0015 kWh are the same answer.
Check
Battery for 1 dark days at 2 mW, depth 0.9?
Write units the way you normally would: 1.5 Wh, 1500 mWh and 0.0015 kWh are the same answer.
Check
This node reads the TMP102 every 100 ms but waits busily in between. Make it read from a 100 ms timer interrupt and deep-sleep in between, printing the same hundredths of a degree (−5.25 °C here).
C on the course's RISC-V board (10 MHz, no floating point). #include "board.h" for the registers; print(x) shows a number. Tab indents; press Esc and then Tab to move on.
Check
The TMP102 counts in sixteenths of a degree. What signed 12-bit value does it report at −5.25 °C?
Check
A TMP102 register read takes 45 I²C clocks. How long is that at 400 kHz?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A node is awake 0.5% of the time at 2.05 mA and sleeps the rest at 0.052 mA. What's its average current?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
Firmware wakes every 600 s for 5 ms at 5 mA and sleeps at 5 µA otherwise.
(a)
What fraction of the time is it awake, in percent?
(b)
What is the average current?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
A node wakes for 10 ms at 3 mA and sleeps at 3 µA. At what wake interval do the awake and sleep charge per cycle become equal (so the sleep current makes up half the budget)?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
TMP102 value at −0.5 °C?
Check
Average: awake 0.01% at 2.05 mA, 0.002 mA asleep?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
A receiver has a 3 dB noise figure and needs 10 dB of SNR at 1200 bit/s. What's its sensitivity?
Check
How long is a frame with 20 payload bytes and 80 bits of framing on the air at 1200 bit/s?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A node divides its bit rate by 4. By what factor does its range over flat ground grow?
Check
A radio draws 40 mA for 20 ms every 3600 s. How much does it add to the node's average current?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
A link sends 10 dBm at 433 MHz over 5 km between 0 dBi antennas; the receiver's sensitivity is −110 dBm.
(a)
What is the free-space path loss, in dB?
(b)
What is the link margin, in dB?
Check
A free-space link closes at 1 km with 12 dB of spare margin. How far could it reach with zero margin?
Write units the way you normally would: 1.5 km and 1500 m are the same answer.
Check
Sensitivity at 100 bit/s, NF 2 dB?
Check
Radio's average: 5 mA for 2 ms every 86400 s?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
A signal 25 kHz from the tuned frequency survives into a decimated stream at 9.6 kHz. Where does it alias to, in absolute frequency from 0?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
About how many taps does a Hamming-windowed sinc filter need for a 1000 Hz transition at 96000 samples per second?
Check
A 240 kHz stream is filtered and decimated by 4. What's the new sample rate?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A software radio samples complex I/Q at 2.4 MS/s, tuned to 100.9 MHz.
(a)
At what baseband frequency does a station at 100.3 MHz appear? (Negative if below the tuning.)
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
(b)
How much bandwidth do the complex samples cover in total?
Check
A software radio decimates 2048 kS/s down to 48 kS/s for one channel. What decimation factor is that?
Check
Alias of 13 kHz at 8 kHz?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
Taps for a 100 Hz transition at 8000 Hz?
Check
An FM signal deviates 5000 Hz with audio up to 1000 Hz. What bandwidth does Carson's rule give?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
Above threshold, how much SNR does FM with modulation index 2 gain over plain baseband audio of the same power?
Check
FM pre-emphasis uses a 50 µs time constant. Where's its corner?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
An FM signal has a peak deviation of 30 kHz and is modulated by a 1 kHz tone.
(a)
What is its modulation index?
(b)
What bandwidth does Carson's rule give?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
For tone modulation with index 2, an FM receiver above threshold improves the SNR over baseband by . How many dB is that?
Check
Carson: 1000 Hz deviation, 100 Hz audio?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
FM advantage over baseband at β = 7?
Check
What SNR does an ideal 10-bit ADC give for a full-scale sine across its whole band?
Check
A receiver samples at 240 kHz and keeps a 4.8 kHz-wide channel. How much does filtering lower the ADC's noise in the channel?
Check
In the level plan above, the LNA has 20 dB of gain and the ADC clips at 0 dBm. At what antenna level does clipping begin?
Check
An AFSK packet at 1200 baud (Bell 202: 1200 and 2200 Hz tones) is sampled at 24 kHz and has 100 bits.
(a)
How many samples cover each bit?
(b)
How long does the packet last?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
How many cycles of a 2100 Hz tone fit in one 1200-baud bit?
Check
Ideal ADC SNR, 18 bits?
Check
Processing gain: 48 kHz rate, 3 kHz channel?
Check
A 24 V bridge switches a 2 mH winding at 40 kHz and duty 0.25. What's the peak-to-peak current ripple?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
Check
A 24 V bridge drives a motor at duty 0.75. The motor's back-EMF is 6 V and its winding resistance 2 Ω. What's the average current?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
Check
A 24 V bridge drives a 0.1 mH winding. What's the lowest switching frequency that keeps the worst-case ripple within 2 A peak to peak?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
An H-bridge switches 24 V at 40 kHz with duty 0.2 into a motor winding of 4 mH.
(a)
What is the peak-to-peak ripple current?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
(b)
What is the largest ripple at any duty?
Check
An H-bridge carries 5 A through two MOSFETs in series, each with 10 mΩ on-resistance. What conduction loss does that cause?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
An H-bridge leg has 200 ns of dead time at each of its two transitions per period, at 10 kHz. During dead time the output follows the load current's diode instead of the command. Up to what percentage of the period is the duty in error?
Check
Ripple: 5 V, D = 0.1, 10 mH, 100 kHz?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
Check
Minimum frequency: 6 V, 0.02 mH, 5 A ripple?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A motor with 1 Ω of resistance, friction 10⁻⁵ N·m·s/rad and K = 0.02 V·s/rad runs unloaded from 24 V. What's its steady speed?
Check
A motor with resistance 1 Ω and K = 0.02 V·s/rad takes on a load of 0.1 N·m. Ignoring friction, how much does its speed drop?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
Ignoring friction, what's the mechanical time constant of a motor with inertia 2 × 10⁻⁵ kg·m², resistance 0.5 Ω and K = 0.1?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A DC motor has = 0.5 Ω, = 0.5 mH and = 0.05 V·s/rad (or N·m/A), on 24 V.
(a)
What is its electrical time constant?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
What is its stall torque?
Check
A motor with rotor and load inertia 5 × 10⁻⁶ kg·m², resistance 0.5 Ω and constant 0.05 N·m/A has what mechanical time constant, ?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Speed drop: R = 0.2 Ω, K = 0.01, load 0.5 N·m?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
: J = 0.5 × 10⁻⁵, R = 0.3 Ω, K = 0.2?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A current loop for a 1 mH winding should have a 500 Hz bandwidth. What proportional gain cancels the winding's pole?
Write units the way you normally would: 1.5 V/A, 1500 mV/A and 0.0015 kV/A are the same answer.
Check
A drive limited to 8 A spins a rotor of 10 × 10⁻⁵ kg·m² with K = 0.02 N·m/A. Ignoring friction and load, what's the shortest time to reach 250 rad/s from rest?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A proportional-only speed loop with gain 0.5 A per rad/s carries a load of 0.1 N·m on a motor with K = 0.02. What steady speed error does it leave?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
A current loop around a motor winding ( = 1 mH, = 0.5 Ω) uses a PI controller whose zero cancels the winding's pole, for a 2000 Hz crossover.
(a)
What proportional gain (V/A) does it need?
Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.
(b)
What integral gain (V/(A·s)) puts the zero on the pole?
Check
A cascaded drive's current loop crosses over at 1000 Hz. The speed loop is set 5 times slower so the loops don't interact. What is the speed loop's crossover?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
Current-loop : 0.05 mH, 100 Hz?
Write units the way you normally would: 1.5 V/A, 1500 mV/A and 0.0015 kV/A are the same answer.
Check
Time to 1000 rad/s at 1 A, K = 0.01, J = 100 × 10⁻⁵?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
The word DEADBEEF is stored at address A in little-endian memory. What byte is at A + 0?
Check
A 12-bit immediate field holds 800. What value does the instruction use?
Check
A single-cycle core at 10 MHz runs a program of 2339 instructions. How long does it take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A multicycle RISC-V core takes 4 cycles for ALU instructions, 5 for loads and 3 for branches and stores. A program is 50% ALU, 20% loads and the rest branches and stores, and runs at 100 MHz.
(a)
What is the average CPI?
(b)
How many million instructions per second is that?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A program runs 1000 instructions at CPI 1.2 on a 50 MHz core. How long does it take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Byte 0 of CAFEF00D, little-endian?
Check
Sign-extend the 12-bit field 400?
Check
A store goes to the address 40000008, whose low 12 bits are under 0x800. What upper value does the lui that builds it load?
Check
A device occupies a block of bytes, aligned to its size. How many of the 32 address bits must the decoder compare to select it?
Check
A program's timer reads show 1670 cycles of a 10 MHz clock. How long did the code take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A peripheral's registers start at 40000000, one 32-bit register every 4 bytes. What is the address of register 1?
Check
To set bit 5 of a control register with a read-modify-write, what mask do you OR in?
Check
lui value for 4000000C?
Check
Decoder bits for a -byte block (k = 6)?
Check
A program executes 2339 instructions at a CPI of 1.2 on a 1000 MHz clock. How long does it take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A trace has 1000 instructions, 19 load-use stalls and 343 taken branches and jumps, which cost 2 cycles each. What's its CPI?
Check
A program takes 3000 cycles unoptimized and 1000 optimized. What's the speedup?
Check
A five-stage pipeline stalls 1 cycle(s) on each load-use hazard, which follow 20% of instructions, and loses 2 cycles on each mispredicted branch: branches are 20% of instructions and 30% of them mispredict.
(a)
What is its CPI?
(b)
Against a multicycle version averaging 4.2 cycles per instruction at the same clock, what's the speedup?
Check
An optimized build runs a benchmark in 2 ms against 10 ms for the unoptimized one. What is the speedup?
Check
Time: 500 instructions, CPI 0.5, 3000 MHz?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
CPI: 100 instructions, 5 stalls, 3000 taken branches and jumps?
Check
An RC corner uses a resistor of ±1% and a capacitor of ±5%. In the worst case, how many percent above nominal can it be?
Check
Two independent errors of 2% and 3% combine. What's their root-sum-square?
Check
With no failures allowed, how many tests must pass to claim a failure rate below 0.01 with confidence 0.9?
Check
A thermometer must read within ±0.5 °C, and the reference you test it against is good to ±0.05 °C. What's the largest measured error you should accept?
Check
A capstone's 100 test runs pass with no failures. At 95% confidence, below what failure probability, in percent, does that put the design (the rule of three)?
Check
A parameter is Gaussian, and the specification limits sit ±1.5 standard deviations from its mean. What percentage of units pass?
Check
Worst-case high corner: ±0.1% and ±1%?
Check
Zero-failure tests for p < 0.1 at confidence 0.5?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to D13