PI broken?


15 posts
by alex88 » Sat Jan 05, 2013 8:20 pm
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?
Posts: 10
Joined: Sat Jan 05, 2013 8:17 pm
Location: Italy
by texy » Sat Jan 05, 2013 10:18 pm
Post your code.
Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2316
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by alex88 » Sat Jan 05, 2013 11:22 pm
I've tested with both webiopi setting all the pins to out and on and with this python code:

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
by alex88 » Sun Jan 06, 2013 9:25 am
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?
Posts: 10
Joined: Sat Jan 05, 2013 8:17 pm
Location: Italy
by texy » Sun Jan 06, 2013 9:56 am
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
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2316
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by alex88 » Sun Jan 06, 2013 10:22 am
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
by alex88 » Sun Jan 06, 2013 11:34 am
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
by alex88 » Mon Jan 07, 2013 8:02 am
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
by alex88 » Tue Jan 08, 2013 8:54 am
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
by RaTTuS » Tue Jan 08, 2013 9:07 am
did you read
viewtopic.php?f=63&t=28480#p252178
and what do you have to say about it
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
"That's not right, the badgers have moved the goalposts."
User avatar
Posts: 4720
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by pluggy » Tue Jan 08, 2013 10:39 am
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.
Don't judge Linux by the Pi.......
User avatar
Posts: 2315
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
by alex88 » Tue Jan 08, 2013 2:00 pm
RaTTuS wrote:did you read
viewtopic.php?f=63&t=28480#p252178
and what do you have to say about it


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
by alex88 » Tue Jan 08, 2013 2:02 pm
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
by pluggy » Tue Jan 08, 2013 2:56 pm
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

I'll go back to arduino
as meaning you'd been there in the first place.
Don't judge Linux by the Pi.......
User avatar
Posts: 2315
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
by ngy » Wed Jul 24, 2013 4:20 pm
I was having the same problem, but with a different pin (BCM 17). In the end, it turns out there was an driver loaded at boot time that was preventing me from using all the GPIO pins (it was for LedBorg). Now that I look at their site they are clear about this. However, I hadn't used the component for ages, so it didn't occur to me that I had installed something that interfered with the GPIO.
Posts: 9
Joined: Fri May 17, 2013 8:35 am