I’m sure over the years I’ve posted many times about my multitude of failed attempts at programming, Linux, and electronics projects. Countless times I decided – this is the day I’m going to learn to program and stick with it, only to give up a week later after getting so fucking frustrated that I can’t take it anymore. Probably the hardest thing about programming, is to really have the proper motivation to learn, you need to have a project in mind that you are learning to program to complete your project. This could be anything from “Hello World”, to some sort of WordPress plugin. The problem I always run in to that kills my motivation is that someone has already done just about everything I set out to do! Every time I come up with some sort of project that I want to become proficient enough to write a program to solve, I end up finding an existing program/app/web site where someone has already done it. I then think “why reinvent the wheel?” and give up.
Well, now I’m on my 4,593rd attempt at learning programming and electronic circuit design, and this time I’m doing it all with a Raspberry Pi. I figured this is a cool opportunity to learn more Linux command line and more about electronics and circuit design. For a relatively small price, the RPi packs all those topics into one cool, small package, with tons of online resources to help you get started. In the first day alone (with help of tutorials), I’ve already written a program in Python that controls two LED’s hooked up to the bread board and lights up a green light if I have new unread mail in my Gmail account, and lights up a red light if I have no new mail waiting. Pretty cool!
So, I wanted to create this page to add links, videos, code, and things that I’ve learned as I dick around with this thing. Being a noob programmer, there are a few things I came across today that I just didn’t understand, and I hope that other new RPi/Python students will find this page and get the help they need and learn from my mistakes. I’ll update here with new links, tips, info, and tricks as I come across it. Thanks!
- Adafruit Learning System Tutorials
- Lesson 1 – Preparing SD card
- Lesson 2 – First Time Config
- Lesson 3 – Network Setup
- Leaaon 4 – GPIO Setup
- Lesson 5 – Using a Console Cable
- Lesson 6 – Using SSH
- Lesson 7 – Remote Control with VNC
- Lesson 8 – Using a Servo Motor
- Lesson 9 – Using a DC Motor
- Lesson 10 – Stepper Motors
- Lesson 11 – Temperature Sensing
- Lifehacker Raspberry Pi Beginners Guide
- Lifehacker Raspberry Pi XBOX Media Center
Will post relevant videos here
Tips & Tricks
- When working on the Email Notifier project, the instructions tell you to copy and paste their example code into nano editor in Linux. I found that when doing that I kept getting an error “syntaxerror: Non-ASCII character ‘\xc2…‘” and I had all the code exactly the way they show it in their example. I found that the error is due to some HTML space characters that somehow are in the code when you copy/paste it into nano. I went through and deleted all the spaces, and sure enough the program ran fine. So just be careful when copying/pasting code from these examples, make sure that you remove any weird spaces or characters that may be in there. Paste it into a text editor first and remove it there, or just type out the code yourself.