Friday, August 26, 2016




Operate raspberry pi from your Laptop/computer

Step1-

Install tight VNC server on your raspberryPi:

1.     Boot Up your Pi and once you are on the desktop, open the terminal and type in the following command:

sudo apt-get install tightvncserver


2.     Then, run the TightVNC server, which will ask you to enter a password(length must be less or equal to 8).
 The command to run the VNC server is:
  Tightvncserver


Now we need to run VNC server, type command in raspberry pi terminal

vncserver:1



Now you will be prompted to set password not more than 8 character.




Step2-

Enabble SSH in your Raspberrypi-

Secure shell (SSH) is a feature of Linux which allow you to open terminal of rapberryPi from the host computer.

1.     Type in sudo raspi-config in the terminal




then go to shh and press enter and select Enable or disable ssh server



That’s it! You’ve enabled SSH on your device.










Step3-

If you are Windows user then install PuTTY in your computer
if you are Mac user then install VNC viewer in your machine

 

How to use PuTTY:

1.     Download PuTTY
2.     PuTTY does not have a installer package, so just run it. You will get a screen like so:


*Get IP of your raspberryPi by typing command “ifconfig” on your Raspberrypi terminal
Ifconfig
           
           





3.     Type the IP address of the Pi into the Host Name field and click on the Open button.(To find out the IP address of the Raspberry Pi, type in hostname -I on the terminal in Raspberry Pi.)


4.     You will get a warning message like so(Don’t worry this comes just once):

5.     You’ll get a login prompt. Log in with the same username and password you use on the Raspberry Pi. (The default username and password for Raspberry Pi is pi and raspberry)


6.     You’ll now get screen of Raspberry Pi terminal in your machine.





7.     Download VNC viewer in your laptop and put your raspberry pi ip with :1


vnc server is  (ip of your raspberry pi):1


Now operate  your Rpi from your laptop



Enjoy!






Saturday, March 12, 2016

Program Low cost ATtiny 85 with ARDUINO UNO

Required Hardware and Software for programming ATtiny85

Arduino UNO R3 is very popular development board among the Makers, Artist, Scientist, Educator. Cost of Arduino UNO R3 is Approx 450 rupees. For smaller application its not feasible to use Arduino UNO R3 because of its cost and form factor(Size).
ATtiny85 is a solution for smaller and low cost of applications.




Steps for preparing Hardware for programming.

Install Arduino IDE in your computer

In Arduino IDE, you can install the ATtiny support using the built-in boards manager.
  • Open the preferences dialog in the Arduino software.
  • Find the “Additional Boards Manager URLs” field near the bottom of the dialog.


  • Paste the following URL into the field (use a comma to separate it from any URLs you’ve already added):
    https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
  • Click the OK button to save your updated preferences.
  • Open the boards manager in the “Tools > Board” menu























Scroll to the bottom of the list; you should see an entry for “ATtiny"

  • Click on the ATtiny entry. An install button should appear. Click the install button.


  • The word “installed” should now appear next to the title of the ATtiny entry.
  •  Close the boards manager. You should now see an entry for ATtiny in the “Tools > Board” menu.







  • Restart the Arduino development environment.
  • You should see ATtiny entries in the Tools > Board menu.





Connecting the ATtiny with Arduino UNO R3

You’ll need to provide power to the ATtiny and connect it to your programmer. That is, connecting 
MISO, MOSI, SCK, RESET, VCC, and GND of the programmer to the corresponding pins on the ATtiny. 
Instructions and diagrams are available for:





  • Open the Blink sketch from the examples menu.
  • Change the pin numbers from 13 to 0.
  • Select “ATtiny” from the Tools > Board menu and the particular ATtiny you’re using from the Tools > Processor men.. (In Arduino 1.0.x, these options are combined in just the Tools > Board menu.)
  • Select the appropriate item from the Tools > Programmer menu (e.g. “Arduino as ISP” if you’re using an Arduino board as the programmer, USBtinyISP for the USBtinyISP, FabISP, or TinyProgrammer, etc).
  • Upload the sketch.

Configuring the ATtiny to run at 8 MHz







Reference :  http://highlowtech.org