Raspberry Pi tricks for exhibitions

I wanted to use Raspberry Pi’s to show a few .mp4 films, especially on old televisions & analog screens

Here’s a list of tips and tricks:

– Default (a reminder): login = pi, password = raspberry

– sudo just works – no password –> you need it to halt & to reboot (and lots more, of course)

– I installed the system with Noobs, the easy way to install Raspbian.
This did force hdmi to be default screen output. The analog video out just stayed dormant.
–> So I edited the config file:
$ sudo nano /boot/config.txt
Scroll down to the bottom and hash/comment out (add a #) the bottom part, added by Noobs, with regard to hdmi.

– To play the video’s, use omxplayer –> it is a mediaplayer adapted to the Raspberry Pi (semiclosed) Hardware.

– The omxplayer controls do not have man pages in my version of Raspbian. Here you can find them online.

– The omxplayer -b –loop did not work for my video’s
So, with some help some time later, here’s a little bash script that you can run in the terminal (even without startx).

#!/bin/bash
while true
do
omxplayer lala.mp4
done

–> call it omxplayer4ever.sh and launch it with
$ bash omxplayer4ever.sh

The script needs to be in the same folder your film is.
You do still see the terminal lurking behind the video..

IMAG1099

In the meantime I have found this excellent post by Julien Deswaef, right on topic!

Thanks ;-)

– Taking Julien’s advice on hiding the terminal
–> add setterm -blank 1 to your /etc/rc.local file

$sudo nano /etc/rc.local

Write it before the line exit 0, keeping that command at the end, then save the file and exit.
What you are doing here is hiding the terminal after 1 minute of inactivity. Just nudging a key on your keyboard revives it. If you add something/instructions/a command in the /etc/rc.local file, it launches it at start-up.

– to stop the video’s from playing -> do ctrl+c a few times quickly

Posted in About a website, Hardware, Software | Tagged | Leave a comment

DD killed my partition table – Raspberry Pi woe’s

This post is a small mental note – a solution for a problem.
For the third time I have killed an sd card by using the command dd.
(they say something about donkeys – ezels in Dutch)

You use dd to copy – but it can destroy without mercy.
I followed the instructions on how to put Raspbian on Pi and I managed to ruin my empty sd cards..

I wiped off their partition table – gparted did not want to make a new one.
Luckily this detailed post on repairing your partition table revived the cards!

https://bbs.archlinux.org/viewtopic.php?id=115769

Posted in Broken, Hack, Software | Leave a comment

eTextile Summercamp

title_4From July 27th to August 2nd in Poncé sur le Loir, Claire Williams and I participated in the eTextile Summercamp.

Along the week there were workshops and some talks – the reports & tutorials are still growing – including the recipes of the delicous food at Paillard:
Screen printing circuits
Energy Harvesting

And lots more here..

Driving back to Brussels we ran into very dramatic weather, very low visibility, driving 40km/h on the motorway for half an hour.

IMAG1045

This was, alas, a symptom for August to come..
To deal with our August-post-summercamp-too-much-rain blues, we decided to make some Stuffed Vine Leaves, according to the recipe of Ebru.

Locally found ingredients (Brussels):

ingredients

Drum Roll::DSC_2672

DSC_2674

Low and behold, clouds retreated – the dolmades were lovely..

So, this is a little blog post to all – to say Thanks! Wow! It was great! Wonderful! More! Bis! & to share some info in general..

RandomInformationAlertRandomInformationAlertRandomInformationAlertRandomInformationAlertRandomInformationAlertRandomInformationAlertRandomInformationAlertRandomInformationAlertRandomInformationAlert

I just ran into this great word in German – if you are familiar with the concept of Schnaps:
Schnapsidee
Etextile summer camp.. Kein Schnapsidee..

EndOfRandomInformationAlertEndOfRandomInformationAlertEndOfRandomInformationAlertEndOfRandomInformationAlertEndOfRandomInformationAlertEndOfRandomInformationAlertEndOfRandomInformationAlertEndOfRandomInformationAlertAndCheesyJokes

