+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
Raspberry Pi, Arduino & Other SBCs Thread, Programming Raspberry Pi in Technical; 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
    470
    Thank Post
    14
    Thanked 50 Times in 48 Posts
    Rep Power
    23

    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. #2

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

  3. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,058
    Thank Post
    888
    Thanked 1,731 Times in 1,494 Posts
    Blog Entries
    12
    Rep Power
    454
    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?

  4. #4

    Join Date
    Nov 2010
    Posts
    453
    Thank Post
    59
    Thanked 69 Times in 59 Posts
    Rep Power
    34
    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.

  5. #5
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,987
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    107
    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!

  6. #6

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    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

  7. #7

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,655
    Thank Post
    1,259
    Thanked 783 Times in 680 Posts
    Rep Power
    236
    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?

  8. #8

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    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.

  9. Thanks to teejay from:

    dhicks (29th June 2012)

  10. #9

    Oaktech's Avatar
    Join Date
    Jul 2011
    Location
    Bournemouth
    Posts
    2,843
    Thank Post
    788
    Thanked 552 Times in 432 Posts
    Rep Power
    261

  11. 2 Thanks to Oaktech:

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

  12. #10

    teejay's Avatar
    Join Date
    Apr 2008
    Posts
    3,187
    Thank Post
    285
    Thanked 775 Times in 585 Posts
    Rep Power
    336
    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.

  13. #11

    Join Date
    Nov 2010
    Posts
    453
    Thank Post
    59
    Thanked 69 Times in 59 Posts
    Rep Power
    34
    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.

  14. Thanks to mats from:

    dhicks (29th June 2012)

  15. #12

    JJonas's Avatar
    Join Date
    Jan 2008
    Location
    North Walsham, Norfolk
    Posts
    3,117
    Thank Post
    389
    Thanked 440 Times in 327 Posts
    Rep Power
    385
    MagPi issue 3 is now up

  16. Thanks to JJonas from:

    Oaktech (2nd July 2012)

  17. #13

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,014
    Thank Post
    614
    Thanked 2,194 Times in 1,006 Posts
    Blog Entries
    23
    Rep Power
    632
    Moving to Raspberry Pi Python forum here:RasPi: Program


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

  18. #14
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54
    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

  19. #15

    Oaktech's Avatar
    Join Date
    Jul 2011
    Location
    Bournemouth
    Posts
    2,843
    Thank Post
    788
    Thanked 552 Times in 432 Posts
    Rep Power
    261
    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.

  20. 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 Raspberry Pi, Arduino & Other SBCs
    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. 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
  •