Automated router restarting

Some time ago I posted about my ISP replacing my old fiber modem, with a new one, with a build in router. A quite buggy router, even. I have been calling them a few times, and they are now monitoring the problem, because now it just completely stops, about once daily. Most of the times, … Read more

Cool stepper drivers

After seeing quite a few stepper drivers die, I decided to put some cooling on mine, but instead of having the fan running all the time, I made an extra function for it. This new function will turn the fan on when any stepper driver is enabled, and turn the fan back off after a … Read more

Easy modular home automation

Attention

This solution is given as it is, and I can/will not guarantee that it can not be hacked or abused by others. So use your common sense if you put it into use, and let me know if you got some security/stability improvements. 🙂

What is this?

This is a cheap way of making some simple home automation, so far this system can only switch relays/pins on and off, and control PWM channels.

What does make this system so genious?

  • It uses cheap RF modules (4-6£ per set)
  • It can use all arduino versions as receivers (sender does require a version that can interface with Ethernet)
  • It can use cheap pre-assembled relay boards that can handle 230V and are op-to isolated from the controller
  • It is very easy to add additional receivers to the system
  • It is easy to have something like PHP interface with it to control stuff from a website
  • It is free and opensource 🙂

How to use it?

I got the sender and receiver ready, how to I use it?

First you need the sender’s ip.

To turn a pin on, you then call http://sender-ip/_ident-pin-status_

ident is the ident in the receiver you gave it in the top of the sketch

pin is the pin number on the arduino you want to turn on

status is what you want that pin to do, 1 turns a digital pin HIGH and 0 turns it LOW

But I want to use it to control something that just needs an inpulse!

To do that, you add one extra value to it, so it will be http://sender-ip/_ident-pin-pulses-delay_

ident is the ident in the receiver you gave it in the top of the sketch

pulses is how many times you want it to pulse that pin

delay is how long a delay you want between changing the pin

  

Read more

2×16 I2C LCD and Thermocouple

Been some time since I last posted some arduino code… But here it is! This time it is to make a Thermocouple with a MAX6675 amplifier work with an I2C LCD display. And the result should be something like this

Pull up/down resistor, what is it?

When looking at tutorials you might have encountered pull-up or pull-down resistors, but why are they needed? If you look at your arduino micro controller and upload something like this and then takes a look in the serial monitor, you will see something like and so on, totally random and might give more 1’s than 0’s if you move … Read more

Having fun with LED rings and Keypad

These rings was ment for my RepRap 3D printer, but until I got it assembled and working, I could have a bit fun with the rings first. [youtube]http://www.youtube.com/watch?v=Km8_A0UhPYk[/youtube] To make it work, I am using this code. It will fade the ring up and down in different speeds, and also allow for manual control of … Read more

4×4 Matrix Keyboard Keypad

A while ago i purchased a 4×4 keypad on ebay, and actually forgot everything about it. But today it arrived!!! 🙂 After 30 secs on google I found a library for my Arduino and decided to install it. The way to determine is pretty straight forward. You actually just connect to some pins, and see what happens … Read more