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.
- rPi is a much more powerful single board computer than Arduino UNO. It run real OS – linux.
- There is no HDD but only SD card as storage.
- The default login, username: pi, password: raspberry
- If you cant see your favourite GUI, type startx in terminal, after-all it is linux.
- In Arduino, you write in Arduino IDE; In rPi, you write using any programming language, but most popular one is python.
- In Arduino, it’s Input/Output pin; In rPi, you got GPIO
- You can light an IDE using command line! Refer Here
- For prototyping on breadboard, You need something extra, can be purchase here
- You need to have Internet access. i am using a wifi in this case.
- Your python wont work out of the box with GPIO, follow instruction here to setup
- Then, you may follow this tutorial to blink an LED
- 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:
- You can always start idle in sudo mode, open the file yourfilename.py and hit F5
- you can always type command in terminal, python ./yourfilename.py. Remember to chmod +x the file first to make it executable (some extra step that linux have compare to windows).
- or.. you can prepend this line #!/usr/bin/env python in yourfilename.py. Then, you can start it in terminal straight away without calling thru python: ./yourfilename.py