Thank you! That does make a lot of sense actually, when I did the measurements earth's magnetic field was arond 38 microteslas and It could get up to 65, so maybe that has to do with it. Also, it is true that when tilting the phone when testing with earth's field it went up or down depending on...
I used my phone and phyphox since the magnetometer has a 0,01 μT accuracy. Distance may be a few milimeters off since I measured distance to the front of the phone and magnetometer is in the front camera piece, exact placement isnt released to the public. I dont think its an experimental issue...
To compensate earths magnetic field im just taking the difference of the intial intensity and final intensity. I do get 1.22 μT with this measurement, I'm not doing measurements along the z axis because I'm just stuyding the effect in 2D, so x and y. The solenoid is lying on its side and im...
Discrepancy is six times lower than the theoretical value so 600%. It's consistent though, so I guess if I can't find a solution I could call it a systematic error, but I can't seem to understand why.
import numpy as np
# Constants
mu_0 = 4 * np.pi * 1e-7 # Vacuum permeability (T m/A)
# Solenoid Parameters
R = 0.007 # Radius of the solenoid (meters)
L = 0.074 # Length of solenoid (meters)
N = 1709 # Number of turns
num_segments = 500 # Increased for better accuracy
I = 1.01 # Current in...