Jump to content
 
  • entries
    7
  • comments
    6
  • views
    11,210

1. Basic set up


DavidB-AU

1,420 views

This is the first of hopefully a series of tutorials on using a Raspberry Pi to do what modellers often do with more mundane devices such as switches. :) These are aimed at the modeller rather than the serious hardcore programmer or electronics hobbyist, but does assume a basic knowledge of electronics and assumes you have already set up your RPi and installed the RPi.GPIO package. I won't go into that here - if you have any trouble see the Raspberry Pi or Adafruit forums.

 

Note that my RPi is running Raspbian (Debian Linux). This is not the only operating system available but I haven't looked at the others.

 

I have also attached the Adafruit GPIO breakout kit and breadboard sitting on a Pi Dish.

 

I connected one positive rail to 3.3V (pin 1), the other positive rail to 5V (pin 2) and the negative rails to 0V/GND (pin 6). This is not the only way to do things but I found it convenient.

 

blogentry-6959-0-72376200-1359206825.jpgblogentry-6959-0-38433800-1359206822.jpg

 

blogentry-6959-0-03941500-1359207444.png

  • Like 2

4 Comments


Recommended Comments

  • RMweb Gold

Interested in what you're doing here, and what advantages the Pi gives over switches.

 

Hopefully I can follow without too much confusion !

 

Stu

Link to comment

The advantages will become clear as the tutorials progress. These are the absolute basics to get people going.

 

One example might be interlocking, e.g. you can create a simple program which will not allow a signal to be set to exit a siding when the points are against the train. This is easier to do in software than in hard wired electronics.

 

Cheers

David

Link to comment

Excellent stuff. I've got an adafruit cobbler and a breakout board, so I'm looking forward tom getting stuck into your tutorials, David.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...