Monthly Archives: April 2016

Interfacing 16×2 LCD with Arduino

The 16×2 LCD is a cheap display that can be used to display text output from an Arduino.

Below is the schematic

LCD 16x2

  1. The VO is for setting the contrast (or readability) of the characters.
  2. A and K are the LED pins (backlight of the LCD)

Arduino has libraries for interfacing with this type of LCDs. The library has various examples including for text scrolling.

Basic example – simple text print

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // RS, Enable, D4, D5, D6, D7

void setup() 
{
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

 

 

Connect Arduino and BMP 180 to Cloud

BMP 180 connect to Cloud

 

BMP-180

  1. SCL – Grey wire
  2. SDA – Orange Wire

 

Notes:

  • Here the hardware TX and RX has been used for performance.

 

The code:

See Arduino – Communicate with Server – Part 1

Updated code will be posted here some time soon.

For more details on ESP 8266 please see the article “https://www.kolkataonweb.com/code-bank/arduino/esp8266-esp-01/

Install PHPMumbleAdmin

https://sourceforge.net/projects/phpmumbleadmin/?source=typ_redirect
Quick Guide of Requirements

Mumble Admin Panel Requirements

 

Install PHP* 5.3
wget http://in1.php.net/distributions/php-5.3.29.tar.bz2
tar -xvf php-5.3.29.tar.bz2
cd php-5.3.29
./configure
make
make install

Notes: 
Additional packages might need to be installed
apt-get install gcc
apt-get install libxml2-dev
apt-get install libapache2-mod-php5

 

Install ZeroC ICE (Slice)

https://doc.zeroc.com/display/Ice36/Using+the+Linux+Binary+Distributions#UsingtheLinuxBinaryDistributions-DEBPackages

Though the requirement guide says the max version should be 3.4.x, but 3.6 also works fine.

  1. apt-get install php5-zeroc-ice
  2. apt-get install php5-zeroc-ice-dev
  3. wget https://zeroc.com/download/GPG-KEY-zeroc-release
  4. apt-key add GPG-KEY-zeroc-release
  5. apt-add-repository “deb http://zeroc.com/download/apt/ubuntu14.04 stable main”
  6. apt-get update
  7. apt-get install php5-zeroc-ice
  8. apt-get install  libmcpp0  php5-common php5-json
  9. apt-get remove libzeroc-ice3.6  //  apt-get remove libzeroc-ice
  10. apt-get install zeroc-ice-all-runtime zeroc-ice-all-dev
  11. apt-get install db5.3-util
  12. apt-get source zeroc-ice3.6
  13. apt-get install php5-zeroc-ice
  14. apt-get install php5-zeroc-ice-dev
  15. apt-get install zeroc-ice-slice

 

Install DBUS
  1. wget http://dbus.freedesktop.org/releases/dbus/dbus-1.2.14.tar.gz
  2. tar -zxf dbus-1.2.14.tar.gz
  3. Add Group if not there:
    groupadd -g 18 messagebus &&
    useradd -c "D-Bus Message Daemon User" -d /var/run/dbus \
            -u 18 -g messagebus -s /bin/false messagebus
  4. ./configure --prefix=/usr                  \
                --sysconfdir=/etc              \
                --localstatedir=/var           \
                --disable-doxygen-docs         \
                --disable-xml-docs             \
                --disable-static               \
                --disable-systemd              \
                --without-systemdsystemunitdir \
                --with-console-auth-dir=/run/console/ \
                --docdir=/usr/share/doc/dbus-1.10.8   &&
    make
  5. make install

 

Notes
Additional packages might be needed
apt-get install libexpat1-dev

 

Install PHPMumleAdmin
  1. wget http://tenet.dl.sourceforge.net/project/phpmumbleadmin/phpMumbleAdmin-0.4.4.zip
  2. unzip phpMumbleAdmin-0.4.4.zip
  3. Open in browser
  4. Default SuperUser is “SuperUser” and the password that was given at the time of setup of Mumble Server.

Notes:

Had to change all folders to 777 ( find ./ -type d -exec chmod 777 {} \; ) as quick fix for folder permissions.

 

To-do:

Need to cleanup, optimize the installation and set proper folder permissions.

Installing Mumble on Ubuntu 14.04

The installation steps
  1. add-apt-repository ppa:mumble/release
  2. apt-get update
  3. apt-get install mumble
  4. apt-get install mumble-server
  5. dpkg-reconfigure mumble-server  (select High in the priority  step)

 

Adding Users
  1. adduser <username>

 

Addition of channels
  1. Can be done from the Mumble desktop client (The desktop clients are available here http://www.mumble.com/mumble-download.php)

 

Wiki Page
Todo:
  1. http://wiki.mumble.info/wiki/Features#Access_Control_Groups
  2. http://wiki.mumble.info/wiki/Authenticators