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

Comments

Projects
None yet
3 participants
@chetanpt

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

This comment has been minimized.

Contributor

tobozo commented Jun 6, 2018

They're the same

@chetanpt

This comment has been minimized.

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

This comment has been minimized.

Contributor

tobozo commented Jun 7, 2018

Could it be broken ?

image

@chetanpt

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

corq commented Jun 8, 2018

@chetanpt chetanpt closed this Jun 8, 2018

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