Cubieboard with BMP085 Barometer, Alittute, Temperature
I’ve bought BMP085 barometric pressure sensor and my goal was to get pressure and temperature data via I2C interface to my Cubieboard running linux (cubieboard2-lubuntu-installation).
I’ve bought BMP085 barometric pressure sensor and my goal was to get pressure and temperature data via I2C interface to my Cubieboard running linux (cubieboard2-lubuntu-installation).
I2C bus is used by many integrated circuits and is simple to implement. Any microcontroller can communicate with I2C devices even if it has no special I2C interface so I wanted to enable I2C also in my Cubieboard2 to get direct access to sensors.
I executed the following steps to install apache with PHP on my cubieboard2 with lubuntu.
Lets start with installation that will take about 25MB:
sudo apt-get install apache2 sudo apt-get install php5 sudo /etc/init.d/apache2 restart
When I installed Lubuntu on my new Cubieboard2, the print screen was not working. When I hit the “Print Screen” button I got this message:
I’ve fixed it by installing the scrot application:
sudo apt-get install scrot
If you hit “Print Screen” or “Alt+Print Screen” you will see a new file *_scrot.png in you home directory.
I use VNC to access the graphical interface from my PC to a Cubieboard running Lubuntu. I chose TightVNC and spent some time configuring it. A helpful guide on ubuntuforums.org (currently offline — see status) got me started, but I needed to make changes, so I documented what actually worked.
I have just bought cubieboard and installed lubuntu and I want to have synchronized time with NTP server. NTP is a TCP/IP protocol for synchronising time over a network – Network Time Protocol.
This post describes:
I wanted to connect my cubieboard with lubuntu to my arduino via serial communication. For that I had to enable a UART and connect pins to my arduino (only RX/TX is needed). I have arduino mini 3.3V on which I have attached some sensors (outside temperature).
By this command you can check if the port is enabled:
stty -F /dev/ttyS0 -a
In fresh installation of lubuntu the ttyS0 is configured and used by kernel and ttyS1 is not enabled. You will get this message for ttyS1:
SSH to my fresh lubuntu on cubieboard2 was not working. I tried it also from the lubuntu itself with the error:
$ ssh localhost
Read from socket failed: Connection reset by peer
I went through many google search results. But I could not find any appropriate solution. Finally did what I should as the first step. Uninstall and install the ssh.
This page helped me to try uninstall with complete removal (also the configuration files). It should work with the command
I wanted to install Lubuntu on my new Cubieboard2 so I decided to go for this v1.06 Lubuntu 12.10 image. You have option to have NAND or SD card and I’ve decided to go for NAND because the system performance should be faster than SD.UPDATE: Download the Lubuntu 14.04 image for Cubieboard2. I found this image on Marcos Costales blog
I followed this video www.youtube.com/watch?v=TeULfhdX1CY and installed PhonexSuite, downloaded image and upgraded cubieboard2. Thanks for it, it saved a lot of time..