Writing a protocol on Arduino on Serial Interrupts – The Tree Controller Code

Preface

My project for the Internet of Holoday lights was based around our living room which was not very livable. It was a mess and with the upcoming holidays I wanted to set the living room in such a way that it would be suitable for entertaining guests. Additionally I wanted to accomplish the above mentioned in such a way that the holiday lighting becomes part of the living room and I don’t need to remove it after the holidays. Hence the concept of Dynamic Living-room Lighting.

In this post while I wait for my video to upload, I explain the code for the tree. Continue reading “Writing a protocol on Arduino on Serial Interrupts – The Tree Controller Code”

IOT Holiday Lights – The XMAS Tree

Living Room Lit Up

Preface

My project for the Internet of Holoday lights was based around our living room which was not very livable. It was a mess and with the upcoming holidays I wanted to set the living room in such a way that it would be suitable for entertaining guests. Additionally I wanted to accomplish the above mentioned in such a way that the holiday lighting becomes part of the living room and I don’t need to remove it after the holidays. Hence the concept of Dynamic Living-room Lighting. Continue reading “IOT Holiday Lights – The XMAS Tree”

IOT Holiday Lights – Building the Dynamic Ambilight

Ambilight with the YUN

Preface

My project for the Internet of Holiday lights was based around our living room which was not very livable. It was a mess and with the upcoming holidays I wanted to set the living room in such a way that it would be suitable for entertaining guests. Additionally I wanted to accomplish the above mentioned in such a way that the holiday lighting becomes part of the living room and I don’t need to remove it after the holidays. Hence the concept of Dynamic Living-room Lighting.

Continue reading “IOT Holiday Lights – Building the Dynamic Ambilight”

Single Board Computers- The Arduino YUN Review

SBC

Prelude

Hackers and hobbyists have used the arduino for a diverse number of projects and have made it a very popular. Its simple to use and easy to program. For people who have a slightly ‘more’ requirement, ARM based single boards came into the market. Initially the ARM boards were tougher to build and program and costlier to make. In order to fully exploit the power of a 32-bit processor, the Linux Kernel was ported to the fanless ARM systems making the Single Board Computers. The OS was stored on either an SD Card or an EEPROM. This new class of boards had the familiar OS system of a regular PC and the digital and analog outputs of the arduino but at a slightly higher cost. Additionally they had varying performance but they started to add something more- peripherals! Keyboard, then Ethernet, then Bluetooth and Wifi- the list goes on. In this article we discuss the Arduino YUN and what exactly it is. Continue reading “Single Board Computers- The Arduino YUN Review”

Project Holiday Lights for the Living Room – Project Brief

Prelude

The holidays mean different things to different people. To kids it means gifts, to teens it means time off, to the professional its a time to be away from the stress of daily life, to the mother it means a display of culinary skill and to the elderly it means a time when lots of people visit. Whatever may be means, the end result is a fun time and sharing of happiness. This proposal is based on a couple of problems in mind. Continue reading “Project Holiday Lights for the Living Room – Project Brief”

Motor Driver Test on an Arduino

Introduction

There are prolly a billion tutorials for this and mine is prolly not the best but I am writing it anyways. Here is a piece of arduino code that can be used to test if your motor driver is connected correctly.

Connections

I am assuming that the motor driver L293D or L298 has been connected such that the Enable pin is high by default i.e. connected to VCC. In the next tutorial I will put up a circuit like how I think should be done. None the less, the direction 1 pin is connected to 12 pin of the Arduino and direction 2 pin is connected to 13 pin of the arduino.

The Code

The code is as follows:

/*!
*	\file		motorTest.ino
*	\author 	Inderpreet Singh (google.com/+InderpreetSingh)
* 	\license	GPL2(see license.txt)
*
*	\section 	Description
*
*	\section	HISTORY
*	v1.0
*
*        \description  This arduino firmware is used to test L293D motor Drivers
*                      Change the Motor driver pins at the beginning and the rest
*                      will work automatically.
*
* I put a lot of time and effort into our project and hence this copyright 
* notice ensures that people contribute as well as each contribution is 
* acknowledged. Please retain this original notice and if you make changes
* please document them along with your details.
*
* The latest copy of this project/library can be found at: 
* https://github.com/inderpreet/
*
*/
// ----------------------------------------------------------------------------
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// L298D Pins
int D1=12
int D2=13
//int D3=
//int D4=
//int E1=
//int E2=

// Direction Routines
void motorStop(void){
  digitalWrite(D1,LOW);
  digitalWrite(D2,LOW);
}

void motor1CK(int t){
  digitalWrite(D1, LOW);
  digitalWrite(D2, HIGH);
  delay(t);
  motorStop();
}

void motor1ACK(int t){
  digitalWrite(D2, LOW);
  digitalWrite(D1, HIGH);
  delay(t);
  motorStop();
}
// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(D1, OUTPUT);     
  pinMode(D2, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  motor1CK(5);               // Rotate motor Clockwise for 5 seconds
  motor1ACK(5);              // Rotate motor Anticlockwise for 5 seconds
}

copy and paste the code in the arduino IDE and upload. Test and lemme know.

Cheers

CapSense MBR3 Evaluation Kit – Review

CapSense MBR3 with Arduino Nano

Introduction

A lot of projects and products involve a user interface which is buttons and switches and knobs. The cost of industry grade panel push buttons is really high and it gets worse as the buttons become environment proof. With that said, Capacitive Touch sensing has come in to replace mechanical buttons and the Cypress CapSense MBR3 does exactly that. The solution is a single chip auto calibration system which does most things for you. Most Capacitive Touch sensing solutions offered need a lot of technical expertise but Cypress claims that their solution is just easier to use. I will be reviewing the developer side of the solution as opposed to the kit itself. Continue reading “CapSense MBR3 Evaluation Kit – Review”