August 4th, 2015

scotto monkeypulse

Duncan pi system

Set up Duncan with a raspi. give him a custom login / password, butBoot to graphic desktop, skip login terminal.

Net ready, but hide browser? Set up for his home wifi - Ethernet isn’t likely an option.

Raspian OS should be fine.

Scratch - good start to code

Minecraft pi – probably primary use.

Access to python code examples – squirrels eat squirrels will probably be a hit. Tetris, too.

Give a pi2,  case, power supply, 8gb SD noobs (not bad, maybe $60 – Sean will be cool with that. I’m not going to charge him for my time.)

He has USB wifi dongle, keyboard, mouse and monitor.

Teach about proper shutdown procedures.  Don’t just unplug. Maybe give a button-power supply for on / off?

Maybe give Sean a copy of emulation station / retropie  , usb nintendo controller and some legit ROMS on another SD card for when Duncan is snoozing, too.

Yikes, I forgot about and

Originally published at The Scotto Grotto. You can comment here or there.

scotto monkeypulse

Setup – Mausberry Circuits


Connecting the switch to your Raspberry Pi 

For car switches: Car setup

For circuits without a button: Solder your own switch

Physical connections

On the switch PCB you will notice that the two leads are labeled “in” and “out.”Using the green diagram: Connect each lead to any GPIO-numbered pin (e.g. GPIO 17, GPIO 23, GPIO). Do not connect to a ground or power pin. GPIO 0 and 1 should be avoided as well. For Pi 2/A+/B+ GPIO click HEREThe script is setup by default for the “out” lead attached to GPIO 23 and the “in” lead attached to GPIO 24. If you would like to use different pins then simply change the pin in the script as explained at bottom of page.Connect your original Raspberry Pi power source/micro-USB cable into the micro-USB port on the switch.               For direct-plug circuits: Connect dircuit to Pi.

               For non-direct plug circuits: Connect another micro-USB cable from the circuit’s regular USB port to the power port of your Raspberry Pi.

Press the power button on the circuit and wait for your OS to boot.

Script setup

You can use either keyboard input or SSH to install the script for the switch

If you have a keyboard connected to your Pi then you can type the instructions listed below into the command line and there is no need to use SSH. The Pi must have internet access during installation (but not needed after) for setup. To access command line in RaspBMC, go to the power icon and then select exit and hit the ESC key when the blue screen shows up.

For SSH, recommend using Putty ( or WinSCP (, both free.

To SSH into your Pi, find the Pi’s IP address provided by your router and enter it in the SSH client (use port 22). Common log-ins are:

RaspBMC/Raspbianuser: pi                      password: raspberryOpenELECuser: root                  password: openelecXbianuser: root                  password: raspberryArchuser: root                  password: root

Installing the script

For RaspBMC/Raspbian/Debian distributions (Xbian as well, omit the word sudo), type the following and hit enter after each line:

1. sudo wget

2. sudo bash

3. sudo reboot

For OpenELEC:

1. wget

2. bash

3. reboot

For Arch:

1. wget

2. bash

3. reboot

After the Raspberry Pi has fully rebooted, your switch is now ready for use!


To use a different GPIO pin:


1. sudo nano /etc/


1. nano /storage/.config/


1. nano /etc/

At the top of the script you can change “GPIOpin1=23″ and “GPIOpin2=24″ to the pins of your choice as numbered in the header diagram above.

The white button on the rocker-switch circuits is a reset button – if for some reason the switch is not functioning as it should, put the rocker switch in the “off” position and press the reset button.

You can perform a hard-reset with the LED switch by holding for 5 seconds.

Please power down the Raspberry Pi prior to doing this (via SSH/remote/keyboard/mouse) as it will perform a hard reset if the Pi is still on.


Originally published at The Scotto Grotto. You can comment here or there.