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

How to decide which analog port to use (male/female) #71

Closed
chetanpt opened this issue Jun 6, 2018 · 6 comments
Closed

How to decide which analog port to use (male/female) #71

chetanpt opened this issue Jun 6, 2018 · 6 comments

Comments

@chetanpt
Copy link

chetanpt commented Jun 6, 2018

Hi

I am using pin 35 to read fsr sensor data. FSR sensor is connected to female port.
I do not receive any data on female port whereas on the male port .

How to we decide which ports to use and how to change that.

I am using arduino ide.

Thanks

@tobozo
Copy link
Contributor

tobozo commented Jun 6, 2018

They're the same

@chetanpt
Copy link
Author

chetanpt commented Jun 7, 2018

@tobozo
Thanks for the information

In my case female ADC pin does not get data whereas I receive data on male ADC pins.

So my question is how do I resolve this, so that I can receive data on both pins without worrying ?

Thanks
-Chetan

@tobozo
Copy link
Contributor

tobozo commented Jun 7, 2018

Could it be broken ?

image

@chetanpt
Copy link
Author

chetanpt commented Jun 8, 2018

Hi

In my case every alternate day the M5 stack does not receive data. It always shows 0.

I use following code on platformio

#include <M5Stack.h>

int fsrpin = 35;
int wristforce;

void setup() {
// put your setup code here, to run once:

M5.begin();
pinMode(fsrpin, INPUT);

}

void loop() {
// put your main code here, to run repeatedly:
M5.Lcd.clearDisplay();
M5.Lcd.setTextColor(RED);
M5.Lcd.setTextSize(3);
M5.Lcd.setCursor(15, 15);

wristforce = analogRead(fsrpin);

Serial.println(wristforce);
M5.Lcd.print(wristforce);

}

M5.update();
delay(500);

}

@chetanpt
Copy link
Author

chetanpt commented Jun 8, 2018

Hi @tobozo

I found the root cause after troubleshooting and searching on google

I connect my FSR to 5V but the 5V pin is not predictable sometimes it give ~ 4.5v and sometimes it does not. I do not know the reason.

But the 3.3 v and +ve terminal of grove connector (~4.5v) are more reliable, I think.
I reffered following discussion on forum
http://forum.m5stack.com/topic/153/connecting-m5stack-to-an-mq-2-smoke-gas-sensor/2

Thanks for your help

@corq
Copy link

corq commented Jun 8, 2018 via email

@chetanpt chetanpt closed this as completed Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants