GSM noise on lm35 - stm32

i use lm35 temperature sensor and stm32 f030k6 for reading sensor output
when i call sim800 , lm35 output is noisy and incorrect value and When I open the antenna, the noise disappears.
How can I remove this noise?
thanks

Related

How do I calculate the maximum sptio-temporal resolution of an IMU sensor?

I am trying to calculate the trajectory of an IMU sensor by integrating the acceleration twice, but I keep getting distorted data. I would like to know what is maximal resolution I can actually produce from this sensor (MPU9250).
The sensor is operating at a sampling rate of 200Hz
The LSB is 0.6mm/s^2.
The noise covariance matrix of the sensor has the diagonal elements [19.7, 19.7, 52.2] mm/s^2
Assuming that I know the exact orientation of the sensor (using a camera/marker based system for the purpose of debugging), What is the actual highest spatiotemporal resolution I can get with this sensor?
integrated acceleration twice to get trajectory

Reading 4-20ma transmitter stm32 adc

I try to use 4-20 ma pressure transmitter
With stm32 internal adc
Problem reading is flacuating too much I have to take average for 128-256 reading to take stable reading
Is that normal solution or there is other way to filter data and transmitter signal ??
Many reasons can affect the reading stability. Basically grounding, PCB layout, input cables, noise on the uController supply pins, input RC filter, the ADC code...
I have a similar application using a current resistor of 162R from input connector to the same ground of the ADC input. Than a series resistor of 22k and a ceramic capacitor of 47nF to ground, placed close to the ADC pin.
With that I take 10 ADC measures and make an average. Signal is stable.
Please, share your code and circuit diagram...

DAC Output on Arduino MKR Zero in Simulink

I am trying to use the Arduino MKR Zero in Simulink using the Simulink Support Package for Arduino Hardware. So far I have been successful at get a led to blink using a pulse wave in Simulink and the Digital output of the Arduino. I have also been able to vary a potentiometer connected to the Analog input of the Arduino and see the voltage plotted on a scope.
Now I am trying to output a sine wave from the DAC and then view that sine wave back through the ADC. The image below shows my setup. I know that the DAC takes value between 0 and 1023 and converts it to a voltage with reference 3.3V for the Arduino MKR Zero. So I have set up the sine wave block with Amplitude 307 and bias of 307 to get a 2V pk to pk waveform with offset of 1V. I have also included the Byte pack to convert this value to a Unit16 value for the DAC.
Now for the output I have done a similar setup to what I had for the potentiometer experiment. In this section, K = 3.3/4095. However, when looking at the scopes for the input and output, they are completely different. The input scope shows a sine wave with a 2V pk to pk waveform with offset of 1V while the output doesn't make any sense.
I should point out, for the physical setup, I have simple connected the DAC pin to the A6 pin on the Arduino. Any advice on what I am doing wrong is welcome.
Simulink Setup:
This is an image of the waveforms on the scopes:

how to simulate Sent_Protocl_signal?

I wanted to simulate the Sent_Protocol with an STM32 μC emulate as if I had a sensor. and represent this with an oscilloscope . I have to simulate this on Matlab and then connect with STM32. so i thought the signal should be like a normal PWM Signal look like.
So I wanted to ask if it is possible to generate a different pulse width in the same signal as in the above picture ?

Frequency issues in simulink interface with arduino

I'm trying to generate 6 PWM signals by comparing sine and triangular waves on simulink.In the scope I'm getting the frequency of PWM signals as 50 HZ. But when I deploy the model onto arduino, the frequency of the PWM signal is getting reduced to around 15 HZ .How to fix this ?
whether you've downloaded arduino library for matlab simulink? PWM output later on arduino digital pins are connected to the scope matlab