Archive for the ‘ Guide ’ Category

DIY Home Security Part 1 – Setup A Red5 RTMP Live Stream

The goal of this guide is setup an RTMP live stream from your home or office.  Once the stream is setup, I’m going to show you how to play your stream on a webpage or on your android phone.  It’s surprisingly simple if you have a basic knowledge of linux to install red5.  You can see an example of this work on the bar to the right.  I’ve set up a few features like ‘privacy mode’ and I’ll do my best to cover these in a later guide.  For now, get booted into your CentOS server and get ready to install and compile some packages! Click here to check out the full guide!

Arduino LCD HD44780 + LM335 Temperature Sensor

This was the next logical step in my home monitoring project.  I’ve simply added an LM335A temperature sensor to the breadboard and have the output being posted to the LCD every second.

 

First the drawing:

The next step was to write the code that reads the temperature on Analog Pin 0, then writes it the LCD.  This could not have been easier.

 

Code:

#include <LM335A.h>
#include <LiquidCrystal.h>
float raw;
 
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
 
LM335A InsideTemp(0); //pass the analog input pin number
void setup() {
  lcd.begin(16, 2);
}
 
void loop() {
  lcd.clear();
  //user must call ReadTemp before any valid temp data is available
  raw = analogRead(0);
  InsideTemp.ReadTemp();
  lcd.print(InsideTemp.Fahrenheit());
  lcd.print((char)223);
  lcd.print("F");
  lcd.setCursor(0, 1); // bottom left
  delay(1000);
}

Working project:

 

 

Things are coming along on the home monitor.  I’ll soon be using some multiplexers and 8bit shift registers to help reduce the number of pins used on the arduino.  Keep checking back for more updates!

Arduino LCD HD44780 Simple Tutorial

Connecting any LCD using the HD44780 standard to an arduino is extremely simple.  I’ve created a quick schematic showing how to connect the 16×2  HD44780 to an arduino.  I’ll be using this setup in my future projects, so this is simply for future reference.

 

Arduino LM335 Temperature Sensor Tutorial

Getting started with the LM335 Temperature sensor can be a bit tricky.  I ran into some problems when I started getting incorrect data.  I googled around for the problem, and all of the schematics and drawings at the top of google were incorrect.  They either had a static resistor on the data pin, or they show the data pin on the arduino directly connected to the LM335 Temperature sensor’s data pin.

The trick to correctly calibrating the temperature sensor is to connect a 10k potentiometer to the data pin.  Once the potentiometer is wired in place, you can calibrate the LM335 to read the correct temperature.  The correct wiring of the LM335 can be seen below:

 

 

 

 

 

Once everything is wired up, I simply used the lm335a.h library written by greenrobotics.net.  This is a nice library, a quick test sketch can be seen below here:

// Example using the LM335A library for reading temperatures
// Created by Jonathan Merrill, February 20, 2010.
// http://www.greenrobotics.net
//  Released into the public domain.
 
#include 
 
LM335A InsideTemp(0); //pass the analog input pin number
void setup() {
Serial.begin(57600);
Serial.println("starting");
 
}
 
void loop() {
  delay(3000);
  //user must call ReadTemp before any valid temp data is available
  InsideTemp.ReadTemp();
  Serial.print("Fahrenheit: ");
  //functions to get the temperature in various unitsfs
  Serial.println(InsideTemp.Fahrenheit());
  Serial.print("Celsius: ");
  Serial.println(InsideTemp.Celsius());
  Serial.print("Kelvin: ");
  Serial.println(InsideTemp.Kelvin());
 
}

Once I get motived, I’ll be sending this temperature data from my home to my blog, here.  I’ll be sure to post more updates as they come.

Debian/Apache2 Virtualized Host Script

I wrote this script so that I could quickly create virtualized subdomains on my server. I wrote it so that all you have to do to reuse it is simply change the first 3 lines of the file to match your server. This is version 1.o and I plan to add some more error handling and improvements further down the road. Feel free to contact me with any feedback or suggestions.

Click Here to see the full Post
or
Click Here to download the script

SSI Test Script

Often, when supporting dedicated servers, we need to check if Server Side Includes are working correctly. We wrote this very simple script that we upload on to our customers servers as test.shtml. Here’s the script:

 
<!--#echo var="DATE_LOCAL" -->

If you do not see the date displayed when browsing to your test.shtml file, check your httpd.conf file and ensure that mod_include is enabled. Restart Apache and test again, you should see the current date on the server.

Update/New Guide: Lava Lamp Housing

I finished up my hardware arduino monitoring project with a brand new Lava Lamp Housing. I’ve also update the script to check my gmail account and notify me when a new email hits my inbox.

Click Here for the full guide

Arduino Server/Service Monitor

I’ve successfully written a bash script that runs once every minute. The script detects whether or not my server is online by issuing a simple ping request. Based on results of the ping request(s), the arduino will display a green LED when the server is online or a red LED if the server is offline. I’ve also setup a cron job to execute the script once a minute, giving me up to the minute status of my server. This specific project is not terribly amazing, but the foundation for many more projects to come has laid.

Click Here for the full project page

How To Add Additional FTP Users to a Domain in Plesk

This guide will show you how to create a separate FTP login for a specific domain using Plesk. This gives two different users the ability to connect to the same directory with the same permissions.

Click Here to see the full guide.

Windows Firewall: How to setup a Port Range

As most of you know, using the Windows Firewall GUI will not allow you to open a range of ports easily. This becomes a nightmare if you need to open up Passive FTP ports (port #’s 60,000 – 65,000).

Click Here for the full guide.

Unfortunately you don't have Adobe Flash-Player.... Klicken Sie hier fü kostenlosen Adobe Flash-Player.