Hello everyone, I've received the PI some days ago, I've tested the GPIO and it seems that pins 23 and 24 aren't able to give power, all the other GPIO pins works fine giving 3,3v but pins 23 and 24 doesn't give anything as output.
I've tested with a tester between ground and each pin.
Any idea/other way to test?
PI broken?
14 posts
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
Post your code.
Texy
Texy
"!.8inch TFT LCD + Switch Shield v2" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=59&t=43286
50p goes to the Foundation
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=59&t=43286
50p goes to the Foundation
- Moderator
- Posts: 1420
- Joined: Sat Mar 03, 2012 10:59 am
- Location: Berkshire, England
I've tested with both webiopi setting all the pins to out and on and with this python code:
on the GPIO 4 I can see the 3.3v, on the 24 I always get 0.
Also, I thought it could be an i2c module issue so I've blacklisted that and spi, now I get:
which I don't think interferes with GPIO.
- Code: Select all
#!/usr/bin/env python
from time import sleep
import os
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(4, GPIO.OUT)
GPIO.setup(24, GPIO.OUT)
GPIO.output(4, GPIO.LOW)
GPIO.output(24, GPIO.LOW)
sleep(3)
GPIO.output(4, GPIO.HIGH)
GPIO.output(24, GPIO.HIGH)
on the GPIO 4 I can see the 3.3v, on the 24 I always get 0.
Also, I thought it could be an i2c module issue so I've blacklisted that and spi, now I get:
- Code: Select all
pi@raspberrypi ~ $ sudo lsmod
Module Size Used by
rfcomm 33663 0
bnep 10514 2
bluetooth 157711 10 bnep,rfcomm
which I don't think interferes with GPIO.
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
I've tested that also setting it to IN and connect with OUT pins doesn't make any difference.
Should I return the PI to RS and buy a new one?
Should I return the PI to RS and buy a new one?
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
On your first post you mention pins 23 and 24, then your code uses BCM-4 and BCM-24. So I'm confused about which pins you think are broken, because they are not the same. Take a look at thus diagram and check voltages again :
https://projects.drogon.net/raspberry-pi/wiringpi/pins/
Texy
https://projects.drogon.net/raspberry-pi/wiringpi/pins/
Texy
"!.8inch TFT LCD + Switch Shield v2" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=59&t=43286
50p goes to the Foundation
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=59&t=43286
50p goes to the Foundation
- Moderator
- Posts: 1420
- Joined: Sat Mar 03, 2012 10:59 am
- Location: Berkshire, England
The pin 4 was to test something that is actually working.. And I ve tried with webiopi too..
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
Btw I don't think it's a software coding fault, I've tested with Webiopi and all the GPIO pins are working except those 2, I think I'll use the return procedure of RS.
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
Someone ever returned something to the RS? I think I need to call my countr'y RS phone number and ask there maybe..
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
Seems that until someone says raspberry is s**t, I'll go back to arduino and other stuff no one cares ot help on faulty boards.
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
If you're already using Arduino, I'd stay with it. The arduino is a microcontroller, the Pi is a computer with microcontroller aspirations. I'd say 90% + of those with a Pi don't use (or even have a clue) what the GPIO pins are for. Everyone with an arduino uses the i/o pins, because there would be no point in having one otherwise. I have both and the arduino is vastly superior for control of external circuits, but the GPIO can be pressed into service if you don't have an arduino.....
Use the chalk when you need chalk and cheese when you want cheese.
The raspberry isn't sh*t but if your'e using it as a microcontroller, it maybe is in comparison to a dedicated microcontroller. (There, I said it).
No-one on here is responsible if your Pi is faulty, just as no-one on the arduino forum is responsible if your arduino is faulty. But since everyone on the arduino forum will know something about microcontroller I/O and most on here won't. It isn't a fair comparison.
Use the chalk when you need chalk and cheese when you want cheese.
The raspberry isn't sh*t but if your'e using it as a microcontroller, it maybe is in comparison to a dedicated microcontroller. (There, I said it).
No-one on here is responsible if your Pi is faulty, just as no-one on the arduino forum is responsible if your arduino is faulty. But since everyone on the arduino forum will know something about microcontroller I/O and most on here won't. It isn't a fair comparison.
Don't judge Linux by the Pi.......
Did you read viewtopic.php?p=252197#p252197 ? I told him that the gpio 4 I've used was to test that actually the code works, since the pin 4 is working and I was getting voltage on that, so I've cloned the code to test pin 24 and I don't get any voltage from that.
Same if I use 25 instead of 24
And yeah, I know wiring since I've tested all the other pins and they're working fine except 24 and 25
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
pluggy wrote:If you're already using Arduino, I'd stay with it. The arduino is a microcontroller, the Pi is a computer with microcontroller aspirations. I'd say 90% + of those with a Pi don't use (or even have a clue) what the GPIO pins are for. Everyone with an arduino uses the i/o pins, because there would be no point in having one otherwise. I have both and the arduino is vastly superior for control of external circuits, but the GPIO can be pressed into service if you don't have an arduino.....
Use the chalk when you need chalk and cheese when you want cheese.
The raspberry isn't sh*t but if your'e using it as a microcontroller, it maybe is in comparison to a dedicated microcontroller. (There, I said it).
No-one on here is responsible if your Pi is faulty, just as no-one on the arduino forum is responsible if your arduino is faulty. But since everyone on the arduino forum will know something about microcontroller I/O and most on here won't. It isn't a fair comparison.
I'm not saying raspberry is s**t neither that I'm using Arduino. Just said that I've seen other topics with people saying that Pi is bad etc and they got help.
- Posts: 10
- Joined: Sat Jan 05, 2013 8:17 pm
- Location: Italy
I often say the Pi is bad (JamesH thinks I have a hangup on the shortcomings of the Pi's USB) and I don't know that much about the Pi's GPIO which is why I haven't got involved in your question. I've interfaced an Arduino chip to the Pi via a small subset of GPIO to give me the best of both worlds if that counts for anything. Most people like myself don't know or care if you can get power out of GPIO pins 24 & 25 or not and whether that constitutes a broken Pi. You might be better posting in the more specialised areas further down that deals with GPIO, not as much activity but more of the readers will probably we able to help you. May I suggest :
viewforum.php?f=44 , those that frequent such areas probably do have a clue.
I took
viewforum.php?f=44 , those that frequent such areas probably do have a clue.
I took
as meaning you'd been there in the first place.I'll go back to arduino
Don't judge Linux by the Pi.......