My First rPi Experience

Bought over a raspberry pi model B (quite an old model) from a friend and started my journey venture into this platform. With a background from Arduino, I manage to pick it up without much troubles. 20141013_225759
  1. rPi is a much more powerful single board computer than Arduino UNO. It run real OS – linux.
  2. There is no HDD but only SD card as storage.
  3. The default login, username: pi, password: raspberry
  4. If you cant see your favourite GUI, type startx in terminal, after-all it is linux.
  5. In Arduino, you write in Arduino IDE; In rPi, you write using any programming language, but most popular one is python.
  6. In Arduino, it’s Input/Output pin; In rPi, you got GPIO
  7. You can light an IDE using command line! Refer Here
  8. For prototyping on breadboard, You need something extra, can be purchase here
  9. You need to have Internet access. i am using a wifi in this case.
  10. Your python wont work out of the box with GPIO, follow instruction here to setup
  11. Then, you may follow this tutorial to blink an LED
  12. In case you cant type # correctly (fucking important for programmer) in rPi due to stupid mapping to UK keyboard by default. try Ctl+Alt+3 (but only work in idle) as describe here or better, follow the answer here to change XKBLAYOUT from uk to us
Ok, here is some additional note about running python scripts, you may ignore this if you already familiar with linux:
  1. You can always start idle in sudo mode, open the file and hit F5
  2. you can always type command in terminal, python ./ Remember to chmod +x  the file first to make it executable (some extra step that linux have compare to windows).
  3. or.. you can prepend this line #!/usr/bin/env python in Then, you can start it in terminal straight away without calling thru python: ./