Saturday, March 12, 2016

EZ430 Chronos Watch

How to build a Robot on an Arduino that can be controlled by a chronos watch:
by J.B. Wylzan












ARDUINO SKETCH:

/* ===============================================================
      Project: LED controlled by a watch
      Author: J. B. Wylzan with some help from Texas Instrument
      Website: http://www.ihackrobot.blogspot.com
      Abstract: Start a car ignition via a chronos watch.
================================================================== */

// This is a test sketch which start your wireless connection with your watch and arduino. 
// Press * to turn OFF or press ^  to turn On an LED using your chronos wrist watch.

const int w = 10;             
const int x = 9;  
const int y = 6;             
const int z = 5; 

void setup() { 
  Serial.begin(9600);                  
  
  pinMode(w, OUTPUT);  
  pinMode(x, OUTPUT); 
  pinMode(y, OUTPUT); 
  pinMode(z, OUTPUT);


void loop() { 
  if (Serial.available()>0) {             
    int data = Serial.read();               
    switch (data) {
case '1':                   // FWD 
    analogWrite(x, 0);        
    analogWrite(w, 1);
    analogWrite(z, 0);        
    analogWrite(y, 0);
    break;
case '2' :            // BCK
    analogWrite(x, 1);         
    analogWrite(w, 0);
    analogWrite(z, 0);        
    analogWrite(y, 0);
    break;
case '3' :                  // LFT 
    analogWrite(x, 0);        
    analogWrite(w, 0);   //255
    analogWrite(z, 0);        
    analogWrite(y, 1);
    break;
case '4' :                   // RHT 
    analogWrite(x, 0);        
    analogWrite(w, 0);
    analogWrite(z, 1);        
    analogWrite(y, 0);    //255
    break;
case '5':                   // STP
    analogWrite(x, 0);        
    analogWrite(w, 0);
    analogWrite(z, 0);        
    analogWrite(y, 0);
    break;
default : 
Serial.println("TYPE the correct NUMBER please");
break;

}
  }

}

*** Warning when using Bluetooth***
1. Remove the RX and TX cables when uploading the sketch.
2. Connect TX to RX and RX to TX.




Challenge:


Use this assembly to simulate starting a car's ignition


Source Code: http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=slac341&fileType=zip

Disclaimer:  We shall not be liable for any loss or damage of whatever nature - direct, indirect, consequential, or otherwise - which may arise as a result of your use of any information on this website. However, if you are interested in using any of the projects for personal or educational purposes, please inform the author by email. 

Public Domain Notice: Copyright (c) 2000. All rights reserved. This article is part of a book entitled iHackRobot. Copies are welcome to be shared or distributed publicly as long proper citations are observed. Please cite as follows: Biotronics: The Silver Species, Joey Lawsin, 1988, USA.

================================================================== 
The Homotronics® and Homodruinos® logos are registered trademarks.
Copyright Biotronics© Inc. iHackRobot®. All Rights Reserved.
Patent Pending. 2000 © ®

L.A.W.S.I.N. Educational Production
 ================================================================== 




No comments:

Post a Comment