Raspberry Pi

How to burn an image to an SD card for Raspberry Pi

Short and sweet.  This takes quite a while but gets the job done.  If you’re using a new SD card, you can skip the zeroing step.

You can use these instructions to burn Raspian or any other operatying system in order to boot your Raspberry Pi.

How to write Raspberry Pi image to SD card

By admin on November 22, 2017 | Raspberry Pi

Alexa – Raspberry Pi Project

Yep, I broke down and bought my wife an Amazon Fire tablet for her birthday with a built in hands free Alexa app, and I have to admit, I kind of like it myself. In fact, as I continue to study it, I now want one for myself. Not the tablet so much, but the app. So much so that I’ve decided to build my own from one of my Raspberry Pis I have in my home office.

To create my hands-free Alexa, I’m using the instructions I found here:
https://github.com/alexa/alexa-avs-sample-app/wiki/Raspberry-Pi

I haven’t quite finished yet, since I’m currently using the Pi to spy on my cats to see which one has been using the corner of my bedroom as litter box and I need a monitor to continue. (currently running it headless via ssh).

To make sure I don’t lose my place, I’m at this stage of the game:

Step 7: Run your web service, sample app and wake word engine

By admin on | Alexa, Raspberry Pi

How to configure a Raspberry Pi with a Static IP

sudo nano /etc/dhcpcd.conf

Scroll to the bottom of the file and add the following lines:

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname

#Remove these and reboot to return to dynamic IP
interface eth0
static ip_address=192.168.11.101/24
static routers=192.168.11.1
static domain_name_servers=192.168.1.1

Save the file: Ctrl+O, then Enter
Exit the nano editor: Ctrl+X
Reboot the computer

sudo reboot

Notes:
The subnet mask is written in CIDR notation at the end of the static IP address.
‘static routers=’ is the default gateway
‘static domain_name_servers=’ can be followed by multiple IP addresses, with each address separated from the previous by a single space ‘ ‘.

By admin on January 19, 2017 | Raspberry Pi | A comment?

Raspberry Pi dropping WiFi when ethernet plugged in

I do love my Raspberry Pi! That’s Pi, as in very small computer, not pie as in desert. (I’m diabetic, so please don’t tempt me.) I use these little devices for all kinds of projects.

I’ve recently started using them to test an internal network with a series of routers, with each Pi on a different network. (192.168.11.0/24, 192.168.22.0/24… you get the picture.) To test these, I set static IP addressed on the ethernet connections and then access them with ssh via their dynamic WiFi IPs.

To configure the devices, I would first log in using ssh to the wlan0 interface, configure /etc/network/interfaces with the desired static IP, then plug in the ethernet cable. The problem with this was that as soon as I plugged in the cable, my WiFi connection would drop, causing me to lose all contact with the Pi.

#sudo ifplugd eth0 --kill
By admin on January 13, 2017 | Raspberry Pi | A comment?