Saturday, October 24, 2015

HOMOTRONICS

HOMODRUINO®







These are the iHackRobot series of robots that evolved over time. You can use them to do things by combining all the sketches you've learned from our past projects. Make them move around in a closed space on its own, control them using your keyboard, a TV remote control, ethernet, wifi, bluetooth and other sensors like light, sound and line detector. All our projects on the RGB Leds, the IR remote control, the ultrasonic finder SR04, the motorshield L239D, the bluetooth HC-05 and the Arduino R3 Uno board can all be combined together to build this programmable species I christened Homotronics® . A better challenge is to write a simple modular sketch into its neurotronic brain that will manipulate its range of movement dubbed the SOUL (Spectrum Of Ultrarhythmic Locomotion). The sketch below is a good starter to create the SOUL into these robots.

/* ===============================================================
      Project Homotronics: Homodruinos
      Author: J. B. Wylzan with some help from the Arduino community
      Website: http://www.ihackrobot.blogspot.com
      Abstract: Introduction to a simple Homodruino ROM/SOUL Algorithm.
================================================================== */

#define LeftMotorForward 2
#define LeftMotorBackward 3
#define RightMotorForward 4
#define RightMotorBackward 5

//pwm 3,5,6,9,10,11

void setup() {
  pinMode(LeftMotorForward, OUTPUT);
  pinMode(LeftMotorBackward, OUTPUT);
  pinMode(RightMotorForward, OUTPUT);
  pinMode(RightMotorBackward, OUTPUT);
}

void loop() { 
  go_forward(); 
    delay(1000); 
      go_stop(); 
  go_right(); 
    delay(3000); 
      go_stop(); 
  go_forward(); 
    delay(1000); 
      go_stop(); 
  go_left(); 
    delay(3000); 
      go_stop(); 
  go_forward(); 
    delay(1000); 
      go_stop(); 
  go_backward(); 
    delay(3000);
      go_stop(); 


void go_forward()                                    //the robot goes forward 
{
  digitalWrite(LeftMotorBackward, LOW);
  digitalWrite(LeftMotorForward, HIGH);
  digitalWrite(RightMotorBackward, LOW);
  digitalWrite(RightMotorForward, HIGH);
}

void go_backward()                                  //the robot moves backward
{
  digitalWrite(LeftMotorForward, LOW);
  digitalWrite(LeftMotorBackward, HIGH);
  digitalWrite(RightMotorForward, LOW);
  digitalWrite(RightMotorBackward, HIGH);
  
}

void go_left()                                        //the robot turns left
{  
  digitalWrite(LeftMotorForward, LOW);
  digitalWrite(LeftMotorBackward, HIGH);
  digitalWrite(RightMotorBackward, LOW);
  digitalWrite(RightMotorForward, LOW);
  
}

void go_right()                                       //the robot turns right
{
  digitalWrite(LeftMotorBackward, LOW);
  digitalWrite(LeftMotorForward, LOW);
  digitalWrite(RightMotorForward, LOW);
  digitalWrite(RightMotorBackward, HIGH);
}

void stop()                                           //the robot stops 
{
  digitalWrite(LeftMotorBackward, LOW);
  digitalWrite(LeftMotorForward, LOW);
  digitalWrite(RightMotorForward, LOW);
  digitalWrite(RightMotorBackward, LOW);
}


/* ================================================================== */
Evolution of Homotronics®:


Homodruino V.1

Homodruino V.2

Homodruino V.3

Homotronics V.4




BiNG - The First Homodruino Robot


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: A Journal of a Creative Mind, Joey Lawsin, 1988, USA.


"The Last Human on Earth will no longer be Human." ~ Joey Lawsin
================================================================== 
The Homotronics® and Homodruinos® logos are registered trademarks.
Copyright Biotronics© Inc. iHackRobot®. All Rights Reserved.
Patent Pending. 2000 © ®
 ================================================================== 
...

No comments:

Post a Comment