Skip navigation

I wanted to use my new Pi2 as a "random picture display", but I didn't want to install the "media center"
I was very frustrated with using python and the pygame "resources" (whatever they call it)
Ultimately, I decided to try a different approach; html with javascript!

Here's the html/javascript solution, which works perfectly!

copy everything below!  and have fun!!



// this is a "random picture display" javascript
// you open it with your browser and the browser does all the work
// well, aside from your having to put the image informtion in
// I will the datadable on my windows machine, using a visual basic program that i wrote
// hope this works for you as well as it does for me!

// I'm running it on a Raspberyy Pi 2, with the standard installation (not the media install)
// the display is set to portrait orientation on the Pi in the config file
// by using sudo nano boot/config.txt
// adding the line
// display_rotate=3
// which results in a clock wise 270 degree screen rotation

// if you added instead
// display_rotate=1
// it would result in a clock wise90 degree screen rotation


<form id="newwindow" name="newwindow">

<title>Awesome Images</title>
<meta http-equiv="Content-Type"  content="text/html; charset=iso-8859-1">

<body bgcolor="#000000" text="#000000">


<table width="100%" height="97%" border="0">


<p align="center" valign="center">
<img name="SlideC">








<script language="JavaScript1.2" >

var newimg;
var wid;
var hit;
var currentdate = 0;
var theranlink = " ";
var core = 0;
var created = 0;
var imgstrt = 0;
var imgstp = 0;
var imgcnt = 0;
var imgary = 0;
var chk = 0;
var hrat = 0;
var wrat = 0;
var intvl=15000;

// maxwid is the width of your Pi's display in pixels
// maxhit is the heigth of your Pi's display in pixels
// this is set up for a monitor rotated to a Portrait orientation
var maxwid=728;
var maxhit=1266;
// if you wanted a landscape orientation you would comment the two line above (use leading //)
// and uncomment the two lines below
//var maxwid=1266;
//var maxhit=728;


// picpath points to the "root directory" of your images
// this way you can copy this file to your desktop once filled with the picture array
var picpath="/media/pi/Transcend/pics/";



g_iimg = 0;
g_imax = 0;
g_ImageTable = new Array();

var time = new Date().getTime();

function ChangeImage(fFwd)

function Update()

//centimg=picpath + g_ImageTable[g_iimg][0];


function Next()

