bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Some of the gpios not working

Wed May 03, 2017 9:17 am

Hello,
I am using aluminium touch pads as buttons through my gpios, is it possible that when i touch them electrostatic discharge occur and can it harm gpio..? when i was using 10 gpios, touching 1 even gets the other 2,3 gpios pressed. hows that possible? can gpio fluctuate like that? nd if it can be damaged in the way i mentioned, then how can i make cheap touch pads using gpios. I have used them in such a way..http://hackaday.com/2015/11/30/conjurin ... inum-foil/ but without using MPR121 as i was able to detect touches directly through gpio.. so can any one help out.
Thanks in advance
-Bansari

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Some of the gpios not working

Wed May 03, 2017 9:29 am

You need to show us how you connected them, saying you followed the link but did not use the MPR121 is not really any help as clearly you have not followed what they did.

if you just connected the foil pads directly to the GPIO pins then my guess would be that you just have floating inputs, which will respond to any near by influence.

post some good quality pictures using imgur.com or post a diagram showing use how they are connected.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Wed May 03, 2017 10:05 am

pcmanbob wrote:You need to show us how you connected them, saying you followed the link but did not use the MPR121 is not really any help as clearly you have not followed what they did.

if you just connected the foil pads directly to the GPIO pins then my guess would be that you just have floating inputs, which will respond to any near by influence.

post some good quality pictures using imgur.com or post a diagram showing use how they are connected.
well, i have just detached aluminium foils but it is as simple as connecting a wire directly to gpio and touching it. .

User avatar
joan
Posts: 14960
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Some of the gpios not working

Wed May 03, 2017 10:09 am

What have you done to prevent the GPIO floating?

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Wed May 03, 2017 10:12 am

joan wrote:What have you done to prevent the GPIO floating?
i haven't done anything.. i just tried and it worked so i didn't do anything further.. now i want to know if they will never be useful to me? and yeah yesterday the rpi fan was doing much noise, so tried to hold that but dont know what happened it gone off and today i used diff power and it worked.. do that matters too in my case?

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Some of the gpios not working

Wed May 03, 2017 10:30 am

http://www.instructables.com/id/How-To- ... h-Arduino/
so it is a little bit more complicated as just to connect a aluminium foil to a GPIO pin
and try to read its input state ( without pull-up or pull-down resistors configured? )
so how you figure the GPIO is not working? you wear different shoes from yesterday?

pls start to give very detailed information about code and hardware and connection,
or better start internet research for your project again.

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Wed May 03, 2017 10:44 am

i havent used pull up or pull down resistor but defined if there's no input then will have value 1 and whenever any touch detected then it will change to 0. and then again reset that values. do i need to attach aluminum foil to some resistor?

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Some of the gpios not working

Wed May 03, 2017 10:46 am

connecting inputs to your gpio requires more than just a single wire you need pull up or pull down resistors to prevent your input floating..
I suggest you have a look at this site https://github.com/raspberrypilearning/ ... up_down.md

so you have a fan connected to some gpio pin and now it does not work but you say the fan is ok if tested else were, is your pi even booting now ? if you tried to stop the fan while it was running and connected to your gpio you may have overload the gpio due to the stall current drawn by the fan.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Some of the gpios not working

Wed May 03, 2017 10:50 am

bansari18 wrote:i havent used pull up or pull down resistor but defined if there's no input then will have value 1 and whenever any touch detected then it will change to 0. and then again reset that values. do i need to attach aluminum foil to some resistor?
you cant use foil as a simple replacement for a switch on gpio , thats why in the link you posted they are using the MPR121 chip it does the detection using the foil touch pads and sends the information to the pi via I2c.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Wed May 03, 2017 10:53 am

pcmanbob wrote:connecting inputs to your gpio requires more than just a single wire you need pull up or pull down resistors to prevent your input floating..
I suggest you have a look at this site https://github.com/raspberrypilearning/ ... up_down.md

so you have a fan connected to some gpio pin and now it does not work but you say the fan is ok if tested else were, is your pi even booting now ? if you tried to stop the fan while it was running and connected to your gpio you may have overload the gpio due to the stall current drawn by the fan.
my pi was not working yesterday but it is working and fan,too. and yes while interfacing other components i have accidentally stopped fan sometimes, is it due to that or due to floating gpio? i will connect the pullup/down resistors as you mentioned but till that how can i get my gpios working?

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Wed May 03, 2017 10:54 am

pcmanbob wrote:
bansari18 wrote:i havent used pull up or pull down resistor but defined if there's no input then will have value 1 and whenever any touch detected then it will change to 0. and then again reset that values. do i need to attach aluminum foil to some resistor?
you cant use foil as a simple replacement for a switch on gpio , thats why in the link you posted they are using the MPR121 chip it does the detection using the foil touch pads and sends the information to the pi via I2c.
so i should connect it to ic, not directly to gpio?

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Wed May 03, 2017 11:08 am

pcmanbob wrote:connecting inputs to your gpio requires more than just a single wire you need pull up or pull down resistors to prevent your input floating..
I suggest you have a look at this site https://github.com/raspberrypilearning/ ... up_down.md

so you have a fan connected to some gpio pin and now it does not work but you say the fan is ok if tested else were, is your pi even booting now ? if you tried to stop the fan while it was running and connected to your gpio you may have overload the gpio due to the stall current drawn by the fan.
how can i use internal pullup/down resistor through nodejs

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Some of the gpios not working

Wed May 03, 2017 11:12 am

