+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
RasPi: Program Thread, Programming Raspberry Pi in RasPi: Develop; Hi all, I'm interested if anyone has actually done any teaching or programming using a Raspberry Pi and if so ...
  1. #1
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    459
    Thank Post
    14
    Thanked 47 Times in 46 Posts
    Rep Power
    21

    Programming Raspberry Pi

    Hi all,
    I'm interested if anyone has actually done any teaching or programming using a Raspberry Pi and if so could reccomend or share instruction sheets, books or resources?

    Raspberrypi.org only seems to have a tutorial to install the os then write a hello world type program in python.

    Thanks
    Jona

  2. IDG Tech News
  3. #2

    Join Date
    Nov 2010
    Posts
    286
    Thank Post
    34
    Thanked 36 Times in 36 Posts
    Rep Power
    20
    Scratch runs on the pi and there are resources out there for it.

  4. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    13,895
    Blog Entries
    8
    Thank Post
    728
    Thanked 1,369 Times in 1,199 Posts
    Rep Power
    363
    Quote Originally Posted by mats View Post
    Scratch runs on the pi and there are resources out there for it.
    I think its pointless, why not install it on a desktop?

  5. #4

    Join Date
    Nov 2010
    Posts
    286
    Thank Post
    34
    Thanked 36 Times in 36 Posts
    Rep Power
    20
    Quote Originally Posted by FN-GM View Post
    I think its pointless, why not install it on a desktop?
    The OP was asking about programming on a Pi. I suggested a way of doing it.

    Its a debian system so you can take your pick of languages - it's just a question of finding ones that children will pick up easily.

  6. #5
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,963
    Thank Post
    100
    Thanked 243 Times in 222 Posts
    Rep Power
    98
    Look for some stuff using pygame that might be a good start. I'm going to be doing some programming using the GPIO this weekend hopefully, if all my stuff arrives in time!

  7. #6

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    2,709
    Thank Post
    250
    Thanked 589 Times in 473 Posts
    Rep Power
    285
    Just fiddling with the GPIO myself, got some LED's working on it, now time to experiment
    Just a word of warning, the GPIO pins connect directly to the cpu with no protection, so make doubly sure you've got your circuit right!

    Anyway, eLinux seem to be a good starting place for tutorials etc on the Pi- RPi Tutorials - eLinux.org

  8. #7

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,063
    Thank Post
    1,056
    Thanked 664 Times in 573 Posts
    Rep Power
    212
    Quote Originally Posted by teejay View Post
    Just a word of warning, the GPIO pins connect directly to the cpu with no protection, so make doubly sure you've got your circuit right!
    Any idea how to go about getting the GPIO pins to drive a relay? If I understand correctly, most relays need 5v to operate them, but the Raspberry Pi can only provide 3.3v and would be damaged by trying to provide 5v. Any idea how I go about using the Raspberry Pi to control a relay so I can switch motors / solenoids / etc on/off?

  9. #8

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    2,709
    Thank Post
    250
    Thanked 589 Times in 473 Posts
    Rep Power
    285
    Quote Originally Posted by dhicks View Post
    Any idea how to go about getting the GPIO pins to drive a relay? If I understand correctly, most relays need 5v to operate them, but the Raspberry Pi can only provide 3.3v and would be damaged by trying to provide 5v. Any idea how I go about using the Raspberry Pi to control a relay so I can switch motors / solenoids / etc on/off?
    You're best using a daughter board like the Gert board or similar. I've got one a Pi Face Digital I/O on back order - Buy Pi-Face DIgital IO Interface for Raspberry Pi, there are a few others about to come on the market as well, so that will drive prices down. I personally don't have the electronics skills to make my own board to do this, or to figure out how to do it safely directly from the Pi, it's a bit of a new adventure for me, trying to recall O Level electronics from 27 years ago is a bit foggy to say the least lol.

  10. Thanks to teejay from:

    dhicks (29th June 2012)

  11. #9

    Oaktech's Avatar
    Join Date
    Jul 2011
    Location
    Bournemouth
    Posts
    1,760
    Thank Post
    439
    Thanked 306 Times in 238 Posts
    Rep Power
    136

  12. 2 Thanks to Oaktech:

    cromertech (2nd July 2012), teejay (29th June 2012)

  13. #10

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    2,709
    Thank Post
    250
    Thanked 589 Times in 473 Posts
    Rep Power
    285
    Quote Originally Posted by Oaktech View Post
    That's fantastic, a magazine with code listings
    Many an hour was spent in my youth typing in code from mags and then figuring out why it wouldn't work.

  14. #11

    Join Date
    Nov 2010
    Posts
    286
    Thank Post
    34
    Thanked 36 Times in 36 Posts
    Rep Power
    20
    Quote Originally Posted by dhicks View Post
    Any idea how to go about getting the GPIO pins to drive a relay? If I understand correctly, most relays need 5v to operate them, but the Raspberry Pi can only provide 3.3v and would be damaged by trying to provide 5v. Any idea how I go about using the Raspberry Pi to control a relay so I can switch motors / solenoids / etc on/off?
    I could draw the circuit on a piece of paper in about a minute, but instead will try to explain it...

    To protect the raspi, I would use an opto-isolated transistor like the venerable 4N25 - this means that anything bad that happens on the other side of the opto can't hurt the raspi.

    I would then use a transistor (or even 2, depends how much current the relay needs) to drive the relay coil. Not forgetting a reverse biassed diode across the coil to protect against voltage spikes when it is switched off.

    Failing that, I suspect interface boards will be 2 a penny in a month or twos time.

  15. Thanks to mats from:

    dhicks (29th June 2012)

  16. #12

    JJonas's Avatar
    Join Date
    Jan 2008
    Location
    North Walsham, Norfolk
    Posts
    2,565
    Thank Post
    295
    Thanked 342 Times in 254 Posts
    Rep Power
    239
    MagPi issue 3 is now up

  17. Thanks to JJonas from:

    Oaktech (2nd July 2012)

  18. #13

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,762
    Blog Entries
    22
    Thank Post
    380
    Thanked 1,727 Times in 786 Posts
    Rep Power
    513
    Moving to Raspberry Pi Python forum here:RasPi: Program


    *We do have a raft of RP forums guys, so please use them.

  19. #14
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    641
    Thank Post
    134
    Thanked 93 Times in 87 Posts
    Rep Power
    37
    Quote Originally Posted by Oaktech View Post
    What a resource!! Good find. I'll be hidden away furious typing in code for the rest of the day if anyone wants me

  20. #15

    Oaktech's Avatar
    Join Date
    Jul 2011
    Location
    Bournemouth
    Posts
    1,760
    Thank Post
    439
    Thanked 306 Times in 238 Posts
    Rep Power
    136
    Quote Originally Posted by cromertech View Post
    What a resource!! Good find. I'll be hidden away furious typing in code for the rest of the day if anyone wants me
    Its bordering on addictive, maybe should come with a government health warning

    Caution, use with care, may cause addiction and may lower your social interaction to dangerous levels. Ensure you go the pub at least once a week to remind yourself what other people look and sound like.

  21. Thanks to Oaktech from:

    cromertech (2nd July 2012)

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Raspberry Pi Ideas
    By LosOjos in forum RasPi: General Chat
    Replies: 54
    Last Post: 5th December 2012, 11:53 AM
  2. Raspberry Pi - Almost here
    By Dos_Box in forum IT News
    Replies: 79
    Last Post: 13th April 2012, 09:26 PM
  3. Application programs on the Raspberry PI
    By Turbo-FB in forum RasPi: Program
    Replies: 0
    Last Post: 19th January 2012, 12:56 AM
  4. Shell programs on the Raspberry PI
    By Turbo-FB in forum RasPi: Shell
    Replies: 0
    Last Post: 19th January 2012, 12:56 AM
  5. Raspberry Pi
    By alonebfg in forum Hardware
    Replies: 3
    Last Post: 7th June 2011, 10:06 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •