The nonlinear characteristic of activation function is a critical aspect that affects the performance of artificial neural networks (ANNs). Despite its importance, the impact of neuronal nonlinearity variations on the dynamics of ANNs has not been thoroughly studied in previous research. This paper aims to fill this gap by exploring the influence of nonlinearity changes in activation function due to memristive electromagnetic induction on the dynamical characteristics of ANNs. We first propose a memristor model with sinusoidal conductance function. Then, the effects on the biological neuron under the electromagnetic induction are simulated by replacing the gradient of hyperbolic tangent activation function with the conductance of the proposed memristor. Furthermore, a Hopfield neural network (HNN) is constructed by taking the nonlinearity changes of activation function into consideration and its dynamical behaviors are analyzed through Lyapunov exponent spectra, bifurcation diagram, biparameter-based dynamic maps and phase portraits. The numerical simulation results show complex dynamical behaviors such as single-scroll chaotic spiral attractor, double-scroll chaotic attractors and initial-value-dependent offset boosted attractors, demonstrating that nonlinearity changes of activation function induced by the electromagnetic induction have a significant impact on the dynamics of HNN. To further verify our findings, we implement the proposed HNN in hardware and find that the results are in line with our numerical simulations. Finally, we apply the chaotic HNN in the mobile robot path planning task, which achieves higher coverage rate than the random number-based random walk method.