bansari18 wrote:
pcmanbob wrote:connecting inputs to your gpio requires more than just a single wire you need pull up or pull down resistors to prevent your input floating..
I suggest you have a look at this site https://github.com/raspberrypilearning/ ... up_down.md

so you have a fan connected to some gpio pin and now it does not work but you say the fan is ok if tested else were, is your pi even booting now ? if you tried to stop the fan while it was running and connected to your gpio you may have overload the gpio due to the stall current drawn by the fan.
my pi was not working yesterday but it is working and fan,too. and yes while interfacing other components i have accidentally stopped fan sometimes, is it due to that or due to floating gpio? i will connect the pullup/down resistors as you mentioned but till that how can i get my gpios working?
as I said you probably overloaded the gpio by stopping the fan and lucky for you the thermal fuse protection on the pi power input tripped which is why your pi stopped working, leaving it over night allowed the fuse to reset so now your pi works.
there may be nothing wrong with your gpio inputs it may be that the conditions that allowed it to work yesterday are not present today. try building one of the switch input circuits and test it with that. https://github.com/raspberrypilearning/ ... up_down.md
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Some of the gpios not working

Wed May 03, 2017 11:15 am

bansari18 wrote:
pcmanbob wrote:
bansari18 wrote:i havent used pull up or pull down resistor but defined if there's no input then will have value 1 and whenever any touch detected then it will change to 0. and then again reset that values. do i need to attach aluminum foil to some resistor?
you cant use foil as a simple replacement for a switch on gpio , thats why in the link you posted they are using the MPR121 chip it does the detection using the foil touch pads and sends the information to the pi via I2c.
so i should connect it to ic, not directly to gpio?
if you want to use a simple touch pad why not do it in the way shown on the web site you linked to, that after all is how they were doing it.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Thu May 04, 2017 6:01 am

hi..
its getting worse.. i am unable to connect touch ic through i2c as it shows all the addresses when i connect it, else shows no address. what should i do ? can the gpios be replaced? any ideas..
Thank you..

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Some of the gpios not working

Thu May 04, 2017 7:19 am

You have fatally broken your RPi. The replacement will cost somewhere between £5 and £35 depending on the model.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Some of the gpios not working

Thu May 04, 2017 8:55 am

bansari18 wrote:hi..
its getting worse.. i am unable to connect touch ic through i2c as it shows all the addresses when i connect it, else shows no address. what should i do ? can the gpios be replaced? any ideas..
Thank you..
first did you test your pi gpio with a switch as I suggested to see if they were still working ?

did you follow a set of instructions on how to connect the chip to I2c ?
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Thu May 04, 2017 9:00 am

pcmanbob wrote:
bansari18 wrote:hi..
its getting worse.. i am unable to connect touch ic through i2c as it shows all the addresses when i connect it, else shows no address. what should i do ? can the gpios be replaced? any ideas..
Thank you..
first did you test your pi gpio with a switch as I suggested to see if they were still working ?

did you follow a set of instructions on how to connect the chip to I2c ?
yes i followed the instructions like https://learn.adafruit.com/adafruits-ra ... guring-i2c but i failed at last step. and yeah i can not get the input or output through those gpios which i mentioned not working. I tried from commandline with setting gpio -g (bcm pin) mode out , gpio -g (bcm pin) write 1.. but even that do not write on those gpios and work fine with other. but now my pi is down and its not starting. :(

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Some of the gpios not working

Thu May 04, 2017 9:05 am

bansari18 wrote:
pcmanbob wrote:
bansari18 wrote:hi..
its getting worse.. i am unable to connect touch ic through i2c as it shows all the addresses when i connect it, else shows no address. what should i do ? can the gpios be replaced? any ideas..
Thank you..
first did you test your pi gpio with a switch as I suggested to see if they were still working ?

did you follow a set of instructions on how to connect the chip to I2c ?
yes i followed the instructions like https://learn.adafruit.com/adafruits-ra ... guring-i2c but i failed at last step. and yeah i can not get the input or output through those gpios which i mentioned not working. I tried from commandline with setting gpio -g (bcm pin) mode out , gpio -g (bcm pin) write 1.. but even that do not write on those gpios and work fine with other. but now my pi is down and its not starting. :(
well the first step is to try a fresh install of raspbian on another sd card and see if that helps.
also look at the red and green leds and tell us what they are doing also is the pi getting very hot ?
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Thu May 04, 2017 9:19 am

now i am getting no indicating leds on as red is power and yellow for act.. but unfortunately now nothings happening. and yes i have used heatsink and fan but still i get nearly 80degree Celsius. Before it started tripping, it was nearly 70. so its getting hot.

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Some of the gpios not working

Thu May 04, 2017 9:24 am

as Dougie said ,
you have killed your RPI =- get a new one and don't do what you did last time
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

bansari18
Posts: 21
Joined: Tue Mar 07, 2017 1:04 pm

Re: Some of the gpios not working

Thu May 04, 2017 9:25 am

DougieLawson wrote:You have fatally broken your RPi. The replacement will cost somewhere between £5 and £35 depending on the model.
isnt there only gpio replacement or some fix

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Some of the gpios not working

Thu May 04, 2017 9:28 am

bansari18 wrote:
DougieLawson wrote:You have fatally broken your RPi. The replacement will cost somewhere between £5 and £35 depending on the model.
isnt there only gpio replacement or some fix
Then I tend to agree with the others you have killed your pi.
no you cant fix the gpio the only option is to replace the Pi.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Return to “Beginners”