Posted in About a website, Open Hardware, Softwearables, Workshop | Leave a comment

Three-part WIRED series on the net neutrality debate

Here’s already part 1 and part 2.

Posted in About a website, Micromessage | Tagged | Leave a comment

Software & Open Hardware – reprogramming MakeyMakey on Linux

Often in Open Hardware projects you have a direct link with software. Depending on the project, the connected software is more or less multiplatform. The more “public friendly’ your open hardware project, apparently the harder it becomes to get support for Linux. Or your project is so specific, it runs only on particular systems, under specific conditions.

I have run into the barrier of obscure/non-existing Linux support a couple of times recently (Adafruit Flora for example – an Arduino based eTextile microcontroller).
Does being a Linux user imply a certain tech savviness? (is this a rhetorical question?)

Same goes for Makey Makey, an relatively easy to use microcontroller.

That’s where little treasures of shared knowledge pop up in blogs and fora.
If you want to re-programme a MakeyMakey: here’s a nice combination of a forum, a manual and a blogpost.

Perhaps, wandering about on the www via search engines, someone can find this post, to then find…

Posted in About a website, Hack, Hardware, Open Hardware, Software | Tagged | Leave a comment

APT – TAFTA – TTIP – YNP (formally known as ACTA)

Bilingual (English and French) webcomic on the new acronym formally known as Acta http://treatthetreaty.org/en?v=1

Posted in About a website, Micromessage | Leave a comment

Acta becomes TTIP

And protestors are getting blasted by water cannons..
Via BoingBoing

TTIP protest
Website on TTIP

Posted in Micromessage | Leave a comment

The Metropolitan Museum of Art Releases 400,000 Images Online for Non-Commercial Use

A small article and some fabulous images here


Julia Jackson by Julia Margaret Cameron

Posted in About a website, Micromessage | Leave a comment

Public Domain Review new website

* microblog*

Public Domain review has a new website full of treasures..

Founded in 2011, The Public Domain Review is an online journal and not-for-profit project dedicated to promoting and celebrating the public domain in all its richness and variety.
All works eventually fall out of copyright – from classics works of art to absentminded doodles – and in doing so they enter the public domain, a vast commons of material that everyone is free to enjoy, share and build upon without restriction. Our aim is to help our readers explore this rich terrain – like a small exhibition gallery at the entrance to an immense network of archives and storage rooms that lie beyond.

With a focus on the surprising, the strange, and the beautiful, we hope to provide an ever-growing cabinet of curiosities for the digital age, a kind of hyperlinked Wunderkammer – an archive of materials which truly celebrates the breadth and variety of our shared cultural commons and the minds that have made it.

Posted in About a website | Tagged | Leave a comment

RGB Colour LCD Screen

How to make a narrative on an LCD screen:

-> the colours have to change
-> you have two times 16 characters
-> every time you print a text on the screen, it has to be reset to it’s initial position

Here’s a video of the first narrative I made for the “Big Fat Failed Beginnings” performance for the Belluard Bollwerk Festival.

My code for the Arduino & the screen worked, but it was not very elegant, so I asked for some help on the Belgian hackerspaces “universal knowledge list”. I added some functions.
Thanks everyone!

#include

// Create a software serial port!
SoftwareSerial lcd = SoftwareSerial(0,2);

// Create a function to easily determine colour
// To determine colour, use: setColour(&lcd, 1, 1, 255)
void setColour(SoftwareSerial* lcd, char r, char g, char b) {
lcd->write(0xFE);
lcd->write(0xD0);
lcd->write(r);
lcd->write(g);
lcd->write(b);
delay(10);
}

// Elegantly clear screen
// Use setClear
void setClear(){
lcd.write(0xFE);
lcd.write(0x58);
delay(10);
}

// go ‘home’
// Use setHome
void setHome(){
lcd.write(0xFE);
lcd.write(0x48);
delay(10);
}

