Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New instrument; Ammeter #98

Open
cweitat opened this issue Oct 25, 2018 · 7 comments
Open

New instrument; Ammeter #98

cweitat opened this issue Oct 25, 2018 · 7 comments

Comments

@cweitat
Copy link
Contributor

cweitat commented Oct 25, 2018

Actual Behaviour
Currently there is no instrument that is able to measure ampere.

Expected Behaviour
There should be an instrument to measure the ampere

Would you like to work on the issue?

Anyone.

@vaibhav2203
Copy link

Current sensor acs712 is available to measure AC current through a wire.
The value can be fetched using Analog pin of the board.

// Method to fetch the AC current value
float getCurrent()
{
float result;
int readValue; //value read from the sensor
int maxValue = 0; // store max value here
int minValue = 1024; // store min value here

uint32_t start_time = millis();
while((millis()-start_time) < 1000) //sample for 1 Sec
{
readValue = analogRead(sensorIn);
// see if you have a new maxValue
if (readValue > maxValue)
{
maxValue = readValue;
}
if (readValue < minValue)
{
minValue = readValue;
}
}
result = ((maxValue - minValue) * 5.0)/1024.0;
VRMS = (result/2.0) *0.707;
AmpsRMS = (VRMS * 1000)/mVperAmp;
if(count == 0){
initial = AmpsRMS;
count = 1;
}
float curr = AmpsRMS - initial;
return curr;
}

@fossasia fossasia deleted a comment from ho-dor Mar 21, 2019
@fossasia fossasia deleted a comment from Juhi-Purswani Mar 21, 2019
@fossasia fossasia deleted a comment from ho-dor Mar 21, 2019
@fossasia fossasia deleted a comment from cweitat Mar 21, 2019
@fossasia fossasia deleted a comment from ho-dor Mar 21, 2019
@fossasia fossasia deleted a comment from harsh-2711 Mar 21, 2019
@fossasia fossasia deleted a comment from ajit2704 Mar 21, 2019
@CloudyPadmal
Copy link
Contributor

We can add a section named mA to existing multimeter to implement this feature without creating a new instrument. @neel1998 @ho-dor

@neel1998
Copy link
Member

@CloudyPadmal is there any way we can implement this functionality without some external sensor like acs712. I am not very sure if we can get Current information from PSLab directly that's why asking you. Thanks

@CloudyPadmal
Copy link
Contributor

Yes right. There's no direct way to measure.

@neel1998
Copy link
Member

So should I get an acs712 sensor or you suggest some other one?

@CloudyPadmal
Copy link
Contributor

We'll leave it for now. Probably a hardware solution will be the best. I'm moving this to pslab-hardware repo.

@CloudyPadmal CloudyPadmal transferred this issue from fossasia/pslab-android Jul 29, 2019
@CloudyPadmal
Copy link
Contributor

ACS723LLCTR-10AU-T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants