Posts

Showing posts from December, 2015

Blinking LED on Lillypad Arduino

Image
1. Connect VCC,GND of FTDI board to Lilypad 2. Connect RX of FTDI Board to TX of Lilypad 3. Connect TX of FTDI Board to RX of Lilypad as per the below diagram 4.Open Arduino IDE. Files->Examples->Basic->Blink. 5. Select proper serial port and set Board to Lilypad Arduino (Atmega328p) 6. Burn the program. If you get the following errror: avrdude: stk500_recv(): programmer is not responding Press Reset Button while programmer is running.

How to run a command on boot in Raspberry Pi

Hi guys, If you want to run some service/script/command once the raspberry pi starts booting. You have to edit /etc/rc.local file Suppose if I want to start motion service after raspberry pi successfully booted. I will open rc.local file requires sudo sudo vim /etc/rc.local service motion start Now each time raspberry pi boots, it will start the motion service

Raspberry PI remote Web Server

Equipment Required: 1. Raspberry Pi 2. 8GB SD Card 3. Ethernet Card 4. Web Camera In order to make a raspberry pi remote web cam server, we have to install a package known as motion. Motion is a program that monitors the video signal from camera. It also able to detect whether a part of the picture has changed or not. First step is to download and install motion: sudo apt-get install motion Now we have to make some configuration changes Open motion.conf (/etc/motion/motion.conf) through nano or vim Make the changes for the following lines: daemon on webcam_localhost off webcam_maxrate 100 framerate 100 width 640 height 480 Then edit the motion file (/etc/default/motion) and change it to the following: start_motion_daemon=yes start the service sudo service motion start Now open it in browser: <ipaddr>:8081

Configuring DHCP and Static IP on Raspberry Pi Ethernet

In order to configure Ethernet DHCP on Raspberry Pi: Open /etc/network/interfaces through any text editor: and modify anything related to iface eth0 iface eth0 inet dhcp For getting a static IP Address on ethernet: iface eth0 inet static address 192.168.1.4 netmask 255.255.255.0 gateway 192.168.1.1 The above changes will assign an ip address of 192.168.1.4 to eth0 interface of Raspberry pi

Raspberry Pi: Error mounting: mount: /dev/sdb1: can't read superblock

If you face this error when you connect your memory card after performing dd operation. It means you have not un mounted the drive before performing the dd operation. So in order to solve this, you have to perform dd operation again , but before that sudo umount /dev/sdx This solved my problem