Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Raspberry Pi – mounting USB drive

Raspberry PI by default has only one memory available – SD card which also holds kernel itself. Unless you are using large SD, eventually you are going to run out of space -especially if you are dealing with media files or playing with camera module. The easiest and cheapest way of expanding memory is to us USB Flash drive. If you are accessing PI from terminal screen, then probably one of built in USB ports are free and you can attach drive directly to it, otherwise use USB HUB – better with external power option.

Continue reading

Raspberry Pi camera module

raspberry pi camera

Recently I’ve received a Raspberry pi camera board. So decided to make a post about it. Raspberry PI comes with two interesting connectors on board. One is between Ethernet and HDMI and another is near GPIO. The one closer to Ethernet connector is CSI (Camera Serial Interface) bus interface. This interface is common in mobile phones with cameras. This interface is specially designed for high data rates that is necessary for transferring pixel data. Camera board is a small size (25mm x 20mm x 9mm) board where fixed focus 5MP camera module (OV5647) is assembled. Camera connects to Raspberry Pi via 15cm ribbon cable. Camera module is capable of producing 1080p images at 30fps or 720p at 60 fps and 640x480p at 60/90 fps. Obviously such images and fps require high speed interface and processing. So CSI is connected directly go Raspberry Pi GPU which can process images without ARM intervention. This is why camera module is much better choice than USB camera which occupies main processor and slows down whole system. GPU processing also benefits with fast H264 video encoding and JPEG compression capabilities.

Continue reading

Building more complex commands using Raspberry Pi terminal

Probably this would be unwise to go through long list of available Unix commands. It is quite long and there is no reason to point out each of them here. You can take a look at some basic ones in following list. I thing it is more important to learn how to use them, get desired result by building more complex commands. Commands can also be combined in to single line using piping. In this case the output of one command becomes input of next one and so on. Lets go with few examples. We all know that Raspberry Pi comes with Python installed. So we should expect to find lots of .py files here: sudo find / -name *.py this throws us large list of file names:

Continue reading

Linux command structure

Previously we looked at simple terminal commands like ls, cd. We know that ls simply outputs all files in working directory. But in practice command without options and parameters is almost useless. In more complex situations you may need to list special files, or list files from specific directory without going to it. This is why UNIX commands are run with options and parameters command [options] [parameters] There can be more than one option and parameter for single command. For instance we used a cd .. command to go to previous directory. Dots .. are nothing more than parameters. Lets see what parameters we have with ls command. ls -l it displays list of files in long format. You can see that we get much more information by ading simple option -l. Lets say we want to display files in long format from different than working directory. Then we need to type in path to directory as parameter.

Continue reading

Diving in to Raspberry Pi shell

Raspberry Pi terminal commands

Computer users today are so attached to graphical interfaces. Sometimes it seems that people help computers to do the tasks. Can you imagine how many mouse clicks are required to do something simple? This is visible when the task is cyclic like “find, sort, delete.” Sometimes you find yourself just clicking the mouse and not seeing the result. What you would do half a day clicking the mouse can be performed with the single command line. The question is how to be that smart and feel like a fish in the water in front of the command prompt, shell, or bash – call it however you want. It is a system program that accepts typed commands from used and performs tasks. If you look deeper at almost any program with the graphical interface, you will see that it is only a nice skin that hides the same commands that run when the user clicks buttons. None graphical interface can cower all features of shell commands. So if you start dealing with Linux, then start being a friend to the terminal. Historically Unix computers even didn’t have a graphical interface, so all tasks were performed from the terminal screen. This is…

Continue reading

Getting used to Raspberry Pi

raspberry pi model b

It’s been quite some time since my Raspberry Pi Model B arrived. All I’ve done is tried to run several things, blink GPIO with examples found on the Internet, set up a desktop computer for my daughter with TuxPaint. I never was a big fan of Linux, on the desktop computer I always use Windows for my daily tasks. With cheap single-board computers like Raspberry Pi people looked at Linux with a different perspective. We can notice an increased interest in Linux, how to do this and this. Who works with Linux long time, it is just another computer where they can work with it and make cool things right away. But for us like me, it’s a good chance to get to know Linux better and learn a few tricks.

Continue reading

Facts about Raspberry Pi that make it popular

Raspberry Pi model B

Is there anyone who didn’t hear about Raspberry Pi? It’s like the second thing after Arduino. And this is the result of the right idea at the right time. Many Linux boards around that don’t cost a fortune, but they didn’t make it to the masses. And mainly, they were used by advanced users who know Linux well enough. Raspberry Pi pros Raspberry Pi changed things pretty drastically. And there are several key factors why:

Continue reading