function main()
if(new Date().getTime() - time >= intvl){




function newWindow2(newimg)

if (hrat>1){
if (wrat>1){

if (chk=1){
if (hrat>wrat) {


} else {




// ********************************************************** insert data table here ***********************************************************************************
// the data table must follow this format, and the quotation marks must remain
// g_ImageTable[g_imax++] = new Array ("imge name","image width in pixels","image heigth in pixels");
// an example of the array where it is used directly iin the directoy is below
// g_ImageTable[g_imax++] = new Array ("flower.jpg","768","1024");

// if you have multiple directories under the root that you want it to access then the array is this format
// g_ImageTable[g_imax++] = new Array ("directory name/image name","image width in pixels","image heigth in pixels");
// an example of the array where it is used from a root directoy is below
// g_ImageTable[g_imax++] = new Array ("garden_pictures/flower.jpg","768","1024");




//******************************************** end of data table *************************************btw, it is unlimited in the number of images you can insert bove





// dely makes a 0 to 20 second pause

// the variable dely above is added to a "standard delay" of 20 seconds
// this yields a variable refresh time of 20 to 40 seconds


//do not add anything below this line
setInterval(main, intvl);




A functional setup for a US $100 and half a day’s investment.


I am the co-founder of a startup that is essentially a podcast production company, and so far, I was using a 9 year old Dell Latitude D520 laptop running on Linux as our workhorse. I used it for recording, basic editing, etc. for the podcasts that I host or co-host (three shows and counting). Half of the episodes are edited by a professional editor, I edited the rest because I wanted to learn the process. (There are some reasons behind that, D-I-Y is not one of them). Given the hardware limitations of the laptop, it was time to give the recording setup an upgrade.

On May 3rd, we reached a milestone- episode Number 50 of MyKitaab Podcast, a podcast on book publishing in India. To mark this occasion, my wife and I thought of getting a Macbook Pro, or even a Lenovo Thinkpad with similar specs. But I was not really in favor of spending too much on setting up the recording studio just yet, for two reasons. First of all, we are moving to a new apartment end of May, and I have plans to set up a dedicated space for recordings. Secondly, I wanted to keep the costs low, till the business was able to support the cost of a new computer. When my wife asked how much would an equipment upgrade cost, I jokingly told her 10,000 Rupees or about $ 140. She refused to believe me. I obviously took up the challenge.

Two weeks later, this is what I came up with. I researched online, and also talked to my uncle- he is the tech Guru in the family. My uncle learnt programming at the age of 60 after spending 35 years in Oil and Gas. His recommendation based on our requirements: get a Raspberry Pi3.



All set to start podcasting on a $ 100 setup

Lets’ look at the Time and Cost for the Entire Setup

New purchases:
A Raspberry Pi3,
A case for the Pi
HDMI to VGA cable for connecting to the monitor
USB Keyboard and cables
16 GB USB card

Re-use existing hardware:
ATR USB Microphone, pop filter
DELL monitor that is 8 years old

Total Cost — Approx. $ 95 (converting 1 U S Dollar = 67 Indian Rupees)

Total Setup Time- 6 hours. This was longer than anticipated because of a “chewing incident” mentioned below. (If you get a Micro SD card with a pre-installed operating system, you can be up and running in 1 hour or less)

Learning from the experience — Priceless

I also would like to mention that our dog Buddy chewed up the case for the computer, once the initial setup was ready. He also dropped it from our workdesk. Height: 3 feet above floor. And yet, the system survived. Note the bite marks on the plastic case.



Case for Raspberry Pi with by dog Buddy’s bite marks

I am also adding a link to an audio sample that I recorded using audacity, and the only editing done is noise removal: we have a fan running in the background. Link to audio

For those who think that this is a geeky setup, rest assured,all I did was to follow the instructions found online.

a.Once we get the USB Keyboard, the clutter of cables will reduce a bit.
b. At this time, I am still figuring out whether it can be a “Production grade” system or not. Recording and editing works great, Web browsing (including Facebook) is a little slow. Not 100% convinced that audacity can be used for recording just yet. Editing- yes, recording- maybe.
c. The setup works very well on a flatscreen TV as well. Once we move to our new home, our 50" TV will become the monitor for our system. Since we hardly watch TV anymore, thought of putting the screen to use.
d. Skype does not work (atleast yet), but Zencastr, Google Hangouts, do- so I am all set for now.

You can visit to listen to the latest episodes that I have recorded and edited using this setup.

To Wrap up:

I am quite impressed by the functionality of the Pi3 setup, I am planning to see if we can push the enveolpe further with it. More on that in a follow up post.

Hi everyone,


So, I'm a cheapskate/poor student with more ideas than resources, and no formation in electronics whatsoever.


The main idea is to have a laptop which is small, cheap and fitted to take notes and give presentations. With a huge autonomy (6-8 hours)


To do so, I'll use:


Raspberry Pi 3

7" Touchscreen Display

Driver board RA8875

Macbook keyboard (slim and I like the layout)

Battery(-ies)??? + Powerboost 1,000 charger


Dimensions (I focus on the hardware, so the sizes are approximations):

It should be pocket size, so the 7" display will be the general size of it, more or less 165x102mm. Hence, the keyboard (which I want to be "normal" size, it's impossible to take efficiently notes for 6 hours with a mini-keyboard) should be cut in two parts.

Folded, it will be more or less 35mm:

5 mm for the display

5 mm for the keyboard (folded: 10 mm)

20 mm for the bottom (whut? The raspberry is 21 mm dumbass. Yep, but I will remove some useless part like the CPU the Ethernet connection, replace the two-high USB by simple USB plugs)


Here's the basic representation of it:


To close it, the right part of the keyboard falls on the left part, then the screen lowers on everything (as any laptop)

First problem: can I cut a keyboard as such and remake the connections so the right keys actually work?


The second problem is toward the keyboard itself. I know from this video that it's working, but I have no idea how to connect it to the raspberry.


The last problem is the autonomy. With a 2,500 mAh battery, this configuration will last less than 2 hours, and I want 6 hours, so more or less 7,500 mAh (10,00 will be a good dream) and keep it slim... So, LiPos?

Is there anyway to plug 4 of them in parallel (exactly the same model 2,500 mAh from Adafruit), connect all of it (with a power distribution bus???) to the powerboost and avoid any explosions or damages?


Or does it make more sens to buy a tablet battery (like this) and use it safely (with the powerboost?)?


The bottom part will have a 8° angle (logitech keyboards have this angle and I find it perfect to write), meaning the top will be larger than the bottom, so I guess I could put 6 lithium ion batteries by salvaging this 6,6k mAh and this 4,6k and put them together? Or perhaps even better to salvage the official powerbank?


Or are you dead of laughing because I don't make any sens

Screenshot (28).png

To summarize in simple questions:

- how can I connect a laptop keyboard to the raspberry?

- Can I cut a keyboard in two pieces?

- how can I provide 7k-10k mAh in the slimiest fashion?


I will keep you update on my project, hope you will enjoy my misadventures!


Thank you!


Arcade Retropie Ikea Lack

Posted by accel79 May 26, 2016



     Solo tengo unas semanas experimentando con el Raspberry y me ha ido hasta ahora bien.

Comparto con ustedes mi primer pequeño proyecto.


  • Raspberry Pi 3
  • 2x Easyget LED Arcade DIY Parts Zero Delay USB Encoder
  • Mesa Ikea Lack
  • Powered USB Hub



Dentro de unas semanas intentare crear un Volumio para tocar archivos de audio FLAC desde el NAS.



Filter Blog

By date: By tag: