Show Posts
Pages: 1 ... 323 324 [325] 326 327 ... 637
4861  Using Arduino / General Electronics / Re: From 24V to 5V DC voltage regulator on: September 16, 2012, 03:27:33 am
probably best to get a 24v capable UBEC for efficient high current voltage reduction.

http://www.ebay.com/sch/i.html?_sacat=0&_nkw=ubec&_sop=15
4862  Using Arduino / Networking, Protocols, and Devices / Re: arduino IDE serial not sending carriage return still ?? on: September 16, 2012, 03:20:52 am
Quote
Is this still true ?   ( I am using IDE 22 )

True for IDE 22, false for IDE 1.0 and newer.
4863  Topics / Home Automation and Networked Objects / Re: A little lost... on: September 16, 2012, 03:03:42 am
Quick tips: like below, use the single quote ' in the html instead of the double quote ", and use the F() function to put the static lines of text into program memory instead of the limited ram space.

Code:
client.println(F("<center><font color ='deepskyblue' >THE ROOM IS NOW - *DARK* - </font></center>") );
4864  Using Arduino / Project Guidance / Re: ideas for creating linear movement/ general suggestions for approach please on: September 15, 2012, 07:48:36 pm
Low tech, but at the bottom of the below page is a ~simple setup where a single SPSD relay and limit switches controls the direction and travel limits for a motor. Energize the relay and a motor runs until a limit switch is actuated. Deenergize the relay and the motor runs in the opposite direction until another limit switch is actuated. With the appropriate limit switch adjustment setup, reasonable accuraccy might be achieved.

http://web.comporium.net/~shb/switch.htm
4865  Using Arduino / Networking, Protocols, and Devices / Re: Connecting two Arduinos via USB on: September 15, 2012, 06:22:33 pm
Quote
It has to be USB, because the connection will be via the back channel of a wireless video system that has a USB "back channel".

Does the USB "back channel" just act as a wireless USB connection between two USB gizmos?
4866  Topics / Home Automation and Networked Objects / Re: x10 Project - Dirt Simple on: September 15, 2012, 05:41:35 pm
Well to get back to facts, I posted "I've got a couple of the below cm17a firecrackers saved back for future x10 projects." Then based on that statement, you flipped out and started a strange rant about the cm17a not being a standalone controller, not operating on its own, yada yada, yada... You generated that stuff in your head, as I never claimed the cm17a had any of those capabilities. I think I have a good understanding of what you are trying to do (replace the CP290 functions with an arduino?). I looked at your project and there seems to be an unaddressed gap as to how the arduino will interface with the 120vac system in your house. In my project ideas the cm17a setup would provide an inexpensive, safe (isolated), and portable interface between the arduino and the 120vac house wiring. 
4867  Using Arduino / Networking, Protocols, and Devices / Re: Connecting two Arduinos via USB on: September 15, 2012, 03:58:44 pm
Quote
Thanks, but I'm not going to buy an expensive book - there must be some more information on the web. Has nobody ever tried this? (I'm a bit disappointed now, I thought the Arduino community has exploited the possibilities of that littel board far more than some blinking LEDs :-(

Well, I guess I'll be the one to tell you: From what I've seen so far, I just don't think you have the depth of knowledge of the project you want to do to complete the project any time soon. You are starting to sound like a kid getting upset and whining because nobody will tell him how to build a nuclear reactor for his school project.
4868  Using Arduino / Project Guidance / Re: How to transmit data underwater? on: September 15, 2012, 03:40:26 pm
Maybe you can find some old modems with acoustic couplers.
4869  Using Arduino / Networking, Protocols, and Devices / Re: Connecting two Arduinos via USB on: September 15, 2012, 02:06:16 pm
Quote
Where can I find information about writing a driver?

The below book might help you get up to speed on USB.

http://www.lvr.com/usbc.htm
4870  Using Arduino / Motors, Mechanics, and Power / Re: Servo stopped working on: September 15, 2012, 12:47:16 pm
Simple servo test code that might be useful.

Code:
// zoomkat 10-22-11 serial servo test
// type servo position 0 to 180 in serial monitor
// or for writeMicroseconds, use a value like 1500
// for IDE 0022 and later
// Powering a servo from the arduino usually *DOES NOT WORK*.

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

void setup() {
  Serial.begin(9600);
  myservo.writeMicroseconds(1500); //set initial servo position if desired
  myservo.attach(7);  //the pin for the servo control
  Serial.println("servo-test-22-dual-input"); // 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

    // auto select appropriate value, copied from someone elses code.
    if(n >= 500)
    {
      Serial.print("writing Microseconds: ");
      Serial.println(n);
      myservo.writeMicroseconds(n);
    }
    else
    {   
      Serial.print("writing Angle: ");
      Serial.println(n);
      myservo.write(n);
    }

    readString=""; //empty for next input
  }
}