void setup() {
lcd.begin(9600);

// set the size of the display if it isn’t 16×2 (you only have to do this once)
lcd.write(0xFE);
lcd.write(0xD1);
lcd.write(16); // 16 columns
lcd.write(2); // 2 rows
delay(10);
// we suggest putting delays after each command to make sure the data
// is sent and the LCD is updated.

// set the contrast, 200 is a good place to start, adjust as desired
lcd.write(0xFE);
lcd.write(0x50);
lcd.write(200);
delay(10);

// set the brightness – we’ll max it (255 is max brightness)
lcd.write(0xFE);
lcd.write(0x99);
lcd.write(255);
delay(10);

// turn off cursors
lcd.write(0xFE);
lcd.write(0x4B);
lcd.write(0xFE);
lcd.write(0x54);

// clear screen
setClear();

// go ‘home’
setHome();

}

void loop() {

// adjust colors and define RGB values
// Colour as neutral as possible
setColour(&lcd, 255, 220, 200);

lcd.println(“When does an”); //println gives new line for the next sentence
lcd.print(“incident “);
delay(3000);
setClear();
setHome();

lcd.println(“become”); //println gives new line for the next sentence
lcd.print(“a disaster?”);
delay(3000);
setClear();
setHome();

lcd.println(“It’s a question”); //println gives new line for the next sentence
lcd.print(” of scale.”);
delay(3000);
setClear();
setHome();

lcd.println(“**INCIDENT”); //println gives new line for the next sentence
lcd.print(” OCCURS**”);
delay(3000);
setClear();
setHome();

// adjust colors and define RGB values
// Colour Blue
setColour(&lcd, 1, 1, 255);
lcd.println(“The BLUE LIGHTS”); //println gives new line for the next sentence
lcd.print(” come in.”);//Text written in colour
delay(3000);
setClear();
setHome();

lcd.print(“Police-Ambulance”); //println gives new line for the next sentence
lcd.print(” Firebrigade”);//Text written in colour
delay(3000);
setClear();
setHome();

lcd.println(“They judge, act”); //println gives new line for the next sentence
lcd.print(” communicate”);
delay(3000);
setClear();
setHome();

lcd.println(“When they need”); //println gives new line for the next sentence
lcd.print(“extra force”);
delay(3000);
setClear();
setHome();

// adjust colors and define RGB values
// Colour orange

setColour(&lcd, 255, 20, 1);
lcd.println(“CODE ORANGE”); //println gives new line for the next sentence
lcd.print(” is activated”);
delay(3000);
setClear();
setHome();

lcd.print(“Civil Protection”); //println gives new line for the next sentence
lcd.print(” “);
delay(3000);
setClear();
setHome();

lcd.println(“and Technical”); //println gives new line for the next sentence
lcd.print(“Services”);
delay(3000);
setClear();
setHome();

lcd.println(“join the”); //println gives new line for the next sentence
lcd.print(“Blue Lights”);
delay(3500);
setClear();
setHome();

lcd.println(“In case of a “); //println gives new line for the next sentence
lcd.print(“MAJOR DISTASTER”);
delay(3500);
setClear();
setHome();

// adjust colors and define RGB values
// Colour RED

setColour(&lcd, 255, 1, 1);
lcd.println(” CODE RED”); //println gives new line for the next sentence
lcd.print(” is triggered”);
delay(3500);
setClear();
setHome();

lcd.println(“If necessary”); //println gives new line for the next sentence
lcd.print(“the army comes”);
delay(3500);
setClear();
setHome();

lcd.println(“For every”); //println gives new line for the next sentence
lcd.print(“catastrophy,”);
delay(3500);
setClear();
setHome();

lcd.println(“plans have been”); //println gives new line for the next sentence
lcd.print(“made..”);
delay(4000);
setClear();
setHome();

lcd.println(” “); //println gives new line for the next sentence
lcd.print(” “);
delay(3000);
setClear();
setHome();

}

Posted in Hardware, Open Hardware, Software | Tagged , , , | Leave a comment