Showing posts with label first. Show all posts
Showing posts with label first. Show all posts

Tuesday, October 15, 2013

Raspberry Pi Journal #32


Adafruit LCD w/ Keypad First Test



I finally installed the script to run Adafruit LCD w/ Keypad Kit. Mine is the RGB version, so I get all the colors. It was rather scary trying to enter the unknown. I did it with some trepidation. Obviously, I backed up my system!




Turns out there's no trouble at all.

I'm not running Occidentalis, so I have to do things the hard way, which isn't hard at all. I opened up the file /etc/modules and there's only one entry on it. I simply added these two lines at the end (per instruction)

i2c-bcm2708
i2c-dev

And that's it. Reboot for it to take effect, and install some programs. Again, this is all mentioned in the helpful instructions.


  • sudo apt-get install python-smbus
  • sudo apt-get install i2c-tools


By the way, I make sure that I don't already have the package. But it's not necessary. The installation will install the latest package version if necessary, but that's about it. Also, i2c-tools install a set of program into /usr/sbin.

Next, I went and installed the source code from github. It turns out that I already have git on my computer. So, all I have to do is clone it from the directory.


  • git clone https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git


And that's it. Very quickly done. Next, install update Python to allow GPIO programming:


  • sudo apt-get install python-dev
  • sudo apt-get install python-rpi.gpio


Thankfully the python demo script auto-detect my device. At first, I wasn't sure that the program is running. Then I remembered that the LCD is contrast sensitive. I pulled out my trusty Swiss Army Knife. Popped out philips screwdriver, and adjusted the contrast. I was elated when I see the lettering, and downright happy when the text and the color changes per button presses!

Oh, yeah! I guess I'm a hardware engineer, now! Well, I guess I should learn Python programming so I can do cool stuff with it!


Tuesday, August 27, 2013

Raspberry Pi Journal #12

Installing NOOBS

NOOBS is a one gigabyte download from raspberry.org. It contains several operating systems that you can install. I'm installing the default Raspbian here. Even though the process is straightforward, there's quite a bit of steps to go through. I've been taking pictures, and I'm sharing them with you so you can see what's going on.

Take care to set up your regions, and keyboard. The first time I installed, I didn't set the keyboard to US keyboard. Needless to say, what I type and what I see on screen are two different things!

You download NOOBS into a fresh SD card (running FAT32), a minimum of 4GB size. Then simply insert the card into Raspberry Pi and turn it on.

Wow, there sure is a lot of pictures here.


I'm installing the default Raspbian system. If this is your first time doing Pi, there's no reason not to do so. Raspbian is based on Debian OS, so it's a pretty solid choice.



Make some tea. It's going to take a while. The process is done automatically, but it takes time to write to the SD card. I didn't time it, but I'd say it's about 10-15 minutes.



Installation is complete. Now it's time to reboot!




Raspi config is started automatically



I enable boot to Desktop. The reason is that I'll have an easier time setting up things. However, there's some magic behind the scene. There's automatic password entry, so the system is less secure overall. Furthermore, all those graphic drawing on screen does make it slower overall.

I decided to trade speed and safety for ease-of-use and convenience. If you don't like it, you'll want to enable the short cut to stop the windowing system.



Set your Time zone!


Unless you're British, set your keyboard!







Ugh. The keyboard installation is pretty involved, doesn't it? I'm using wireless keyboard with USB dongle, so I'm treating it like any other USB keyboard. I'm setting it to just boring old keyboard. No fancy key mapping for me!



If you want to set up your Raspberry Pi to run headless, you want to set this up. Once you download all the necessary drivers and packages, then you want to re-run raspi-config and disable booting into GUI.




Advance options? Good stuff here!



Overscan setting, just in case you don't like black borders. Mine works perfectly out-of-box. Sometimes, though, I didn't turn on the monitor when the Pi boots, so I would be treated to different resolution and I see black bands.



Hostname for the network.


I set it to 256 MB. Half my main memory.


If you want to run headless, set it lower!


Done setting up? I think I forget something. In my installation, I went into the boot configuration file
  • hdmi_force_hotplug=1
  • hdmi_drive=2

If you missed it, you can go to /boot/config.txt to change it. This will force HDMI output, which is my TV.


Now reboot, and open up Leaf Pad, and type in all the punctuation marks and all to see if your keyboard is set up right. 

Well done! You have just installed an operating system from scratch!

My network connection works right off the bat. There's an icon Wifi Config where you need to put in your password. You know the network connection works because the time will automatically be set to local time. That's why it's important for you to set your locality.


Sunday, August 4, 2013

My First Raspberry Pi Post

I am posting this from my Raspberry Pi. Included the the "scrot" screen capture utility that I just downloaded. I wished that I had known about this earlier, since I've already installed my printer and openoffice/libre and gimp. Subsequent installation will feature screen shots, instead of boring video waiting for the installation to finish downloading the package. :)


In addition, I have also downloaded wallpaper for my desktop. That Saber dollfie is mighty fine looking!

I use the command gpicview to look at these images.