4871  Using Arduino / Project Guidance / Re: Sensing absolute height on: September 15, 2012, 12:37:33 pm
Seems like you have two different requirements: one is to heep a moving platform level with some other reference point, and the other requirement to keep something like a mowing deck at a specific height above another surface. You may need to address those requirements individually.
4872  Using Arduino / Project Guidance / Re: ideas for creating linear movement/ general suggestions for approach please on: September 15, 2012, 12:17:50 pm
Quote
even if it works with bellows, isnt this still the easiest approach with some guarantuee about precision/repeatability compared to bellows?

So how is that going to know how much fluid has been moved? You would probably need an encoder on the threaded shaft for rotation determination. You also need to think about the possible need for thrust bearings and such.
4873  Using Arduino / Project Guidance / Re: How to transmit data underwater? on: September 15, 2012, 12:10:47 pm
Hey i am new to Arduino, I am considering attaching a 433Hz RF transmitter to my Arduino. I would like the Arduino to communicate with my computer giving orientation, pressure and other readings so that i can view them on my computer. Has anyone had experience with this application? If so post your tips or suggestions. Thanks!

Where are you getting a 433Hz transmitter? The antenna size for such a low frequency would probably be large.
4874  Using Arduino / Networking, Protocols, and Devices / Re: Possible Arduino 1.0.1 Ethernet Library bug? on: September 15, 2012, 11:53:22 am
Below is the meta refresh code with the refresh delay set to 0. I think it has been mentioned that the get request may be large. I think there is a limit to the number of bytes in a get request. What do the large get request look like?

Code:
// zoomkat meta refresh server test code
// arduino IDE 1.0
// for W5100 ethernet shield
// the IP address will be dependent on your local network/router
// port 80 is default for HTTP, but can be changed as needed
// use IP address like http://192.168.1.102:84 in your brouser
// or http://zoomkat.no-ip.com:84 with dynamic IP service
// use the \ slash to escape the " in the html
// meta refresh set for 2 seconds

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

int x=0; //set refresh counter to 0
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1,102); // ip in lan
EthernetServer server(84); //server is using port 84

void setup()
{
  // start the server
  Ethernet.begin(mac, ip);
  server.begin();
}

void loop()
{
  // listen for incoming clients
  EthernetClient client = server.available();
  if (client) {
     while (client.connected()) {
      if (client.available()) {
        char c = client.read();
        // see if HTTP request has ended with blank line
        if (c == '\n') {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
         
          //meta-refresh page every 2 seconds
          x=x+1; //page upload counter
          client.println("<HTML>");
          client.print("<HEAD>");
          client.print("<meta http-equiv=\"refresh\" content=\"0\">");
          client.print("<TITLE />Zoomkat's meta-refresh test</title>");
          client.print("</head>");
          client.println("<BODY>");
          client.print("Zoomkat's meta-refresh test IDE 1.0");
          client.println("<br />");
                   
          client.print("page refresh number ");
          client.println(x); //current refresh count
          client.println("<br />");
          client.println("<br />");
         
          client.print("Zoomkat's arduino analog input values:");
          client.println("<br />");
          client.println("<br />");
         
          // output the value of each analog input pin
          for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
            client.print("analog input ");
            client.print(analogChannel);
            client.print(" is ");
            client.print(analogRead(analogChannel));
            client.println("<br />");
            }
           break;
          client.println("</BODY>");
          client.println("</HTML>");
         }
        }
    }
    // give the web browser time to receive the data
    delay(1);
    // close the connection:
    client.stop();
  }
}

4875  Topics / Home Automation and Networked Objects / Re: x10 Project - Dirt Simple on: September 14, 2012, 11:37:21 pm
Quote
Do you have CM17a that will turn x10 devices on and off on its own? It stores the x10 commands that are executed at a particular time daily/weekly without another controller? If so, tell me how... Do you know what CP290 is?

Well, I did some checking for info on the CP290 and I do remember when it was made and sold a long time back. It appears to now be extinct and no longer available, so anybody duplicating you project will probably have difficulty obtaining the CP290. If you still have one, then your project will work for you. For those looking for a similar (and possibly less expensive)  x10 project, I'd just have an arduino/mega hold the programming instead of the CP290, and control the x10 modules by connecting the cm17a (~$8 on ebay) to the arduino and use the x10 TM751 transceiver (~$13) as the house wiring interface. I web controlled some x10 stuff a long time ago using the apache web server on a pc with the cm17a attached. Add an ethernet shield and web control could also be added. The below site has a lot of cm17a info, including the serial control protocol. The bottom site has a somewhat over priced basic cm17a x10 control setup.

http://www.ubasics.com/adam/electronics/cm17.shtml

http://www.x10.com/automation/ck18a_s_ps32.html
 
Pages: 1 ... 323 324 [325] 326 327 ... 637