IoT Hardware reading assignment 3

This commit is contained in:
Aidan Sharpe 2024-09-25 23:41:32 -04:00
parent 454769f402
commit 87f9c55360
14 changed files with 41 additions and 13 deletions

View File

@ -1,24 +1,30 @@
Circuit: * C:\users\sharpe\Documents\Rowan\Rowan-Classes\6th-Semester-Spring-2024\SysCon\Final Project\Draft1.asc
Limiting rise time of source v2 to 1.6e-07
Limiting fall time of source v2 to 1.6e-07
Instance "m1": Length shorter than recommended for a level 1 MOSFET.
Instance "m1": Width narrower than recommended for a level 1 MOSFET.
Instance "m2": Length shorter than recommended for a level 1 MOSFET.
Instance "m2": Width narrower than recommended for a level 1 MOSFET.
Instance "m3": Length shorter than recommended for a level 1 MOSFET.
Instance "m3": Width narrower than recommended for a level 1 MOSFET.
Instance "m4": Length shorter than recommended for a level 1 MOSFET.
Instance "m4": Width narrower than recommended for a level 1 MOSFET.
Direct Newton iteration for .op point succeeded.
Date: Tue Apr 16 21:35:31 2024
Total elapsed time: 843.348 seconds.
Date: Tue Sep 17 10:53:42 2024
Total elapsed time: 0.138 seconds.
tnom = 27
temp = 27
method = modified trap
totiter = 114326713
traniter = 114326705
tranpoints = 33186575
accept = 24915937
rejected = 8270638
matrix size = 6
totiter = 2089
traniter = 2082
tranpoints = 1042
accept = 1042
rejected = 0
matrix size = 4
fillins = 0
solver = Normal
Avg thread counts: 1.0/1.0/1.0/1.0
Matrix Compiler1: 146 bytes object code size 0.3/0.2/[0.2]
Matrix Compiler2: 366 bytes object code size 0.2/0.3/[0.2]
Avg thread counts: 1.5/1.9/1.9/1.5
Matrix Compiler1: 136 bytes object code size 0.3/0.3/[0.2]
Matrix Compiler2: off [0.2]/0.3/0.2

View File

@ -0,0 +1,21 @@
import numpy as np
import sounddevice as sd
import matplotlib.pyplot as plt
def normalize_signal(signal):
min_amp = np.min(signal)
normalized_signal = signal - min_amp
max_amp = np.max(normalized_signal)
normalized_signal *= 2.0/max_amp
normalized_signal -= 1
return normalized_signal
snr = 10
f = 466.16
f_s = 16000
t = np.arange(0,0.01,1/f_s)
s = 0.5 * np.sin(2*np.pi*f*t)
sd.play(normalize_signal(s), samplerate=f_s, blocking=True)

View File

@ -0,0 +1 @@
,sharpe,dhcp-10-39-26-171,23.09.2024 21:46,file:///home/sharpe/.var/app/org.libreoffice.LibreOffice/config/libreoffice/4;