Monday, November 25, 2013

Playing with SSH

     Monday, and its back to school.  Today, I have got my SD card installed in the RPi.  I've connected all the cables, plugged in the Keyboard, which I hate because its like typing on a phone.  I am using it though, for the mouse touch pad.  I have my USB hub connected and I even put my KVM switch on my computer and the second monitor at school.  (To use it with the RPi, though, I'll have to bring in an HDMI to VGA cable.  The KVM doesn't accept HDMI.)

     So, I've turned the RPi on and booted it up.  I've gone through the process of doing the first boot setup.  No problems with this at all.

     Next step is starting to get the programs to run the GPIO and sensors.  First thing I've had to do is get the Terminal (command prompt) open and start using the "git" program.  this makes the RPi go to various repositories and get (git?) programs that I tell it to.

I am using the tutorial from Adafruit.

Code:
sudo apt-get update
sudo apt-get install git

So, all is good so far.  next, I'm gonna check out the repository at Adafruit.

This part is pretty mindless, actually.  It's just typing in the code.  Or, if I use Putty to SSH into the RPi, I only have to copy/paste the code.

So, after a little bit of messing around to figure out why I couldn't SSH into the RPi, I discovered it was because I needed to log in as pi, not as raspberrypi, though Putty.  So, now that I am SSHed into the RPi, things will go much easier.  I don't have to type out all the code.  All I have to do is copy and paste.

This installs everything to drive the GPIO on the RPi.
sudo apt-get install python-rpi.gpio

Next, the code to install I2C, which allows one chip to talk to another.

So, bunch of different things put on the RPi now.  I have hooked up one of the sensors, (a DS18B20 Temperature sensor) and it is, right at this moment....23.625 degrees Celsius,  Finally, I've got this thing to do what I want.  that is gonna be it for today.  Tomorrow, I'm gonna try to get the script working so it will report the data continuously.  And also, get the other sensors up and running.


No comments:

Post a Comment