Project showcase
Origami Remote Control Robot

Origami Remote Control Robot © CC BY

How to make a remote-controlled origami robot with Arduino.

  • 9,110 views
  • 17 comments
  • 85 respects

Components and supplies

About this project

I like origami. After knowing about Arduino, I have been trying to combine the two.

Code

bluetooth to control 2 DC motorsArduino
#include <SoftwareSerial.h>
SoftwareSerial BT(7,6);
void setup()
{
  BT.begin(9600);
  pinMode(2, OUTPUT); 
  pinMode(3, OUTPUT); 
  pinMode(4, OUTPUT); 
  pinMode(5, OUTPUT); 
}
char a;
void loop()
{
  if (BT.available()) {
    a = (BT.read());
    if (a == '0') {
    BT.println("Beast is stopping!");
    digitalWrite(2, LOW); 
    digitalWrite(3, LOW); 
    digitalWrite(4, LOW); 
    digitalWrite(5, LOW); 
    }
    if (a == '1') {
    BT.println("Beast is forwarding!");
    digitalWrite(2, HIGH); 
    digitalWrite(3, LOW); 
    digitalWrite(4, HIGH); 
    digitalWrite(5, LOW); 
    }
    if (a == '2') {
    BT.println("Beast is backwarding!");
    digitalWrite(2, LOW); 
    digitalWrite(3, HIGH); 
    digitalWrite(4, LOW); 
    digitalWrite(5, HIGH); 
    }
    if (a == '3') {
    BT.println("Beast is turning left!");
    digitalWrite(2, HIGH); 
    digitalWrite(3, LOW);  
    digitalWrite(4, LOW); 
    digitalWrite(5, HIGH); 
    }    
    if (a == '4') {
    BT.println("Beast is turning right!");
    digitalWrite(2, LOW); 
    digitalWrite(3, HIGH);  
    digitalWrite(4, HIGH); 
    digitalWrite(5, LOW); 
    }
  }
}

Comments

Similar projects you might like

Servo Control with TV Remote Control

Project showcase by eldo85

  • 11,131 views
  • 5 comments
  • 32 respects

Control an LED with the Remote Control

Project showcase by Nicholas_N

  • 9,834 views
  • 3 comments
  • 16 respects

How to Make a Gesture Control Robot at Home

Project tutorial by Shubham Shinganapure

  • 3,602 views
  • 6 comments
  • 27 respects

Remote Bluetooth Light Control with Python

Project showcase by Noah Huber-Feely

  • 9,460 views
  • 1 comment
  • 14 respects

End-Effector and Control Logic for Robot

Project showcase by Team PowerBerry

  • 8,376 views
  • 2 comments
  • 43 respects
Add projectSign up / Login