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 ...
-
28th June 2012, 11:53 AM #1 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
-
-
IDG Tech News
-
28th June 2012, 12:02 PM #2 Scratch runs on the pi and there are resources out there for it.
-
-
28th June 2012, 01:10 PM #3 
Originally Posted by
mats
Scratch runs on the pi and there are resources out there for it.
I think its pointless, why not install it on a desktop?
-
-
28th June 2012, 04:38 PM #4 
Originally Posted by
FN-GM
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.
-
-
28th June 2012, 04:57 PM #5 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!
-
-
28th June 2012, 06:08 PM #6 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
-
-
29th June 2012, 08:56 AM #7 
Originally Posted by
teejay
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?
-
-
29th June 2012, 09:07 AM #8 
Originally Posted by
dhicks
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.
-
-
29th June 2012, 09:09 AM #9
-
2 Thanks to Oaktech:
cromertech (2nd July 2012), teejay (29th June 2012)
-
29th June 2012, 09:22 AM #10 
Originally Posted by
Oaktech
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.
-
-
29th June 2012, 10:54 AM #11 
Originally Posted by
dhicks
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.
-
-
2nd July 2012, 12:14 PM #12
-
-
2nd July 2012, 12:18 PM #13 Moving to Raspberry Pi Python forum here:RasPi: Program
*We do have a raft of RP forums guys, so please use them.
-
-
2nd July 2012, 12:31 PM #14 
Originally Posted by
Oaktech
What a resource!! Good find. I'll be hidden away furious typing in code for the rest of the day if anyone wants me
-
-
2nd July 2012, 12:36 PM #15 
Originally Posted by
cromertech
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.
-
Thanks to Oaktech from:
cromertech (2nd July 2012)
SHARE: 
Similar Threads
-
By LosOjos in forum RasPi: General Chat
Replies: 54
Last Post: 5th December 2012, 11:53 AM
-
By Dos_Box in forum IT News
Replies: 79
Last Post: 13th April 2012, 09:26 PM
-
By Turbo-FB in forum RasPi: Program
Replies: 0
Last Post: 19th January 2012, 12:56 AM
-
By Turbo-FB in forum RasPi: Shell
Replies: 0
Last Post: 19th January 2012, 12:56 AM
-
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
-
Forum Rules