Show Posts
Pages: 1 [2] 3 4 ... 631
16  Using Arduino / General Electronics / Re: How to create a cheap but good Motion Capture cloth? on: July 13, 2014, 12:56:51 am
Quote
1) The graphics seem to be ahead of the actual motion, so it is not quite an honest video.

Yea, at the end of the video it is apparent the person is watching the animation and trying to duplicate the motion with his arm.
17  Using Arduino / General Electronics / Re: How to use POTs on Arduino without over heating? on: July 13, 2014, 12:49:16 am
Aha! now it isn't heating up at 0. Basically, The "gnd" pin I had was the 5V, the 5V I had was the GND, the output I had right.

Wonder what happens at the highest pot setting.
18  Using Arduino / General Electronics / Re: How to use POTs on Arduino without over heating? on: July 13, 2014, 12:00:29 am
If you connect the pot wiper (usually the center tab of the three on the typical pot) to either 5v or ground (with the other two tabs connected to 5v/ground), then you will produce a dead short when the wiper is moved to one of the pot extremes. You need to check your wiring and understand what is going on electrically.
19  Using Arduino / Programming Questions / Re: Servo PWM on: July 12, 2014, 11:10:55 pm
Quote
there's no other choice!

Have you tried Google? Below is an old article that shows what is inside a typical analog hobby servo.

http://www.seattlerobotics.org/encoder/200009/S3003C.html
20  Using Arduino / General Electronics / Re: H-Bridge component for designing 24V ,10A motor driver on: July 12, 2014, 12:55:29 pm
Quote
I'm trying to design a motor driver for control motor speed with PWM.

The best advice you will get is to buy an h-bridge like below instead of trying to make one.

http://www.ebay.com/itm/Double-BTS7960B-43A-Motor-Driver-High-power-module-smart-car-driver-For-Arduino-/221235721147?pt=LH_DefaultDomain_0&hash=item3382ad33bb
 
21  Using Arduino / Networking, Protocols, and Devices / Re: Serial communication on: July 12, 2014, 12:50:13 pm
You probably use three small signal diodes in series to drop the arduino 5v output to 2.9v to the other device  rx. Also connect the common grounds between the devices.
22  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet.begin() FAILS and I can't figure out why on: July 12, 2014, 12:43:30 pm
Quote
My only idea now is that the ethernet shield is busted but can that really account for the trouble I've been having?

I would think you have bad/conflicting code. If you really think the Ethernet card is the problem, then order another one.
23  Topics / Robotics / Re: Started a new robot project today on: July 12, 2014, 12:29:54 pm
One possible issue with hacking RC cars and similar, is that they are designed to move around much quicker than what a navigating bot normally would. 
24  Topics / Robotics / Re: Why would it not accept DC jack as power supply on: July 12, 2014, 12:25:23 pm
I'd suggest going to radio shack and getting a 8 AA battery holder like below and get 8 rechargeable AA batteries/charger at walmart to provide external power to the project. RC equipment vendors also supply batteries/chargers.

http://www.radioshack.com/product/index.jsp?productId=2062251

http://www.radioshack.com/product/index.jsp?productId=2062242

25  Topics / Home Automation and Networked Objects / Re: HTML/Arduino coding for single ON/OFF button on: July 11, 2014, 11:00:02 pm
Quote
I'll try this as soon as I get home from work tomorrow!

I suggest you try compiling your code before posting.
26  Topics / Home Automation and Networked Objects / Re: Convert project to web server project on: July 11, 2014, 10:43:20 pm
Very simple server code for controlling an arduino pin.

Code:
//zoomkat 10-6-13
//simple button GET with iframe code
//open serial monitor to see what the arduino receives
//use the ' instead of " in html ilnes
//address will look like http://192.168.1.102:84/ when submited
//for use with W5100 based ethernet shields

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //ethernet shield mac address
byte ip[] = { 192, 168, 1, 102 }; // arduino IP in lan
byte gateway[] = { 192, 168, 1, 1 }; // internet access via router
byte subnet[] = { 255, 255, 255, 0 }; //subnet mask
EthernetServer server(84); //server port

