55. STM32CubeIDE ACS712 current Sensor with STM32F103C8T6

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • STM32 Blue Pill for beginners
    Code and diagram are at www.micropeta....

ความคิดเห็น • 40

  • @madayaswanth1205
    @madayaswanth1205 17 ชั่วโมงที่ผ่านมา

    i am trying CAN not working,if u have CAN code with regiter level can u share me

    • @NizarMohideen
      @NizarMohideen  14 ชั่วโมงที่ผ่านมา

      I am sorry. I don't have

  • @ligneshenathi
    @ligneshenathi 2 ปีที่แล้ว +2

    Hi !!!
    What should be done in measuring AC current ?
    How to get the Vrms value ?
    How to get Maxi and Mini values of Vout ?

  • @WISmusicOfficial
    @WISmusicOfficial 3 หลายเดือนก่อน

    I think if you use sensor for measure, you should calibrate it.

    • @NizarMohideen
      @NizarMohideen  3 หลายเดือนก่อน +1

      You are right. I have calibrated only zero ampere point.
      We have to calibrated at several points until rated 30 ampere
      We need variable load to produce variable high currents. Even 20A/ 5V produce 100W and the load I had can not handle the heat for few seconds.
      So for many beginner students don’t have the facility to calibrate at home
      If they wanted so precise measurements then they should contact current calibrating people.
      Thanks

    • @madayaswanth1205
      @madayaswanth1205 3 หลายเดือนก่อน

      @@NizarMohideen how to calibrate

  • @muhammadwasifnazir9551
    @muhammadwasifnazir9551 2 ปีที่แล้ว +1

    sir can you please tell how to measure AC voltage using STM32

  • @madayaswanth1205
    @madayaswanth1205 3 หลายเดือนก่อน

    how to calibrate,any video link

    • @NizarMohideen
      @NizarMohideen  2 หลายเดือนก่อน

      I have calibrated only zero ampere point.
      We have to calibrated at several points until rated 30 ampere
      We need variable load to produce variable high currents. Even 20A/ 5V produce 100W and the load I had can not handle the heat for few seconds.
      So for many beginner students don’t have the facility to calibrate at home
      If they wanted so precise measurements then they should contact current calibrating people.
      Thanks

  • @hogo750
    @hogo750 5 หลายเดือนก่อน

    Hi, I would love to see alternating current measurement with this sensor in this video. 🎉

  • @hogo750
    @hogo750 5 หลายเดือนก่อน

    Hi, I would love to see alternating current measurement with this sensor in this video. 🎉

  • @bangsame121
    @bangsame121 2 ปีที่แล้ว

    can you make more videos about zmpt101b with stm32

  • @fernandocatalani8295
    @fernandocatalani8295 2 ปีที่แล้ว

    Why the current value are negative?

  • @farukben
    @farukben 2 ปีที่แล้ว

    Thank you for your content sir.

  • @abdulhai2201
    @abdulhai2201 3 ปีที่แล้ว

    This project would have been better if it had a display with it

    • @NizarMohideen
      @NizarMohideen  3 ปีที่แล้ว +1

      Hi Abdul Hai,
      Thanks. I left the display part for a later video where I can combine voltage and current measurement together to calculate power (in Watt). If you want to display only the current, you can use the steps I used in OLED with DHT11 (th-cam.com/video/rIqM63S9eUQ/w-d-xo.html). It is very similar to displaying Fahrenheit

    • @abdulhai2201
      @abdulhai2201 3 ปีที่แล้ว

      Voltage show in display

  • @sabiinsearch1
    @sabiinsearch1 3 ปีที่แล้ว

    Facing some problem with same set up .. (Used 1k + 1k resistors for voltage divider) . In live expression, the values are not updating continuously. I have to manually pause and resume. Can u plz suggest .... waiting for reply

    • @NizarMohideen
      @NizarMohideen  3 ปีที่แล้ว +1

      STM32CubeIDE Settings
      ADC1 - IN9 (tick)
      Parameter Settings --> ADC Settings --> Continuous Conversion Mode (Enabled)

    • @NizarMohideen
      @NizarMohideen  3 ปีที่แล้ว +1

      For some microcontrollers, you need to stop and start ADC in the loop.
      HAL_ADC_Start(&hadc1);
      HAL_ADC_PollForConversion(&hadc1,1000);
      readValue = HAL_ADC_GetValue(&hadc1);
      HAL_ADC_Stop(&hadc1);

    • @sabiinsearch1
      @sabiinsearch1 2 ปีที่แล้ว

      @@NizarMohideen Sir, checked these settings but same problem exist...

    • @NizarMohideen
      @NizarMohideen  2 ปีที่แล้ว

      Okay. We need to find out the reason.
      Is the live expression not lively? Create a simple counting program. Add one to a variable every second and monitor it in the live expression
      Is the ADC not converting continuously? Use an LCD or OLED to display the values and see whether it is updating.

    • @sabiinsearch1
      @sabiinsearch1 2 ปีที่แล้ว

      Sir checked as directed but variable can only be added / checked in expression not in Live Expression Window...if added it says feature is not available

  • @sabiinsearch1
    @sabiinsearch1 3 ปีที่แล้ว

    Very nice and explained in detail…kindly share for AC measurement also..Thanku

    • @NizarMohideen
      @NizarMohideen  3 ปีที่แล้ว +5

      Thanks. The ACS712 module can be used for both DC and AC current. You can use the same way for AC current. Same wiring. Same CubeIDE settings and same code. Just cut the wire and feed into the sensor. Please take safety precautions since AC voltages are lethal.
      The country which I am living currently has a law. Only the licensed Electricians are allowed to cut AC wires. I need to respect the law so I can not make a video and demonstrate. Thanks for understanding.

    • @sabiinsearch1
      @sabiinsearch1 3 ปีที่แล้ว

      @@NizarMohideen Thanku for the reply. Understand the limitations... Sir can u plz tell if voltage divider is to be used with stm32 ..?

    • @NizarMohideen
      @NizarMohideen  3 ปีที่แล้ว +1

      Yes. Sensor Out will be 0 - 5Volt. Same for AC 220V.
      Use 5k Ohm & 5k Ohm resisters to get 0-2.5Volt.
      It is exactly same setup as I used for DC current

    • @sabiinsearch1
      @sabiinsearch1 3 ปีที่แล้ว

      @@NizarMohideen Thanks for the reply..

  • @Hammad5113189
    @Hammad5113189 2 ปีที่แล้ว +1

    Thankyou for this video sir. I am trying to design 3 phase overrcurrent relay. Could you please tell me how can I take 4 current inputs and 3 voltage inputs in the stm32cubeide?

    • @NizarMohideen
      @NizarMohideen  2 ปีที่แล้ว +2

      Thanks. You need to use multi channel adc.
      I have done with 3 potentiometer input in my video-no-32
      Have a look at it.
      Similarly you can use seven channels

    • @Hammad5113189
      @Hammad5113189 2 ปีที่แล้ว +1

      @@NizarMohideen Thankyou for the quick reply
      , I'll check it out!

  • @fatiswealth7865
    @fatiswealth7865 2 ปีที่แล้ว

    Hi, thanks for recommending this video!
    Do you have a video on adjusting the PWM with a potentiometer? 😊

    • @NizarMohideen
      @NizarMohideen  2 ปีที่แล้ว +1

      In my channel
      Video no 15 - PWM
      Video no 16 - Potentiometer
      Video no 32 - Potentiometer with PWM (It is for multi also it can be used for single)

    • @NizarMohideen
      @NizarMohideen  2 ปีที่แล้ว +1

      th-cam.com/video/92_CWBWXPw0/w-d-xo.html
      th-cam.com/video/oNiz5md51G4/w-d-xo.html
      th-cam.com/video/03IxWEe1bQk/w-d-xo.html

    • @fatiswealth7865
      @fatiswealth7865 2 ปีที่แล้ว

      Hi, would like to ask, can this work without the voltage divider?

    • @fatiswealth7865
      @fatiswealth7865 2 ปีที่แล้ว

      For the current sensor

    • @NizarMohideen
      @NizarMohideen  2 ปีที่แล้ว

      Current sensor output voltage range is between 0-5 V
      STM32 ADC input voltage range is between 0-3.3 V
      These two do not match so we can use a voltage divider to make it compatible