Тёмный
No video :(

Using Allegro ACS758 Current Sensor with Arduino for 50A to 200A 

Robojax
Подписаться 108 тыс.
Просмотров 62 тыс.
50% 1

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

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 176   
@GEORGE-jf2vz
@GEORGE-jf2vz 3 года назад
Thank you for making these videos. I enjoy watching them.
@robojax
@robojax 3 года назад
Glad you like them!
@PirateWasHere
@PirateWasHere 21 день назад
thank you for awesome deep explanation
@Kageitenshi
@Kageitenshi 5 лет назад
Thanks, nice explanation. Needed something with greater current capacity for RC battery use than the 10/20/30A that were usually available. I was also surprised by the small connectors, but the pads underneath seem pretty big, so I think I'll remove the resist layer from the pads with a glass fiber brush to get a bigger contact area once I receive my order.
@robojax
@robojax 5 лет назад
You are welcome. I am glad you found it useful. Yes modify it and make good connection and it should work.
@pablofpv
@pablofpv Год назад
I'm a bit late to the party, but awesome video and great explanation thank you. I’m building an RC motor thrust stand, I have the Arduino outputting the PWM and thrust (weight in grams) working. I just need to combine a way of measuring up to 35V DC and 40A, I can use your video and code to combine with mine. This is the good side of RU-vid; people can share their skills and knowledge. 😊
@robojax
@robojax Год назад
Hi, here is voltage and current used energy meter ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oufDb7AtvNk.html or may be this one ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--pg7jbkaB6A.html by the way here the ACS sensors with library which makes the code very clean ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@pablofpv
@pablofpv Год назад
@@robojax Thanks so much! 😃
@antonistravlantonis7581
@antonistravlantonis7581 6 лет назад
Excellent work, nice video. professional level. Thank You !!!
@robojax
@robojax 6 лет назад
You are welcome.
@adamelkoumy5141
@adamelkoumy5141 6 лет назад
Thank you Jack for answering my request and making this video :)
@robojax
@robojax 6 лет назад
You are welcome.
@bobsort
@bobsort 4 года назад
9:04 Hall effect sensor doesn't have positive or negative, it can measure from both side, thus you can connect it in anyway you like between any of the wires, either high side or low side in any direction, depending on the way you have connected you will have reducing or increasing voltage on current in output
@robojax
@robojax 4 года назад
this module can't measure from both side. only the modules with letter B can do it. Of course hall effect can work both way. but the chip will not work if it is not made for bidirectional. see datasheet.
@DerKrawallkeks
@DerKrawallkeks 4 года назад
Hello, Thanks, I am having trouble with the ACS 100A bidirectional. I can measure 0,55V on the Current sensing pin, even tho it should be 2,5V with no amps flowing. I have bought several boards now, but also a sensor without a board, and they all have this issue. I am almost certain I'm doing something wrong, but I did it just like in your video. The output voltage is in some way proportional to the current, so the sensor kind of works, but it's not the right gain and offset. I connected 5V, GND and sensing pin. Is it neccessary to switch to DC maybe? Thanks!:)
@robojax
@robojax 4 года назад
You are welcome. This has two version The one with "B" in the name means bidirectional and that is for AC and DC. Check your chip. But you said the voltage is right, this is strange. I have explained it in the video. Try not to modify the code and do it again.
@DerKrawallkeks
@DerKrawallkeks 4 года назад
@@robojax thanks:) i know the B is bidirectional and can measure positive and negative current, around 2,5V voltage. But all my 3 chips I have give me 0,55V... I was sure I am doing something systematically wrong, but it's all correct...
@robojax
@robojax 4 года назад
Either you have selected wrong chip in the code, so check it again or code is modified. Please check the chip and see if it is totally different chip which is not defined in the code.
@christinemendis6710
@christinemendis6710 2 года назад
Thanks for your details. very useful program.
@robojax
@robojax 2 года назад
You might like the Winson current sensors ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-z-s8UvCWGxY.html
@MyBluetti
@MyBluetti 4 месяца назад
Thank you for this great video. One thing I don't see from your video or from the data-sheet is the min-max voltage range on the IP+ pin. I'm looking to connect this to solar, which in my case can go up to 150v DC, max 15amps. Do you know if the ACS758 will work with this?
@subhobroto
@subhobroto 4 года назад
@Robojax: is the second output a unit gain buffer? On a scope or meter do both output the same value? The ADC are usually high impedance and should not load the sensor. The risk of the buffer output is additional noise, drift and offset
@robojax
@robojax 4 года назад
which output are you referring to you? The chip has only one output which we read.
@subhobroto
@subhobroto 4 года назад
@@robojax output of the module. It seems it has one output direct from the 758 while the other one goes through the opamp? Thank you for the fast response
@robojax
@robojax 4 года назад
if you see here on page 2, there is only ONE output robojax.com/download/datasheet/robojax_ACS758_current_sensor_datasheet.pdf
@QuiddelQuaddel
@QuiddelQuaddel 4 года назад
Hi there. OU1 is connected to the VOUT of the Allegro via 120 Ohm series resistor -> unbuffered output that should also work for 3V3 to connect to high impedance ADC inputs. It also has a small bypass to GND. OU2 is connected to the output of op-amp 1. Op-amp 1 is in „voltage follower“ configuration -> it will buffer VOUT to allow for low impedance measurement inputs. That is actually useful in high noise environments, because having current on the measurement wire will make it less susceptible to EM noise. The op-amp can drive up to 50mA, but it requires a supply of >=4.4V. Op-amp 2 in the same package is unused. The op-amps are TI 2272 low noise types.
@QuiddelQuaddel
@QuiddelQuaddel 4 года назад
@Robojax If you stick to the 5V voltage reference of the Arduino, it is probably better not to hard code 5V into your code. If e.g. your 5V rail is 4.8V (e.g. due to USB supply) you already have an error of 4%. Since this device features a linearity of < 1.25%, it is more robust to just say 1023 equals +100A and 0 equals -100A (that probably neglects offsets, just as an example).
@faidularcs
@faidularcs 5 лет назад
Thank you very much For very helpful explaining
@robojax
@robojax 5 лет назад
You are welcome. فیض الاسلام شیخ سلام احمد
@N00General
@N00General 3 года назад
Thanks for the video bro
@zikermu
@zikermu 3 года назад
Thanks a lot for this interesting video .
@robojax
@robojax 3 года назад
My pleasure
@gazzmatazz4867
@gazzmatazz4867 4 года назад
very good tells me a lot i want to build a power supply for ham radio and like to put this on some of the pass transistors
@robojax
@robojax 4 года назад
Good to hear that.
@RicardoPenders
@RicardoPenders 3 года назад
Thank you so much for making this video and providing the code and library for this sensor, this will save me a ton of time and I didn't even know about all the extra calculations necessary to do accurate measurements so again thanks for adding all that to the code. I'll use your code as part of my program and do some testing and if I get it to work properly I'll give you a donation for saving me a ton of time which I appreciate very much. Ow, by the way I wanted to get the library and used the link you provide in the description and it says that the video is not available so I would appreciate a link to the library so I can download that too, thanks.
@robojax
@robojax 3 года назад
Hello, the code and library okay excep I removed the video. I will remove this video too . Here is the latest video used with library ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@faizurrahman2399
@faizurrahman2399 3 года назад
Thank you for your contribution. But I think 1st you should measure the lower ending Current like 0.2A, then we can understand how much precision it is.
@robojax
@robojax 3 года назад
you are welcome. First if you are measuring 0.2A, then use 1A or 5A version. this module is not suitable for less than 10A. I have explained the error and datasheet. By the way you are you watching very old video and have written library for Allegro current sensor. use the library in this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@gyroplane
@gyroplane 2 года назад
the asc758 200 amp bidirectional outputs 1mV per amp, so at 200amp I will get 2 volts out of the 5V supply voltage reference, in order not to loose precision it would be better to use a 2.5 volt exernal reference I think , it could better the accuracy ..iMHO
@BagasTand
@BagasTand 2 года назад
Nice video, I've try this sensor U-type for 50A for current sensing of DC Load that I used in a DC to AC inverter, so when the battery and inverter connected and sensed by this sensor, in serial monitor of Arduino the displayed current is unstable. I assumed the inverter used a MOSFET so the ON OFF current consumption make it unstable. Please help to solve about this case, to make stable reading on Serial monitor. thank you
@saltland23
@saltland23 4 года назад
Excellent video. Thanks
@robojax
@robojax 4 года назад
You are welcome. Please watch the latest video with library. Get the library here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@gtag174
@gtag174 5 лет назад
Excellent job. Can we use the same Variables and constants for Other sensors like the Tamura ?
@robojax
@robojax 5 лет назад
No. They are different. I would have to have one to write code for it.
@gtag174
@gtag174 5 лет назад
Robojax thanks for clarifying. I don’t see a sensitive data in the sensor L06P800S05
@lalithkumar2474
@lalithkumar2474 23 дня назад
Hi, Can i use this in a 70V battery line. I read the datasheet but wasnt able to get the input voltage range.
@robojax
@robojax 22 дня назад
Hi, there is virtually no limit. Works with all standard voltages.
@jeriellopez4927
@jeriellopez4927 3 года назад
Does this work with AC? Is there no maximum voltage for the load? I could not find it in the datasheet or in this entire video.
@robojax
@robojax 3 года назад
Hello, yes I missed to motion that. It works and I have shown the datasheet on this page robojax.com/learn/arduino/?vid=robojax-allegro_ACS758 where you get the code
@felangga
@felangga 5 лет назад
Can I measure AC Line with 220v using this module ?
@robojax
@robojax 5 лет назад
I forgot to mention this in video but if you visit the page where I have provided the code, you will see and I have mentioned it.
@alyssontiagovieirapaula5135
@alyssontiagovieirapaula5135 2 года назад
Excelente aula
@pkp8559
@pkp8559 Месяц назад
hi bro. 200 amps continues load capable? . leads looks so small.what is the resistance of the current leads.
@robojax
@robojax Месяц назад
Here Using Winson WCS Current Sensors with LCD and Arduino ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--pg7jbkaB6A.html
@engineerfrankkofiagbota
@engineerfrankkofiagbota Год назад
Good job.
@robojax
@robojax Год назад
and here is the version with library which is very clean and better ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@cinibar
@cinibar 4 года назад
Excellent video THANKS! I have a question, can the proper current type be used to measure the charge voltage from an alternator to the battery in a vehicle? I'm thinking 100 amp since my alternator is 100 amp. I understand the problem with the high power connections and can over come that easily. I've tried a shunt type system and that did not work, even though it did fine on the test bench. This method looks much better. Thanks again!
@robojax
@robojax 4 года назад
You are welcome. Yes it can be used. I have written library for this so it can be used easily. Good luck with your project. Here is the video and Library ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-X9Ka-om9IBM.html
@shehriyarbinak3776
@shehriyarbinak3776 4 года назад
how you are selecting quiescent output voltage for unidirectional and bidirectional it is mentioned in the datasheet?
@robojax
@robojax 4 года назад
Of course I have considered it. Perhaps you have not watched the video.
@renatofandino1000
@renatofandino1000 3 года назад
Excelent. Thank you!!
@robojax
@robojax 3 года назад
You are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you
@renatofandino1000
@renatofandino1000 3 года назад
@@robojax ok!👏🏻👏🏻✌🏻
@kirtikumari8959
@kirtikumari8959 8 месяцев назад
urgent help why this code shows random current values under load can you please help me out with this issue
@robojax
@robojax 8 месяцев назад
Pelase weatch this video which I used a library I 've written ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@vap_blackfox7652
@vap_blackfox7652 5 лет назад
Great Video. So what is your recommendation on the connection to the sensor if you want to measure up to 50A DC? I want to monitor the current of a solar system. Therefore I need a reliable connection of the sensor to the cable. Thanks for the help. LW
@robojax
@robojax 5 лет назад
In order to reduce the voltage drop and power loss on the wire, try to use thicker wire . Please see this page where it show AWG 10 is suitable for 55A www.powerstream.com/Wire_Size.htm. Solder it directly on the pin of the sensor.
@pravinraj3987
@pravinraj3987 5 лет назад
Hello, thank you for the wonderful video. It was very helpful. I have a question. what is the op-amp circuit diagram of the current sensor used ?
@robojax
@robojax 5 лет назад
you are welcome. I don't have the diagram. I believe you can draw it easily.
@bjornroesbeke
@bjornroesbeke 3 года назад
The opamp is used as a voltage follower. "OU1" is a direct connection to the analog output of the sensor, which is only able to source 3mA or sink 1mA. "OU2" is buffered through the opamp, a TLC2272C which is able to source or sink an absolute maximum of 50mA. Even though an arduino has a high input impedance, i'd recommend to use the "OU2" solder pad.
@asherhaque9981
@asherhaque9981 2 года назад
Can this be used as a non invasive sensor using a clamp?
@robojax
@robojax 2 года назад
it can only be used the way explained and wired.
@anonhollmuller4032
@anonhollmuller4032 Год назад
thx ++! best regards:)
@didit6952
@didit6952 3 года назад
how about using stm32 bluepill program?
@robojax
@robojax 3 года назад
not comment. I haven't written code for that. but if you listen to my explanation, I have left nothing without explaining. you should be able to write your code for stm32.
@davidgalaviz3301
@davidgalaviz3301 8 месяцев назад
Is it ok for me to change the value of 0.007 to 0.27?
@robojax
@robojax 8 месяцев назад
Here the eight better video Measuring 50A to 200A using Allegro ACS770 Current Sensor with Robojax Arduino Library ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@lLisanderl
@lLisanderl Год назад
Hello! Can I use VOUT with 3.3 v logic like stm32 ?
@robojax
@robojax Год назад
Hello, it seems you either missed the part that I explained or skipped the video. you can use it I belive with 3.3V. Here is the the better video where you can use the library to have clean and simple code ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html or just watch the current video. you can set you sensor voltage to 3.3V.
@bashiralao9172
@bashiralao9172 2 года назад
If vcc must be 5v, does that mean I can't use ESP32 for this project? Esp32 is 3.3v and 12bits adc
@robojax
@robojax 2 года назад
First eso32 has 5v. Even if it doesn’t, you can supply external 5v to the module so it operates.
@bashiralao9172
@bashiralao9172 2 года назад
@@robojax yes I know esp32 has 5v, but it ADC channels can only measure upto 3 3v.
@anukeshambatkar6255
@anukeshambatkar6255 4 года назад
Sir can you please make a tutorial on WCS 1500 current sensor
@robojax
@robojax 4 года назад
it is very expensive and I don't know why people like it. if someone sends it to me, I will make video.
@anukeshambatkar6255
@anukeshambatkar6255 4 года назад
@@robojax ok sir Sir we can measure large current without cutting wire using wcs1500
@logicielslri1729
@logicielslri1729 3 года назад
Thanks for this video! I have use it with accurate result on an arduino uno, but when i use the same code on my "arduino uno wifi rev 2" it always said "no current"... Is there something i have to change in the code to make it work on the "uno wifi rev 2"?
@robojax
@robojax 3 года назад
you are welcome. test the Analog pin shown in this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TbLdAQpE4jE.html after the issue is resolved, use this latest code and library I've written that makes the code more clean ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@zytriesthings4540
@zytriesthings4540 4 года назад
Hello. Does the ACS758 measure both the voltage and current? or does it only measure the current?
@robojax
@robojax 4 года назад
Hello, Only current. Because voltage is easy to measure, they have not included it.
@ilmkreis6993
@ilmkreis6993 5 лет назад
cheers for this video... i got a question? i want to measure amps from solar into my 24v batts with a ads1015- may you know this board can i power/run the arduino with a buck converter from the same batts where i measure too... or does it blow up, and i need an extra power supply... thanx so far, would be nice to hear from you cheers, from the green heart of germany
@robojax
@robojax 5 лет назад
Yes you can power Arduino from the same source if you bring the voltage to 15V or lower and connect to the power connector. cheers from Canada, Ahmad. Thanks
@ahmadhamizan2160
@ahmadhamizan2160 4 года назад
hi robojax, i have followed your instruction and set it up according to my sensor settings which is for 50B and i got negative current output after adding ESP8266, a Relay and a Microwave sensor to my project, i am not sure why, can you help me? it was a nice video tho
@robojax
@robojax 4 года назад
hi, it will not work with ESP8266. yo have to understand the Analog input of the module.
@mesquitamk1681
@mesquitamk1681 3 года назад
Cool very good your work would you have a video similar to my project? I have a screwdriver project where I use Arduino mini or attiny85. and SSD1306 mini LED display. with ACS758 50-or-200A module. of amperage. with an H Bridge and 4 touch button 2 to increase and decrease the amperage that the engine will be turned off. and 2 button to turn the motor to the left and to the right so the screwdriver will not blow the screw .... which I will tighten, be it small or large ... for arduino I only know how to write the code. thanks in advance
@robojax
@robojax 3 года назад
Hi, your projects involves so manything LED display, touch, motor, H-bridge, current sensing and pubhs buttons. I have them all but separate. you would have to put them together. Search it by clicking on Robojax under the this video and then click on "Videos" or go directly here ru-vid.comvideos
@bashiralao9172
@bashiralao9172 2 года назад
Hi robojax. I bought this sensor ACS758KCB-150B to sense AC current but the sensor only senses DC current and not AC. When a 200W AC load passes through the sensor, the Vout of the sensor still remains as 2.5V Pls help with suggestions
@robojax
@robojax 2 года назад
Hi, please try this updated code with library shown in this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3C33DpcSwIw.html
@bashiralao9172
@bashiralao9172 2 года назад
@@robojax it's not about the code or Library. It's the sensor itself, it the 2.5V offset never increases no matter how Amps of AC current passes through it, and I powered it with 5V
@robojax
@robojax 2 года назад
measure the supply voltage and see if it is 5V.
@bashiralao9172
@bashiralao9172 2 года назад
@@robojax yes it's 5.1V
@bashiralao9172
@bashiralao9172 2 года назад
@@robojax and the offset is 2.557V, but it remains that way no matter how much AC current passes through it
@sjukdom77
@sjukdom77 5 лет назад
Excellent video, could you tell me what the pin diameter is?
@robojax
@robojax 5 лет назад
I have provided the link to the datasheet. Here once again, it is in the last pages robojax.com/download/datasheet/robojax_ACS758_current_sensor_datasheet.pdf
@sjukdom77
@sjukdom77 5 лет назад
i mean the holes on pcb for fitting wires,datasheet is about Acs758 only.
@juanarysantana
@juanarysantana 3 года назад
Can you use this sensor with ESP32?
@robojax
@robojax 3 года назад
I have explained it fully as how it works so if you learn how it works you should be snake to do it. Check for latest video where I’ve written library to make is better
@abdallahhegazy2526
@abdallahhegazy2526 Год назад
Not working with me it shows 62A at no load
@robojax
@robojax Год назад
please watch updated video with library I have written ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@aisuruharuki
@aisuruharuki 7 месяцев назад
ACS758LCB-050B-PFF-T can measure such a mini current like a led bulb current.
@robojax
@robojax 7 месяцев назад
No. The led bulb current is much lower than the minimum amount. It is less than 0.5A.
@JohanDegraeveAanscharius
@JohanDegraeveAanscharius 5 лет назад
As you say: for 100 Amps, the mounting system should be VEEEERY different. It will melt in no time. Did you find an alternative
@robojax
@robojax 5 лет назад
The sensor is prefect. it is the item sold as module with PCB that has issue. You can solder your own wire directly to the sensor pins and it should be fine.
@mokshpatel6986
@mokshpatel6986 4 года назад
Sir can you add display in feature voltage , current and also mah value Thank you 🙂
@robojax
@robojax 4 года назад
I have video with display. search for the same sensor .
@mokshpatel6986
@mokshpatel6986 4 года назад
@@robojax yes I was see that but now can you add mah value , so find out how much used battery , thank you
@robojax
@robojax 4 года назад
I have written new library for ACS current sensor . Use the library from this latest video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-X9Ka-om9IBM.html and I will update library to calculate energy
@sjdtmv
@sjdtmv 5 лет назад
How do you add to the code and pins on the UNO if you want to run 4 of these ACS758 100a bi-directional current sensors
@robojax
@robojax 5 лет назад
Hi, Here is solution. I assume you have got 4 exact module. for 1 module you have the following variables: VIN voltage_raw voltage current Everywhere you see these variables, change them to for 1 module you have the following variables: VIN1 voltage_raw1 voltage 1 current 1 Then every where these are used, make copy of them in the code for example the line that was initialy #define VIN A0 make should look #define VIN1 A0 now duplicate them for 2nd sensor like #define VIN2 A1 and (for example) the original line float voltage_raw = (5.0 / 1023.0)* analogRead(VIN); which you changed to float voltage_raw1 = (5.0 / 1023.0)* analogRead(VIN1); now make copy of it as float voltage_raw2 = (5.0 / 1023.0)* analogRead(VIN2); and do this for all 4 sensors. good luck.
@sjdtmv
@sjdtmv 5 лет назад
@@robojax , I have changed everything so that 4 sensors are now listed and changed VIN, Voltage_raw, voltage, current, one each for each sensor, but have an error now of Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno" C:\Users\Owner\OEM\Software\Libraries\sketch_aug04a\sketch_aug04a.ino: In function 'void loop()': sketch_aug04a:82:11: error: expected ';' before numeric constant voltage 1 = voltage_raw1 - QOV + 0. 007 ;// 0.007 is a value to make voltage zero when there is no current ^ sketch_aug04a:83:13: error: expected ';' before numeric constant voltage 2 = voltage_raw2 - QOV + 0. 007 ;// 0.007 is a value to make voltage zero when there is no current ^ sketch_aug04a:84:15: error: expected ';' before numeric constant voltage 3 = voltage_raw3 - QOV + 0. 007 ;// 0.007 is a value to make voltage zero when there is no current ^ sketch_aug04a:85:17: error: expected ';' before numeric constant voltage 4 = voltage_raw4 - QOV + 0. 007 ;// 0.007 is a value to make voltage zero when there is no current ^ sketch_aug04a:86:17: error: expected initializer before numeric constant float current 1 = voltage 1 / FACTOR; ^ sketch_aug04a:87:17: error: expected initializer before numeric constant float current 2 = voltage 2 / FACTOR; ^ sketch_aug04a:88:17: error: expected initializer before numeric constant float current 3 = voltage 3 / FACTOR; ^ sketch_aug04a:89:17: error: expected initializer before numeric constant float current 4 = voltage 4 / FACTOR; ^ sketch_aug04a:94:18: error: 'current' was not declared in this scope Serial.print(current,2); // print the current with 2 decimal places ^ exit status 1 expected ';' before numeric constant This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@robojax
@robojax 5 лет назад
You can not have a variable as "voltage 2" In arduino variables have no space and can't start with numbers. I am sorry I did not type or RU-vid remove it. make them voltage2, current2 etc. no space. I have made the code for you in the same page at the bottom: bit.ly/rjx-757
@sjdtmv
@sjdtmv 5 лет назад
@@robojax, thanks for the code, i couldn't have done it myself as i am a bit unwise on coding , I have deleted "if(abs(voltage) > cutOff )" and also "else{ Serial.println("No Current"); } " Also added a missing " ; " at float voltage3// internal variable for voltage3 I have been able to calibrate each sensor by adding or subtracting at voltage1 = voltage_raw1 - QOV + 0.022 ;// 0.007 is a value to make voltage zero when there is no current voltage2 = voltage_raw2 - QOV + 0.012 ;// 0.007 is a value to make voltage zero when there is no current voltage3 = voltage_raw3 - QOV - 0.012 ;// 0.007 is a value to make voltage zero when there is no current voltage4 = voltage_raw4 - QOV + 0.007 ;// 0.007 is a value to make voltage zero when there is no current So far it is going well on bencktop test, i hope later to add a LCD readout and try and data log the data, but work is awaiting me this week. I have created a link of my changes if you want to look over it? www.dropbox.com/s/2wugj0ffdlfiw7o/4SensorsUtube.ino?dl=0
@spwim
@spwim 3 года назад
Thank you for finally pointing out the idiotic design regarding the hight currents and the way connections are made!
@robojax
@robojax 3 года назад
you are welcome. Yes many people have no idea of the high current concept. they think any wire can pass any current. By the way I have written library for Alegro sensors. you can see it here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sB6EULTix2k.html
@yd1cuj
@yd1cuj 5 лет назад
Have you measure 50A or above with ACS758-x50B or x100B? Do you get overheat problem on sensor IC on that current?
@robojax
@robojax 5 лет назад
Yes I have shown it with 60A. No problem at all. It doesn't have voltage drop to create heat. that is the beauty of this.
@yd1cuj
@yd1cuj 5 лет назад
@@robojax 60A? Did you use x100B or x50B? CMIIW, x50B's max rating is 50A...and for 60A you have to use x100B with max rating 100A...
@robojax
@robojax 5 лет назад
I have shown that in the video. I don't remember now the exact model. When I explained different models I mentioned which I one was used in this video.
@yd1cuj
@yd1cuj 5 лет назад
@@robojax i guess it was x100B, ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SiHfjzcqnU4.html
@harroldjamillarosahuaman3609
@harroldjamillarosahuaman3609 4 года назад
of what value is the resistor in minute 17.11 thanks
@robojax
@robojax 4 года назад
I watch the video at 17:11 and watched 3 times but could not read the resistor. it was not important that's why I did not mention it. We just needed to see the result form this sensor and compare it with meter.
@noorfaezah6318
@noorfaezah6318 5 лет назад
What type of load we need to use if the battery is 9v?
@robojax
@robojax 5 лет назад
Battery voltage does not matter. it is the current (Ampere) that limits the measurement. It can measure up to 200A depending on your sensor.
@kakopappa
@kakopappa 6 лет назад
Is it possible to measure AC currant ?
@robojax
@robojax 6 лет назад
This has been explained in the page you can download the code. Yes.
@monitorcamera1697
@monitorcamera1697 4 года назад
Can it measure small current in milli amp ac source?
@robojax
@robojax 4 года назад
If you see here in the datasheet on page 10 for example it show 2% error. robojax.com/download/datasheet/robojax_ACS758_current_sensor_datasheet.pdf and also it has drift of 200mA magnetic offset error. if you want to measure millampere use a sensor that measure to maximum of 5A. like ACS712 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3C33DpcSwIw.html
@guywhoknows
@guywhoknows 2 года назад
The PCB holes are to the side of pads, it's easy to sand off the paint and the pads are fairly decent. I think maybe these are higher voltage sensor for main power as they are rated to 1.2kv thus a thinner wire be typical with main power, but still too small for decent mounts. 50a PCB screw mounts would fit if that is your limit. Is the ou1 for 5v and ou2 for 3.3?
@justineaaron333
@justineaaron333 5 лет назад
How to control relay state using this?
@robojax
@robojax 5 лет назад
you would do something if (current >2.5){digitwlWrite (8, HIGH). 2.5 is the current you want to control pin 8 that is connected to relay. If your relay module is low triggered, then use LOW instead of HIGH. I assumed "current" is the variable holding the current value. Watch the video to see which variable has the value of current.
@onehandedclapping
@onehandedclapping 6 лет назад
Excuse me, can you please tell me where to buy this ACS758 100B Module? Thanks
@robojax
@robojax 6 лет назад
You can get it from Amazon or eBAy www.ebay.ca/sch/i.html?_&_nkw=ACS758
@onehandedclapping
@onehandedclapping 6 лет назад
@@robojax thanks man.
@anythingunderthesun9930
@anythingunderthesun9930 4 года назад
Which is more accurate ACS712 or ACS758?
@robojax
@robojax 4 года назад
ACS758 is very accurate.
@anythingunderthesun9930
@anythingunderthesun9930 4 года назад
@@robojax Thanks. Can ACS758 measure small current via Arduino Uno in the range of 1mA to 1000mA value both in AC and DC current? Can you please suggest a part number of ACS758 that can measure small current accurately? THANKS!
@subhobroto
@subhobroto 4 года назад
@@anythingunderthesun9930 the nojse is 10mv/A but the error is 2 precent of full scale, so 1A for the smallest 50A version. As a result you'll get more accurate readings as the current increases
@harroldjamillarosahuaman3609
@harroldjamillarosahuaman3609 4 года назад
how much is the resistance you put friend please
@robojax
@robojax 4 года назад
sorry which resistor? please say the time like 2:30 so I can I watch it. Thanks
@3dmixer552
@3dmixer552 5 лет назад
can this measure 12v car battery as well?
@robojax
@robojax 5 лет назад
Yes you can. But you have to use the 150A or 200A module. Also you should have very strong cable the same that is in car battery.
@3dmixer552
@3dmixer552 5 лет назад
This is exactly why I'm asking because those connectors on that IC seem too thin. Even the 200A one is very thin compared to a 200A wire. I'm a little bit sceptical. Thanks
@heemagauss8691
@heemagauss8691 Год назад
downloaded
@kaleurodrigues8535
@kaleurodrigues8535 6 лет назад
hello help please is Ac or DC input
@robojax
@robojax 6 лет назад
Thank you for pointing this important fact which I have not mentioned. It works with AC and DC and I have updated the page (where the code is) on Robojax.com to display that.
@omoivo6525
@omoivo6525 6 лет назад
I get no current! What is wrong? Model is same.
@robojax
@robojax 6 лет назад
first use the simple code. Make sure you supply the voltage. Print the voltage , not the current. You should get something. let me know so I help you.
@omoivo6525
@omoivo6525 6 лет назад
Robojax I got 0.005v
@jpcme2002
@jpcme2002 4 года назад
Hi for AC measuring the advance codes don´t work propely :( with the basic code I get values pretty close ) using the Output Voltage 1 because using the OV2 the readings are crazy even without any consuption. in the serie monitor I get always two readings... one positive and other negative what makes sense because I reading AC current, check readings : ibb.co/n8JjsWF
@robojax
@robojax 4 года назад
Hi, You can increase the delay time in loop so it read much slower. Or change the cufOFFLimit float cutOffLimit = 1.00;// so ignore the values you don't need. But the best option would be to get the average of reading of let's say 10 reading or 100 reading and average it. there are tones of loop code the average the reading available. You can can find it for Temperature and other parameters.
@jpcme2002
@jpcme2002 4 года назад
Robojax thanks, I will do it ;)
@robojax
@robojax 4 года назад
You are welcome.
@omoivo6525
@omoivo6525 6 лет назад
Robojax I got 0.005v
@robojax
@robojax 6 лет назад
what what current measurement you are getting 0.005? if at zero. Then it is about right. Check the main voltage to the VCC pin using a multimeter. snag.gy/AHhRpV.jpg
@MaazQaiser
@MaazQaiser 5 лет назад
Very nice video JazakAllah kaseeran. Please check your LinkdeIn profile. I send you one query there. Thanks
@robojax
@robojax 5 лет назад
Shukara,. I have replied.
@MaazQaiser
@MaazQaiser 5 лет назад
@@robojax I ask another question there please check there again. Thanks
@Jxxfdasilva
@Jxxfdasilva 5 лет назад
Can I use to measure 230VAC current?
@robojax
@robojax 5 лет назад
Yes, follow the link to page where I have provided datasheet and other resources. It can measure AC or DC current.
Далее
Measuring AC Current with Arduino
19:29
Просмотров 74 тыс.
Different Ways for Measuring Current With Arduino
13:32
Measure DC Voltage and Current with Arduino
37:29
Просмотров 199 тыс.