sâmbătă, februarie 14, 2015

Life of RaspberryPI. Hello World!

Hi everyone,

So far I have only been using microcontrollers in my projects. They were doing fine the tasks they were supposed to (usually one), but had their limitations such as low clock speed (20MHz) and more important, it was extremely hard to implement a real time operating system and to run parallel tasks.

A RaspberryPI microcomputer is a tiny board that offers both the performances of a real computer and the features of a microcontroller: IO pins, small dimensions and programmability.

RaspberryPI B+

I bought this from a local store in Bucharest and I was so excited that this little toy will run Linux for me!

They recommend us all to use the NOOBS installer. But if you don't have a monitor available, it's an impossible mission to have it running. So what I will show you next, is how to run the RaspberryPI headless (no monitor, no keyboard, no mouse).

Run headless RaspberryPI

RaspberryPI boots from a microSD card. To install an operating system on it, you have to download the latest Raspbian image: via torrent or direct link.
Unzip it and you will obtain a .img file, such as: 2015-01-31-raspbian.img

Download Win32 Disk Image, install it and Write the image to a microSD card (4GB or above).
Make sure you select the right device. Check My Computer for your microSD letter assigned.

Once the process completes, edit the file cmdline.txt located on the microSD card and assign an IP to your RaspberryPI:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait ip=169.254.1.1

You can eject the microSD card from your computer and plug it into your RaspberryPI.

Now, connect a LAN cable between the RaspberryPI RJ-45 port to your laptop's RJ-45 port.
Power on the device via microUSB port. You should see the LEDs flickering.



You can now connect to your Raspberry PI using Putty.
Just type in the IP you set above and click on open:

You will be asked for your credentials:
login as: pi
pi@169.254.1.1's password: raspberry


Now you can administer the PI as you want! Have fun!

0 comentarii:

Trimiteți un comentariu