Showing posts with label Raspberry pi. Show all posts
Showing posts with label Raspberry pi. Show all posts

Monday, April 1, 2013

Raspberry Pi power consumption - Three month after


The first quarter of the power consumption survey of my Raspberry Pi is completed:

April 1, total consumption measured from the beginning of the year is 5.3 kWh. This confirms an average consumption of 1.8 kWh per month of non-stop operation.


crédit photo: By Fir0002 (Own work) [GFDL 1.2 (http://www.gnu.org/licenses/old-licenses/fdl-1.2.html)], via Wikimedia Commons

Thursday, January 31, 2013

Raspberry Pi power consumption - One month after


Here is the end of January  As promised, I'll do a checkpoint about my Raspberry pi power consumption.

My consometer measured a total power consumption of 1,8 kWh, this is absolutely very low.

I'll do another measure in two month for confirmation.




Crédit photo: M. G. Loppé [Public domain], via Wikimedia Commons

Sunday, January 6, 2013

Raspberry Pi power consumption - One week after

Here is a first checkpoint about the power consumption of my Raspberry Pi.
Today, after one week of measuring my powermeter announces a total consumption of 0.4 kWh.
Given the low power consumption and the poor accuracy of the tool, I'll do the next measure at the end of the month.




Credit photo: Thomas Bresson (originally posted to Flickr as Eclair) [CC-BY-2.0 (http://creativecommons.org/licenses/by/2.0)], via Wikimedia Commons





Tuesday, January 1, 2013

Raspberry Pi power consumption

To start the new year, I decided to look at the power consumption of the project.

I found a power meter in my stuffs, which is probably not very accurate, but should allow me to give an idea of what consumes and costs my Raspberry Pi. I want to take into account the conversion from 240 Volts to 5 Volts.
My power meter is the MPM 50 model of brand IDK.

Due to the low consumption of Rasperry Pi, it is possible that the power meter consumption is significant. According to the manual it consumes less than 2 watts.

The experiment just started, so I have didn't accumulated cumulative consumption yet, but here are the first informations on the instantaneous data given by the device:
237 Volts
0,02 Ampères
2,5 Watts

For your information, the regulated tariff for electricity from EDF (Electricité de France) is € 0.0812 per kWh excluding taxes and € 0.1249 per kWh including taxes.

I'll try to give regular updates on measured consumption.

Tuesday, December 18, 2012

Looking for a good power adapter


As my server works 24/7, I spent a bit of time to find a good power supply for my Raspberry Pi

Recommendations for the Raspberry Pi are to use an 5V 700mA USB power adapter .

So I checked my stuff for what USB chargers I already had. I found several alimentions 500mA and 1000mA. They all work with my Raspberry Pi, but I feel these alimentations become too hot after a long usage.

So I started looking for a bit more powerful adapter, thinking that an over-sized power adapter should help to reduce heating and improve the life of the power adapter and of the Rasperry Pi

I found several chargers over 2000mA on the Internet, some with two USB ports, like this one, brand Bluestork:

Others with 1 USB port, like this one, brand Re-volt:


I have a preference for a model with one USB port, as some 2000mA models with 2 USB ports are in fact 2 x 1000mA

But ultimately, I chose this one, brand Apple:
€ 19.99 is a bit expensive for a power adapter, but it fits in the budget of the project. I found it in a local shop and I therefore saved shipping cost. In addition, the brand is well known, and I think I can benefit from the guarantee in case of problems.

After 2 days of usage, I feel this one a bit less hot than my older one.

Impact on the project: -19.90€

Monday, December 3, 2012

How to control the Raspberry Pi from Windows: Tight Vnc

TightVNC Home If the SSH console is not enough user friendly for you and if you want to remote control your Raspeberry Pi using a graphical user interface, VNC may be an good solution.

Install TightVNCServer
http://www.tightvnc.com/

TightVNCServer is a free and lightweight remote control software compatible with standard VNC software
The command to install it is:
"sudo apt-get install tightvncserver"

Start VNC server
To start the VNC Server from the Linux System, you have to execute this command:
"tightvncserver"

The system will ask you for a password (at least 6 caracters)

"You will require a password to access your desktops.

Password:
Verify:"


After that the software will ask you for an view-only password.
"Would you like to enter a view-only password (y/n)?"
You should answer no ("n") if you only need to control your system.

After that, your VNC will give you an X session number.
"New 'X' desktop is raspberrypi:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/raspberrypi:1.log"


Install TightVNCClient
You may use any VNC client, but why not continue with TightVNC?
You can download it here: http://www.tightvnc.com/download.php

When you install VNC, it may be a good idea to chose a custom installation if you don't need an VNC Server on your windows computer.




Use the VNC client 

To use VNC, you need to type the server adress and the session number.

The VNC client will ask for the password.

 Now you can use your Raspberry with the X interface.

Sunday, November 18, 2012

How to install a web server on Raspberry Pi - Lighttpd


http://www.lighttpd.net/Lighttpd (http://www.lighttpd.net/) is an open source webserver which has reputation of being very light. Therefore it looks perfect for an Raspberry Pi. Here are the commands I used to install it


Lighttpd installation
sudo apt-get install lighttpd





The directory containing the web pages is:
 /var/www"


The "pi" user does not have write permission to this directory.
You can give these rights with the following set of commands:

sudo chown www-data:www-data /var/www (to make the www-data owner of the directory)

sudo chmod 777 /var/www (to have full right to this directory)
sudo usermod -a -G www-data pi (to had the pi user to the www-data group)


You can now had your html file to the "/var/www" directory.

The configuration file is:
/etc/lighttpd/lighttpd.conf

The error log is:
/var/log/lighttpd/error.log

The command to restart the server:
sudo /etc/init.d/lighttpd restart

The command to reload the configuration
sudo service lighttpd force-reload

The server is ready. It is possible to use PHP and other services with Lighttpd, but I didn't do it so I can't explain it here.

Wednesday, November 14, 2012

How to exchange files between Windows and Raspberry Pi - WinSCP

In addition to be able to control the Raspberry from a Windows PC, you sometimes need to exchange files between the two systems. There are two protocols based on SSH for this, SCP (Secure CoPy) and SFTP (SSH file transfer protocol). These protocols are used to exchange files securely with a system using SSH and are equivalent, though SFTP is more recent..

WinSCP can use both protocols from Windows.

WinSCP
http://sourceforge.net/projects/winscp/
In the main interface you can choose between SFTP and SCP protocols, specify the IP address of the Raspberry Pi, the user "pi" and the password.



Once connected, you can browse in the Windows system on the left side and in the Linux system on the right side and exchange files between them by drag and drop.


Sunday, November 11, 2012

How to control the Raspberry Pi from Windows: SSHputty

Sometime your Raspberry Pi (or another Linux computer) is not physically accessible and that you can't connect any keyboard or screen. It may occurs when it is enclosed in a teapot.

It is necessary in this situation to find tools to drive it from another computer, connected in the same network.

I therefore suggest you to use the SSH (Secure Shell) service with the client software SSHputty

Activate SSH
To use this tool, the SSH  service should be active. It is activated by default in Raspbian. But if necessary it is very easy to turn it on, just call the command "sudo Raspi-config"

The following menu appears and then allows to enable the SSH service.


SSHputty
http://www.putty.org/



This is an SSH client that allows you to control any system compatible with SSH command line from a Windows PC.

After installing and running it, just chose the Raspberry Pi with its IP address (and port 22) and click on "Open" button

A command line interface will appear and ask for the username and password.

You can then control the Raspberry Pi with the command line interface, but not start the GUI.

Thursday, November 8, 2012

Useful commands for Raspberry Pi


Today I give you a few useful commands for an Raspberry Pi with Raspbian. I'll update this list in the future

Default login and password
login: pi    password: raspberry



Launch the GUI:
startx

Sht down the Raspberry Pi :
sudo halt

restart the Raspberry Pi :
sudo reboot

Know its IP address:
ifconfig eth0

Renew the IP address when in DHCP:
sudo dhclient eth0

Read a text file:
cat pathname

Edit a text file:
sudo nano or sudo nano pathname

Check the temperature of the Raspberry Pi:
sudo /opt/vc/bin/vcgencmd measure_temp

Raspberry Pi setup page:
sudo  raspi-config

From this page you can:
  • expand the partition
  • change the overscan (margins) of the screen
  • select keyboard layout
  • change the password of the user "pi",
  • change the local preference
  • change the time zone
  • manage shared memory,
  • enable the SSH
  • start on the GUI

System update
sudo apt-get update

Monday, November 5, 2012

It isn't fake!


I received some remarks saying that my pictures didn't show that the teapot really contains a functionnal Raspberry Pi. As an answer, I'm proud to give you some newer photos.



Wednesday, October 31, 2012

Raspberry Pi received!


Raspberry PiI received my Raspberry Pi today (B Model, 256 MB RAM).

I've tested it quickly with the Raspbian distribution, It works fine: serious matters start there!


Sunday, October 28, 2012

And the winner is Rasperry Pi

http://www.raspberrypi.org/
I have choosen my hardware platform:

The Toshiba Libretto is to big to fit in a standard Teapot, and I don't want to unmount it.

TP-Link router are sold around 35-40$ on chineses websites, but the delivery delay may be long, and the platform looks less powerfull.

I have found some Raspberry Pi to sell in France on Ebay at 36,5€ (+3,5€ Delivery cost)... so it will be my hardware platform. It can run Linux easily, so it is an perfect base for a small web server. I saw many project far more ambitious that mine on the very active official Raspberry Pi forum. I think it will be easy to find help and documentation.

I hope receiving it next week.

Saturday, October 27, 2012

Looking for the right server platform

At this point, I'm thinking about 3 solutions for the server solution:
  1. Reuse my old Toshiba Libretto 70CT: I realy like this awesome tiny machine but I dont use it any more. It's a true laptop with a Pentium processor running Windows 95. I Only need to find a 16 bits PCMCIA network interface but I'm not sure it can fit in a Teapot.

  2. Buying an Raspberry Pi. This fashion card seems to be supported by a big community. I'm sure it can be a good, and more modern solution, but it's still difficult to find those cards.

  3. Building an OpenWRT solution based on an TP-LINK router like the MR3020 or the MR11U. Cheap, easy to find and supported by the community of PirateBoxes projects.