diff --git a/reference_designs/Figure_1.png b/reference_designs/Figure_1.png new file mode 100644 index 0000000..17ae595 Binary files /dev/null and b/reference_designs/Figure_1.png differ diff --git a/reference_designs/Figure_2.png b/reference_designs/Figure_2.png new file mode 100644 index 0000000..6d827c5 Binary files /dev/null and b/reference_designs/Figure_2.png differ diff --git a/reference_designs/salinity.ods b/reference_designs/salinity.ods new file mode 100644 index 0000000..f0126e6 Binary files /dev/null and b/reference_designs/salinity.ods differ diff --git a/reference_designs/salinity_r100k.csv b/reference_designs/salinity_r100k.csv new file mode 100644 index 0000000..43a0c54 --- /dev/null +++ b/reference_designs/salinity_r100k.csv @@ -0,0 +1,6 @@ +R [kΩ],Input Amplitude [Vpp],Input Frequency [Hz],Output Amplitude [Vpp],Output Phase Shift [degrees],CSV File +100.00,3.30,0.10,2.77,-7.16,scope_3 +,,1.00,3.06,-5.90,Scope_4 +,,5.00,3.26,-3.10,Scope_5 +,,10.00,3.34,-2.60,Scope_6 +,,100.00,3.50,0.00,Scope_7 diff --git a/reference_designs/salinity_r10k.csv b/reference_designs/salinity_r10k.csv new file mode 100644 index 0000000..8309ed4 --- /dev/null +++ b/reference_designs/salinity_r10k.csv @@ -0,0 +1,10 @@ +R [kΩ],Input Amplitude [Vpp],Input Frequency [Hz],Output Amplitude [Vpp],Output Phase Shift [degrees],CSV File +1.00,3.30,0.10,1.37,-35.79,scope_9 +,,1.00,1.81,-22.74,scope_10 +,,5.00,2.21,-19.74,scope_11 +,,10.00,2.30,-22.30,scope_12 +,,100.00,2.70,-7.20,scope_13 +,,250.00,2.77,-4.50,scope_14 +,,500.00,2.85,-3.00,scope_15 +,,1000.00,2.93,-2.20,scope_16 +,,5000.00,3.14,0.00,scope_17 diff --git a/reference_designs/salinity_r1k.csv b/reference_designs/salinity_r1k.csv new file mode 100644 index 0000000..8309ed4 --- /dev/null +++ b/reference_designs/salinity_r1k.csv @@ -0,0 +1,10 @@ +R [kΩ],Input Amplitude [Vpp],Input Frequency [Hz],Output Amplitude [Vpp],Output Phase Shift [degrees],CSV File +1.00,3.30,0.10,1.37,-35.79,scope_9 +,,1.00,1.81,-22.74,scope_10 +,,5.00,2.21,-19.74,scope_11 +,,10.00,2.30,-22.30,scope_12 +,,100.00,2.70,-7.20,scope_13 +,,250.00,2.77,-4.50,scope_14 +,,500.00,2.85,-3.00,scope_15 +,,1000.00,2.93,-2.20,scope_16 +,,5000.00,3.14,0.00,scope_17 diff --git a/reference_designs/salinity_salinitychange.csv b/reference_designs/salinity_salinitychange.csv new file mode 100644 index 0000000..8e6d290 --- /dev/null +++ b/reference_designs/salinity_salinitychange.csv @@ -0,0 +1,32 @@ +R [kΩ],Input Amplitude [Vpp],Input Frequency [Hz],Salinity,Output Amplitude [Vpp],Output Phase Shift [degrees],CSV File +1.00,3.30,10.00,Least Salty,4.10,-17.00,scope_18 +,,,Medium Salty,4.60,-16.50,scope_25 +,,,Most Salty,4.70,-16.20,scope_31 + +,,25.00,Least Salty,4.50,-13.76,scope_19 +,,,Medium Salty,4.40,-16.00,scope_26 +,,,Most Salty,4.80,-16.00,scope_32 + +,,50.00,Least Salty,4.70,-10.60,scope_20 +,,,Medium Salty,4.60,-13.00,scope_27 +,,,Most Salty,5.10,-12.05,scope_33 + +,,100.00,Least Salty,4.90,-9.60,scope_21 +,,,Medium Salty,4.90,-9.70,woops +,,,Most Salty,5.20,-10.33,scope_34 + +,,250.00,Least Salty,5.10,-5.70,scope_22 +,,,Medium Salty,5.10,-6.00,scope_28 +,,,Most Salty,5.50,-7.04,scope_34 + +,,500.00,Least Salty,5.20,-5.60,scope_23 +,,,Medium Salty,5.20,-5.50,scope_29 +,,,Most Salty,5.60,-4.90,scope_35 + +,,1000.00,Least Salty,5.50,-4.00,scope_24 +,,,Medium Salty,5.40,-4.00,scope_24 +,,,Most Salty,5.90,-5.00,scope_36 + +,,2500.00,Least Salty,5.80,-4.00,scope_25 +,,,Medium Salty,5.80,-4.30,scope_30 +,,,Most Salty,6.30,-2.00,scope_37 diff --git a/reference_designs/scripts/plot.py b/reference_designs/scripts/plot.py new file mode 100644 index 0000000..53f078c --- /dev/null +++ b/reference_designs/scripts/plot.py @@ -0,0 +1,5 @@ +import numpy as np +import pandas as pd +import matplotlib.pyplot as plt + +data = pd.read_csv('salinity_r1k.csv') diff --git a/reference_designs/scripts/plot_sal.py b/reference_designs/scripts/plot_sal.py new file mode 100644 index 0000000..b35717d --- /dev/null +++ b/reference_designs/scripts/plot_sal.py @@ -0,0 +1,19 @@ +import numpy as np +import pandas as pd + +df = pd.read_csv('salinity_salinitychange.csv') + +least_salty = df[df['Salinity'] == 'Least Salty'] +medium_salty = df[df['Salinity'] == 'Medium Salty'] +most_salty = df[df['Salinity'] == 'Most Salty'] + +medium_salty['Input Frequency [Hz]'] = least_salty['Input Frequency [Hz]'].to_numpy() +most_salty['Input Frequency [Hz]'] = least_salty['Input Frequency [Hz]'].to_numpy() + +fig, axis = plt.subplots() + +least_salty.plot.scatter(x = 'Input Frequency [Hz]', y = 'Output Amplitude [Vpp]', ax = axis, label = 'Least Salty', c = "red") +medium_salty.plot.scatter(x = 'Input Frequency [Hz]', y = 'Output Amplitude [Vpp]', ax = axis, label = 'Meduim Salty', c = "blue") +most_salty.plot.scatter(x = 'Input Frequency [Hz]', y = 'Output Amplitude [Vpp]', ax = axis, label = 'Most Salty', c = "green") + +plt.show() diff --git a/reference_designs/scripts/plot_sal_wallplug.py b/reference_designs/scripts/plot_sal_wallplug.py new file mode 100644 index 0000000..2256810 --- /dev/null +++ b/reference_designs/scripts/plot_sal_wallplug.py @@ -0,0 +1,6 @@ +import numpy as np +import pandas as pd + +data = pd.read_csv("fixed_1k_1k_5vpp.csv") + + diff --git a/reference_designs/scripts/plot_wallplug.py b/reference_designs/scripts/plot_wallplug.py new file mode 100644 index 0000000..cfad452 --- /dev/null +++ b/reference_designs/scripts/plot_wallplug.py @@ -0,0 +1,10 @@ +import numpy as np +import pandas as pd + +data = pd.csv_read('wallplug_trials.csv') + +data.plot(kind = 'scatter', x = 'Series Resistor [Ohms].1', y = 'Differences [Vpp]') + +data['Differences Abs [Vpp]'] = data['Differences [Vpp]'].abs() + +data.plot(kind = 'scatter', x = 'Series Resistor [Ohms].1', y = 'Differences Abs [Vpp]', logx = True) diff --git a/reference_designs/scripts/plot_wallplug_trials.py b/reference_designs/scripts/plot_wallplug_trials.py new file mode 100644 index 0000000..3a92a47 --- /dev/null +++ b/reference_designs/scripts/plot_wallplug_trials.py @@ -0,0 +1,21 @@ +import numpy as np +import pandas as pd +import matplotlib.pyplot as plt + +data = pd.read_csv('amplified.csv') + +plt.scatter(data['Salinity [ppt]'], data['Output Max Trial 1[Vpp]'], label = 'Trial 1', color = 'green') +plt.scatter(data['Salinity [ppt]'], data['Output Max Trial 2[Vpp]'], label = 'Trial 2', color = 'blue') +plt.scatter(data['Salinity [ppt]'], data['Output Max Trial 3[Vpp]'], label = 'Trial 3', color = 'red') +plt.scatter(data['Salinity [ppt]'], data['Output Max Trial 4[Vpp]'], label = 'Trial 4', color = 'pink') + +z = np.polyfit(data['Salinity [ppt]'], data['Output Max Trial 4[Vpp]'], 1) +p = np.poly1d(z) + +plt.legend(title='Trials') +plt.ylabel('Output Max [Vpp]', fontsize=14) +plt.xlabel('Salinity [ppt]', fontsize=14) + +plt.show() + +print(f"Trendline equation: y = {z[0]}x + {z[1]}") diff --git a/reference_designs/test.html b/reference_designs/test.html new file mode 100644 index 0000000..7122a08 --- /dev/null +++ b/reference_designs/test.html @@ -0,0 +1,66 @@ + + +
+ +