String readString;

//////////////////////

void setup(){

  pinMode(4, OUTPUT); //pin selected to control
  //start Ethernet
  Ethernet.begin(mac, ip, gateway, gateway, subnet);
  server.begin();

  //enable serial data print
  Serial.begin(9600);
  Serial.println("servertest1"); // so I can keep track of what is loaded
}

void loop(){
  // Create a client connection
  EthernetClient client = server.available();
  if (client) {
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();

        //read char by char HTTP request
        if (readString.length() < 100) {

          //store characters to string
          readString += c;
          //Serial.print(c);
        }

        //if HTTP request has ended
        if (c == '\n') {

          ///////////////
          Serial.println(readString); //print to serial monitor for debuging

          //now output HTML data header
             if(readString.indexOf('?') >=0) { //don't send new page
               client.println("HTTP/1.1 204 Zoomkat");
               client.println();
               client.println(); 
             }
             else {
          client.println("HTTP/1.1 200 OK"); //send new page
          client.println("Content-Type: text/html");
          client.println();

          client.println("<HTML>");
          client.println("<HEAD>");
          client.println("<TITLE>Arduino GET test page</TITLE>");
          client.println("</HEAD>");
          client.println("<BODY>");

          client.println("<H1>Zoomkat's simple Arduino button</H1>");
         
          client.println("<a href='/?on1' target='inlineframe'>ON</a>");
          client.println("<a href='/?off' target='inlineframe'>OFF</a>");

          client.println("<IFRAME name=inlineframe style='display:none'>");         
          client.println("</IFRAME>");

          client.println("</BODY>");
          client.println("</HTML>");
             }

          delay(1);
          //stopping client
          client.stop();

          ///////////////////// control arduino pin
          if(readString.indexOf("on1") >0)//checks for on
          {
            digitalWrite(4, HIGH);    // set pin 4 high
            Serial.println("Led On");
          }
          if(readString.indexOf("off") >0)//checks for off
          {
            digitalWrite(4, LOW);    // set pin 4 low
            Serial.println("Led Off");
          }
          //clearing string for next read
          readString="";

        }
      }
    }
  }
}

27  Topics / Robotics / Re: Why would it not accept DC jack as power supply on: July 11, 2014, 10:34:32 pm
Quote
but when i use dc power supply it does not run the code.

You need to provide details on the DC power supply being used.
28  Topics / Robotics / Re: Can any of you help me pick a robot kit please? on: July 11, 2014, 10:25:56 pm
Problem with the two wheel ones is something has to hold up the end. That is usually a caster. The caster is very small and won't go over carpet or bumps.

Robots can have only two wheels, like the bot below, where the bot body is suspended from the axle centerline. I tinkered with the idea of a two wheel bot (bottom), but the jar lid wheels needed to be larger to keep the center of gravity low.

http://inventorartist.com/rolly-bot/


29  Topics / Robotics / Re: Servo comunication problem on: July 11, 2014, 10:03:23 pm
Very basic servo test code that you can try.

Code:
//zoomkat 7-30-10 serial servo test
//type servo position 0 to 180 in serial monitor

String readString;
#include <Servo.h>
Servo myservo;  // create servo object to control a servo

void setup() {
  Serial.begin(9600);
  myservo.attach(9);
  Serial.println("servo-test"); // so I can keep track of what is loaded
}

void loop() {

  while (Serial.available()) {
    char c = Serial.read();  //gets one byte from serial buffer
    readString += c; //makes the String readString
    delay(2);  //slow looping to allow buffer to fill with next character
  }

  if (readString.length() >0) {
    Serial.println(readString);  //so you can see the captured String
    int n = readString.toInt();  //convert readString into a number
    myservo.write(n);
    readString="";
  }
}

30  Using Arduino / Project Guidance / Re: Chat server and client as a "bus" on: July 11, 2014, 01:06:54 pm
If you are going to have multiple clients, then a web based setup might be more practical.
Pages: 1 [2] 3 4 ... 631