Тёмный
No video :(

54. STM32CubeIDE Voltage Sensor with STM32F103C8T6 

MicroPeta by Nizar Mohideen
Подписаться 7 тыс.
Просмотров 6 тыс.
50% 1

STM32 Blue Pill for beginners
Code and diagram are at www.micropeta....

Опубликовано:

 

24 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@guumballl
@guumballl 2 года назад
@Nizar Mohideen - MicroPeta thank you very much for your RU-vid series! straight to the point and bite size.
@anithasshenoy6662
@anithasshenoy6662 3 месяца назад
Hello sir, I have connected the ADC and made the setup as explained. The output is displayed on a LCD. It displays the value. However the strange thing is ADC converts and shows the value only when reset button is pressed. The continues mode though enabled doesn't work. For each of value, I need to press the rest button. What could be the issue?
@NizarMohideen
@NizarMohideen 3 месяца назад
In the while loop, start and stop adc as shown below. Thanks HAL_ADC_Start(&hadc1); HAL_ADC_PollForConversion(&hadc1,1000); readValue = HAL_ADC_GetValue(&hadc1); HAL_ADC_Stop(&hadc1);
@anithasshenoy6662
@anithasshenoy6662 3 месяца назад
@@NizarMohideen I did that , after I posted the msg. It is working. There is another issue. For an input of 1.06v the displayed value changes from 0.79 to 1.05. Thank you very much.
@anithasshenoy6662
@anithasshenoy6662 3 месяца назад
@@NizarMohideen I found that changing the clock frequency of the adc1 & 2 to /8 =1 produce a higher reading very much near to my dmm. now the adc value show 1233 (should actually about 1292) . With higher frequency the adc value drops. to below 900.
@DSEE-MeghaPadanad
@DSEE-MeghaPadanad 2 года назад
sir how to show this output voltage in 16x2 LCD
@NizarMohideen
@NizarMohideen 2 года назад
See video-no-57 in my channel for I2C LCD And then combine with following code to display floating number (Voltage with decimal point) /* USER CODE BEGIN Includes */ #include "stdio.h" /* USER CODE END Includes */ /* USER CODE BEGIN PV */ uint8_t VI,VD; char strCopy[15]; /* USER CODE END PV */ /* USER CODE BEGIN WHILE */ while (1) { HAL_ADC_PollForConversion(&hadc1,1000); readValue = HAL_ADC_GetValue(&hadc1); voltage =(float)readValue/4095*16.5; VI = voltage; // voltage integral VD = voltage*10-VI*10; // voltage decimal sprintf(strCopy,"%d.%d C ", VI, VD); HD44780_SetCursor(0,0); HD44780_PrintStr(strCopy) HAL_Delay(100); /* USER CODE END WHILE */
@DSEE-MeghaPadanad
@DSEE-MeghaPadanad 2 года назад
Thank u sir
@DSEE-MeghaPadanad
@DSEE-MeghaPadanad 2 года назад
@@NizarMohideen Instead of voltage sensor I have used voltage divider circuit for measuring the voltage with stm32f401re . to which pin we supposed to connect the 'S' point in stm32f401re
@NizarMohideen
@NizarMohideen 2 года назад
Any pwm capable pins can be used. Common pins are labled A0,A1,A2,A3,A4 AND A5. I have done a video with potentiometer with F446RE. It will be very similar to F401RE. See video-no-69 in my channel. Connect middle of voltage divider as like the potentiometer middle pin See video-no-61 in my channel for I2C LCD
@guumballl
@guumballl 2 года назад
integrated the above string code with the ili9341 code in your other tutorial too. works!
@buahpete7251
@buahpete7251 Год назад
Hi sir, do you have data sheet for the DC voltage sensor you used ?
@Hammad5113189
@Hammad5113189 2 года назад
Hi Sir, could you please explain how we can measure AC voltage. I am trying to use 3 channels to measure 3 phase voltages and I am still confused after seeing this video. Your help would be much appreciated! Thankyou!
@NizarMohideen
@NizarMohideen 2 года назад
You need to use step down transformer to measure AC voltage. A common one is ZMPT101B. If the AC voltage is in the form of pure sine wave, you can simply get the maximum zero offset ADC value and multiply by 0.707 for RMS.
@Hammad5113189
@Hammad5113189 2 года назад
@@NizarMohideen Yes sir, I understand the theory, but I am confused as how to use STM32CubeIDE and sensors in this. Please help
@Hammad5113189
@Hammad5113189 2 года назад
@@NizarMohideen Sir ?
@NizarMohideen
@NizarMohideen 2 года назад
You need ZMPT101B module or similar. I don’t have ZMPT101B with me at the moment to demonstrate. Please take all safety precautions whenever working with ac voltages.
@Hammad5113189
@Hammad5113189 2 года назад
@@NizarMohideen I see. Thankyou sir!
@fatiswealth7865
@fatiswealth7865 2 года назад
Hi, do you have a video for current sensing? :)
@NizarMohideen
@NizarMohideen 2 года назад
Video no 55 in my channel ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-g9d2Pb-8ojE.html
@fatiswealth7865
@fatiswealth7865 2 года назад
Hi, thank you for the video! Would like to ask, what are the procedures and steps needed if there is a need to measure more than one voltage source?
Далее
53. STM32F103C8T6 vs STM32F103C6T6
8:15
Просмотров 9 тыс.
OBLADAET - BARMAN
03:06
Просмотров 267 тыс.
11.1 How To Use ADC Conversion By Polling STM32F103C8T6
14:33
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 191 тыс.
NTC thermistor thermometer with STM32/Arduino
29:23
Просмотров 17 тыс.
This NEW AI Chip From Huawei DESTROYS NVIDIA
9:37
Просмотров 10 тыс.
Measure DC Voltage and Current with Arduino
37:29
Просмотров 199 тыс.
OBLADAET - BARMAN
03:06
Просмотров 267 тыс.