Saturday, February 27, 2016

Calculate Energy Usage using Current Sensor ACS712 30A



                 This is a simply cheap solution to calculate Energy consumed by your gears..But still the accuracy i have not tested..Buy a

Measure Distance using Ultrasonic Sensor (HC-SR04) for Robots using Arduino



                 This is simple example to use HC-SR04 ultrasonic transceiver to calculate the distance of a object.  This is simply done by sending a pulse from the module and receiving the echo by it. Then the distance is calculated by considering the time elapsed to receive the echo.

Thursday, February 25, 2016

Use TRIAC as Relay

           Mostly we all use relays to control AC loads as they are widely available and cheaper.. But things becomes complicated as they are bulky and makes noise......everyone knows where i have placed my

Wednesday, February 24, 2016

Making PCB at Home


              By using the conventional APBS which are available in market ,making circuits becomes messy as you have to do all the connections using the wires and of-course it looks ugly.So to avoid that and get a beautiful circuit of your own at a cheaper cost i  am providing this article.


To make own PCB we need Copper cladded board,Hydrochloric acid,hydrogen peroxide,one driller,laser printer,Software to make the circuit design,magazine paper ,one press iron and water.I  have given where can you get all the materials.Now all the processes step by step..

Screenshots of my SmartHome Android App..


Guys here are some screenshots of the Android App used to control devices in my smart home that i am working on....

Tuesday, February 23, 2016

Getting started with ESP8266-01

         
                 Wi-Fi.....Sounds good right....What if you can make your next project with Wi-Fi interface and with cheaper cost even if lower then ENC28J60 based Ethernet module.....I am sure you will be the happiest one....So how is that possible..? Ya you red right you can get Wifi at cheper price then ENC28J60 and that's by using ESp8266 Wi_Fi modules.

               These modules are extremely cheaper and easy to use. In this post i will post about how to get started with ESp8266-01 modules.


Tuesday, February 16, 2016

3G Connectivity With Raspberry Pi using Huwaei E303 Dongle

  Hi Guys. In this post we will see how to provide internet connectivity to Raspberry Pi using 3G USB dongle. This comes handy in many cases.The internet connection will be provided by a Huawei E303 USB 3g dongle on the vodafone network Odisha.



Setup
                            Power Source -------->RPI--->(USB) 3g Dongle
         
  The USB port of the PI doesnot have enough power to provide to a 3G dongle so if you plug directly the dongle onto the Pi the Pi may behave unwantingly which can be avoided by using an externally powered USB hub. I Raspbian Wheezy on Raspberry Pi. Next is after connecting the dongle to the Pi is to check if that has been detected by Pi. To get a list of USB connected devices type :

   $ sudo lsusb

Monday, February 8, 2016

RFID With Arduino

    Hello visitors..... Its been a hard time working with my home automation system..And this week I was working with access control system. The end goal was to allow only the authorised user to use my home automation system as well as my system can keep track of the users in and out activity. It now knows exactly i am inside or not or one of my friend is inside. For that i have used RFID Reader as well as Mobile App access token......

    Today with this post i will share how to Interface EM18 RFID reader with Arduino. EM18 is really simple to Interface.

Friday, February 5, 2016

PIR Sensor with Arduino



                           PIR sensors are really simple and easy to use as well as cheap motion detection sensor. The feature that it is easy to interface with any microcontroller makes it widely usable. Here i am providing a simple Arduino sketch to interface it with Arduino.

Circuit Diagram :

Tuesday, January 12, 2016

Send note as E-Mail from PC application using JAVA

Hi guys. This is my first post using my home management system. Here i am going to post codes on making a simple app that can be used to send email with notes to your own mail. this comes handy when you are working on office or other PC and you want to save something interesting, In that scenario hopefully you will not be interested to open your mobile and get on typing. Hope this helps. But to use this you need to enable IMAP and POP in your mail settings.

** Make sure yo change your mail username and password in saveNote.java File.
From now on i will be providing codes on bitbucket only.


Saturday, October 17, 2015

OSMC (XBMC) Remote using JAVA

hi guys its been a long time since my last post. But here comes a post you would really like. It's something i have been looking for a while now.

Monday, May 25, 2015

Custom Character Generator for 16x2 LCD



