Using Raspberry Pi 3 to allow Pepper Robot to connect to WPA2 Enterprise Network…

Raspberry Pi
This procedure allows you to create a router/AP using a Pi3 that connects to a WPA2 Enterprise network over it's external wireless interface (wlan1) and allows clients to connect through it's wired ethernet (eth0) and internal wireless ethernet (wlan0) to access the internet through the NAT interface. So here are the requirements: Pepper Robot has wireless and wired connections. Wireless connections can be made to AP's using WPA2/PSK (Pre-shared Keys) networks. Wired connections are standard and can be configured with DHCP (plugin to the bot's head). In our scenario we can not use the built in wireless functionality since our campus wide wireless network uses WPA2/Enterprise system (ie you need to supply login credentials, not a pre-shared key). So we opt to use the wired connection The developer needs to…
Read More

Latest Raspbian (2017-07-05-raspbian-jessie) dd: /dev/rdiskX: Invalid argument on OSX and other potential issues with “apt-get” post install

OSX, Raspberry Pi, Tip
So this morning I was trying to install the latest rasbian image onto an uSD card and was getting a strange error when I issued dd. I was using rdisk (BSD raw disk) device to speed up the image writing process (note: I don't think you get this error if you just use /dev/diskX). The dd process would finish and this error would come up:   dd: /dev/rdisk6: Invalid argument 4445+1 records in 4445+0 records out 4660920320 bytes transferred in 133.242184 secs (34980816 bytes/sec) At first I ignored the error and proceeded to boot the Pi, but as soon as I did apt-get update; apt-get upgrade, I would get dpkg errors like: dpkg: unrecoverable fatal error, aborting: files list file for package 'qdbus' is missing final newline E: Sub-process /usr/bin/dpkg…
Read More

Getting the most out of plymouth or how to make raspbian jessie boot with a full splash screen

Raspberry Pi
Assuming you want the fancy splash screen (ie you want to hide the ugly boot messages), add "quiet splash logo.nologo plymouth.ignore-serial-consoles" to the end of the single line in /boot/cmdline.txt file. This enables the splash screen. Now you need to choose one (I like spinfinity), so issue the following command to switch from default (bland grey screen): sudo plymouth-set-default-theme spinfinity There are other themes as well (some don't seem to work properly for me. To find out what's installed and use it in the above command issue: sudo plymouth-set-default-theme -l You might notice that there is a black border on your splash screen. Overscan problem, so disable it by adding (uncommenting) this line to /boot/cmdline.txt disable_overscan=1 To disable console from blanking out add "consoleblank=0" to the end of the single line…
Read More

Designing a six channel 24/7 streaming video player for digital signage

Raspberry Pi
So here are the design goals: Provide atleast 6 channels of streaming video. Allow "hot" switching between streams using a remote control. Allow network to fail and be able to have the stream automatically recover. Allow the Pi to autostart on a particular stream when powered. Be flexible enough to potentially provide more than 6 channels of streaming video. System will be hosted on a read-only Micro-SD card to lessen the chance of long term SD corruption. Here are the assumptions: System is based on Raspberry Pi 2 B+ as a minimum (old Pi 1 and Pi zero have not been tested, but should work). System uses HDMI audio and or analogue audio out from Pi's 3.5mm jack. System is limited to 720p and 1080p output. System has been tested…
Read More

IRadio = Raspberry Pi + Adafruit PiTFT (with buttons) + MPD + NCMPCPP + Bluetooth BeatsPill Speaker + Custom Frame Buffer Pygame code

Apache, audio, Bluetooth, Codec, Electronics, flac, LCD, Linux, Music, Opensource, Raspberry Pi, Tutorial
So over christmas holidays I spent about 5 days to perfect my raspberry pi based internet radio player. You’ll need the following hardware: Raspberry Pi model B USB Wifi dongle (something that works with Raspbian would be nice). I got this one (http://www.adafruit.com/products/1030) from Adafruit. SD card (I’m using a 16GB card, but I think 8GB should be good to start with) Bluetooth 4.0 dongle. I’m using this one from ASUS (http://www.asus.com/ca-en/Networking/USBBT400/) that seems to work fine in Linux/Raspbian PiTFT resistive touch screen assembled from Adafruit (http://www.adafruit.com/products/1601) Pack of 20 tactile buttons from Adafruit (http://www.adafruit.com/products/1489) for the above screen (You need to solder these in…..very simple) Appropriate power USB power supply. Again I’m using the one from Adafruit (http://www.adafruit.com/products/501) Standard A to micro-B USB cable (http://www.adafruit.com/products/592) (optional) PiTFT Enclosure from…
Read More

Notes on getting the most out of Screenly OSE for Raspberry Pi

Raspberry Pi
For those that are not familiar, Screenly is a Digital Signage System for the Pi. There is a open source edition of it (OSE) that you can just download and install on your own SD card. I've been messing around with it for the past few days and it's surprisingly simple and powerful. Below are some notes on how to fix various annoyances: ON 1080p SCREENS ONLY!! Normally when you use the web browser portion of Screenly you'll notice that it does not fill the screen (there is a black border around the screen). The video's play fine though. For some reason on 1920x1080 screen X windows does not detect the right resolution. To force this you need to modify/uncomment the following lines in config.txt file on the dos partition…
Read More

Streaming 1080P video using Raspberry Pi (or BeagleBone Black)

Apache, BeagleBone Black, C920, CLI, DIY, embedded OS, Linux, Opensource, Raspberry Pi, Streaming, Tutorial, Video
I've finally got this project to a point were I can do a write up on it. The following hardware is needed: Raspberry Pi 512K version (or BeagleBone Black) Logitech C920 Webcam 16 GB micro SDHC card (can probably do it on 8GB too) Wireless dongle supported by linux (I'm using a TrendNet TEW-645UB which was pretty much plug and play) The goal of this project is to get the following installed and configured: CRTMP streaming server C920 install and config (v4l2), ffmpeg installation, boneCV installation from Derek Molloy's site configuring ddclient for dynamic DNS (optional) putting it all together and creating a webpage with embedded JWplayer to view the stream UPDATE: Sound works now on BeagleBone Black. On Raspberry you will run into alsa buffer xruns. See below for…
Read More