1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Raspberry Pi - $35 Linux computer

Discussion in 'Small Form Factor and Single Board Computers' started by daz, 4 Sep 2011.

  1. TomWilko

    Mobster

    Joined: 3 Jun 2003

    Posts: 4,090

    Location: UK

    Hello,

    I wondered if anyone could help. I got my Pi for Christmas and am playing around with the GPIO functionality. I have had a problem tonight using the rpi.gpio library.

    I have been following the GPIO videos on YouTube. have the rpi gpio library installed and have copied the code exactly. Upon executing the code I get the following error:

    Traceback (most recent call last):
    File “gpiotest.py”, line 5, in <module>
    Gpio.setmode(gpio.BCM)
    AttributeError: ‘module’ object has no attribute ‘setmode’

    Here is my code within the python file:

    Import RPi.GPIO as gpio
    Import time

    #set up pin 14 as an output
    gpio.setmode(gpio.BCM)
    gpio.setup(14, gpio.OUT)

    while True:
    gpio.output(14, gpio.HIGH)
    time.sleep(1)
    gpio.output(14, gpio.LOW)
    time.sleep

    If anyone could offer any help that would be great.

    Thanks,

    Tom
     
  2. v0n

    Sgarrista

    Joined: 18 Oct 2002

    Posts: 8,112

    Location: The Great Lines Of Defence

    How do I know that it will get removed? Final total has over £7 shipping charges clearly stated?
     
  3. electric ant

    Wise Guy

    Joined: 11 Aug 2004

    Posts: 1,051

    Location: Notts

  4. doodah

    Capodecina

    Joined: 18 Oct 2002

    Posts: 24,098

    Location: London

    Can any one recommend some accessories please?

    People seem to suggest the Edimax EW-7811UN Wireless 802.11b/g/n 150Mbps Nano USB Adaptor over DYNAMODE dongles.

    Which is the best powered USB hub?
     
  5. Nightglow

    Soldato

    Joined: 19 Jan 2010

    Posts: 6,780

    Location: South West

  6. doodah

    Capodecina

    Joined: 18 Oct 2002

    Posts: 24,098

    Location: London

    Just fired up my Pi for the first time, started off with Open ELEC so I could use XBMC. However I have stumbled at the first hurdle, I can't get my PC to cooperate through Windows Homegroup. :o:o
     
  7. killsta

    Mobster

    Joined: 18 Oct 2002

    Posts: 3,070

    Location: Around

    I've just got myself a Pi and currently running OpenELEC too, but having a problem with my USB HDD disconnecting intermittently. Basically it'll work fine, then after a while I get "unsafe media removal" in the bottom right.

    Sometimes the HDD mounts again and works ok, sometimes won't recognise the HDD again until I reboot the Pi :(

    Any ideas? Will a USB hub help the issue? The USB HDD is a desktop drive with it's own power.
     
  8. doodah

    Capodecina

    Joined: 18 Oct 2002

    Posts: 24,098

    Location: London

    Another query. When I briefly played with XBMC on Windows, several of the addons I used were downloaded externally and then imported. With Open ELEC/RasbBMC there doesn't seem to be an ability to leave the program and do this and there doesn't seem to be that many addons to get through XBMC. Any way around this? Is there a distribution for the Pi where XBMC can be added/installed?
     
  9. Nikumba

    Mobster

    Joined: 4 Dec 2002

    Posts: 3,775

    Location: Bourne, Lincs

    Does it not let you browse a network share for the zip file?
     
  10. DotA

    Hitman

    Joined: 27 Dec 2008

    Posts: 540

    For xbmc on my pi im using raspbmc, need to be connected to the internet on start up, can be done with certin wireless cards as well now.

    you can install add ons such as iplayer, youtube from a usb stick and extract from the zip file.

    iv got mine working from the remote that came with the TV so it also means M/KB is needed when set up.
     
  11. Rich43

    Hitman

    Joined: 2 Nov 2005

    Posts: 920

    Location: Leicester

    How long is it taking farnell to dispatch the PI?
     
  12. Scotspaul

    Hitman

    Joined: 22 Oct 2010

    Posts: 580

    I ordered one on Christmas Eve from Farnell and it arrived the day after Boxing Day, so pretty much next day or the day after that during normal times I would say.
     
  13. Number_25

    Mobster

    Joined: 23 Dec 2010

    Posts: 3,483

    Mine has literally sat in my drawer for the past 2 months, I want to do something with it - but I don't know what.
     
  14. nick.lidgett

    Mobster

    Joined: 31 Oct 2011

    Posts: 2,550

    Location: Leyland

    Install Rasbmc on it and turn it into a media centre, it will even pick up a usb hdd so you can take your films and music with you and plug it into any tv with hdmi.
     
  15. d_brennen

    Capodecina

    Joined: 30 Jan 2009

    Posts: 16,479

    Location: Aquilonem Londinensi

    Give it to me and I'll use it for a high altitude challenge. Or lose it in the woods, which is more likely ;)
     
  16. doodah

    Capodecina

    Joined: 18 Oct 2002

    Posts: 24,098

    Location: London

    Oooo I didn't think of that, so make a folder of all the addons I want and share it on the network. Thank you :)

    Silly question. What's the difference between Raspbmc and XBMC?
     
  17. Evilpaul

    Wise Guy

    Joined: 20 Aug 2010

    Posts: 1,069

    Location: Not Coventry

    XBMC is just the media centre interface, whereas OpenELEC, RaspBMC and the like are Linux distributions that are optimised for running XBMC.
     
  18. doodah

    Capodecina

    Joined: 18 Oct 2002

    Posts: 24,098

    Location: London

    Cool, thank you. I have just come across http://www.xbmchub.com which looks like a treasure trove of useful information. My weekend is sorted :o:cool:

    Another question - much difference between Open ELEC and Raspbmc? I am currently using the former, it runs quite well unless it is doing something in the background. Network performance isn't great (1080p content plays but it won't let you skip) but that might be down to my PC being in an area of the house that doesn't have the best WiFi signal.

    Is it worth overclocking? I have the revision B model.

    Can any one recommend a skin? I briefly used MQ4 on my PC but have heard it doesn't run too well on the Pi.
     
    Last edited: 9 Jan 2013
  19. Daveangle

    Gangster

    Joined: 21 Aug 2008

    Posts: 199

    Location: Cambridge

    Got my Pi at Christmas, I haven't explored it that much other than putting Raspbian on it, however the Mrs is away all weekend so I will try and get right on it. My preferred outcome would be to have it as a NAS/Overnight download system.

    My current thoughts are on Raspbian I can install wGet which seems to be the standard download manager for linux based systems and I think it is compatible with Debian. I have ordered a nice 4TB external HDD from overclockers which should arrive today.

    I found http://exir.ru/wget4web/ which I plan to use as well but I will also need a lightweight web server, they recommend Apache. Is there anything better?

    It has been along time since I used any Linux based computer systems so I am a little rusty but I am sure I can configure Samba to work with the external drive, is it best to keep the drive formatted NTFS? It would probably be easier for me if that was the case, but will it be able to see the whole 4TB's? Or should I be using the linux partitions (ext from recollection)?

    I was looking to install XBMC onto the Pi however I already have it installed on my other MediaCentre, so I don't think I will bother just add it as a network drive to that system.

    I haven't gone to far with my Pi yet but is Raspbian the best O/S to use currently?, I have installed it with the GUI interface however it is extremely slow and TBH I mainly just use Putty command line anyway. Looking at what I am going to do with the system would anyone recommend another distro?
     
  20. masterluke

    Wise Guy

    Joined: 24 Oct 2002

    Posts: 2,418

    Location: Cork, Ireland

    NTFS support under linux will support large drives no problem.

    AFAIK you wont find a distro much faster than Raspbian, the gui will always be slow so its best to stick with the command line.

    You will probably find that the network performance makes it a bit slow for a NAS. I guess it depends how you will be using it. Streaming movies should be fine... but copying large files to and from it will be slow.