This is custom character generator developed using JAVA which can come handy while working with 16x2 LCD. The EditText box shows the array with dataof 8 rows in decimal. Below i have attached the source

Thursday, February 26, 2015

DHT11 Sensor Interfacing with Raspberry Pi


  Believe me guys i struggled a lot to Interface DHT11 sensor with the Raspberry Pi for my smart home. As i have already opted Pi4J for JAVA programming it was hard to interface with Pi as Pi4J doesn't support one wire protocol. I did lot of research but nothing worked out. Finally i gave a try to python and it worked perfectly. But  as my complete firmware is using JAVA. I opted a way that i will interface it using python but will be executed from JAVA.


Monday, November 24, 2014

External ADC with Raspberry Pi.



           Really I tried a lot with MCP3208 external ADC to interface with the Raspberry pi. Searched for various codes but nothing was available in JAVA. So after some research i got some python code and modified that to JAVA.  in this i have used the Pi4J library.

/****
*Author : Bikash Narayan Panda
*Use : This is used to read ADC data foem the MCP3208 SPI based ADC.
*Date :19/Nov/2014
*Tags: Please Include the Pi4J Library.
*
*
**/
import java.io.IOException;
import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioFactory;
import com.pi4j.io.gpio.GpioPinDigitalInput;
import com.pi4j.io.gpio.GpioPinDigitalOutput;
import com.pi4j.io.gpio.PinPullResistance;
import com.pi4j.io.gpio.PinState;
import com.pi4j.io.gpio.RaspiPin;

public class SensorTest {

    public static int readadc(int adcnum, GpioPinDigitalOutput clockpin,
            GpioPinDigitalOutput mosi

Thursday, October 30, 2014

Modify your old PC SMPS to BenchTop Power Supply Unit


Many time we do have old SMPS of no use to the computers. Those SMPS can be modified as bench-top power supply system providing -12,+12,+5,+3.3 volts. I have used one to power my all arduino based home automation modules and the Raspberry Pi. Here  i am going to post how to mod an old SMPS .

You just need following components along with some  basic tools

                                             1.Screw Terminals.
                                             2.Switch (On/Off).
                                             3.10Watt Resistive load (May be 5K or 10K i have used 4.7K working fine)


Friday, September 12, 2014

Using Raspberry Pi Serial Port

             By default the Raspberry Pi’s serial port is configured to be used for console input/output, it means you can't use the Serial Port in your programs and  needs to be disabled.To enable the serial port for your own use you need to disable login on the port. There are two files that need to be edited

The first and main one is     

              
 /etc/inittab


This file has the command to enable the login prompt and this needs to be disabled. Edit the file and move to the end of the file. You will see a line similar to

                      

Wednesday, September 10, 2014

Algotithm to Convert 4 byte Hex to 32 bit float


 I really struggled hard to find out some sorts of algorithm to convert 4 hex bytes to 32 bit float for my requirement on some analysis of MODBUS protocol. I didn't find it and it tok me nearly 2 days to design this. Here is the algorithm..


float ModbusRead(byte id,byte msbAddress,byte lsbAddress,byte msbCrc,byte lsbCrc)
{  
    num=1.00;
    Serial.write(id);
    Serial.write(0x03);
    Serial.write((byte)msbAddress);
    Serial.write((byte)lsbAddress);
    Serial.write((byte)0x00);
    Serial.write(0x02);

Friday, August 8, 2014

Running particular application when Rspberry Pi boots up

              While using Raspberry Pi you might not be interested to take  a mouse and keyboard to run certain application when the Pi reboots. To avoid this many procedures are available . In this post i have used crontab to run a JAVA based application each time the Pi reboots. Actually crontab provides many more features.

Thursday, August 7, 2014

Run GUI based application on raspberry Pi Startup




          Belief me i went through several websites and tested many proposals to run my JAVA based GUI application on Raspberry Pi start-up. Finally the following worked out

First check inside the .config folder if it contains autostart folder or not , if not then create a folder named as autostart.

Monday, July 28, 2014

Power Over Ethernet (For Ethernet Connected Devices)



         Power Over Ethernet is a widely used concept to power up remote devices like Arduino, Raspberry pi or any other embedded devices working on low voltage and power.There are ready made modules available in the market but are expensive so in this tutorial i will show you to make the cable modified to work for POE.