Show Posts
Pages: [1] 2 3
1  Using Arduino / General Electronics / Re: 12 V Regulator on: November 01, 2011, 09:38:56 am
Thank you so much.
2  Using Arduino / General Electronics / Re: 12 V Regulator on: November 01, 2011, 09:34:03 am
Here is the data sheet.
http://www.nteinc.com/specs/900to999/pdf/nte966.pdf
3  Using Arduino / General Electronics / Re: 12 V Regulator on: November 01, 2011, 09:30:42 am
Thanks. The data sheet says nothing about capacitors. What amount should I use?
4  Using Arduino / General Electronics / 12 V Regulator on: October 31, 2011, 11:42:13 pm
Hi. I'm using a 12 V regulator to power some computer fans. Is it necessary to use capacitors with the regulator or will it be fine without them. Thanks.
5  Using Arduino / Interfacing w/ Software on the Computer / Re: Processing on: September 15, 2011, 09:39:09 am
Sorry, I have a led attached to pin 13. But thats all.
6  Using Arduino / Interfacing w/ Software on the Computer / Re: Processing on: September 14, 2011, 05:17:30 pm
The Processing program starts without throwing an except. When I go to upload the program to the arduino the processing program is not running and the arduino is connected to my mac via the usb cable.
7  Using Arduino / Interfacing w/ Software on the Computer / Re: Processing on: September 13, 2011, 08:53:34 pm
The processing program now works but when I try to upload a program to the Arduino I get the error: Programmer not responding even though the arduino's power is on and the right serial port is selected.

How do I fix this?

Thanks.
8  Using Arduino / Interfacing w/ Software on the Computer / Re: Processing on: September 13, 2011, 09:31:36 am
Here is my code. It is the example that comes with processing.
Code:
import processing.serial.*;

int bgcolor;      // Background color
int fgcolor;      // Fill color
Serial myPort;                       // The serial port
int[] serialInArray = new int[3];    // Where we'll put what we receive
int serialCount = 0;                 // A count of how many bytes we receive
int xpos, ypos;              // Starting position of the ball
boolean firstContact = false;        // Whether we've heard from the microcontroller

void setup() {
  size(256, 256);  // Stage size
  noStroke();      // No border on the next thing drawn

  // Set the starting position of the ball (middle of the stage)
  xpos = width/2;
  ypos = height/2;

  // Print a list of the serial ports, for debugging purposes:
  println(Serial.list());

  // I know that the first port in the serial list on my mac
  // is always my  FTDI adaptor, so I open Serial.list()[0].
  // On Windows machines, this generally opens COM1.
  // Open whatever port is the one you're using.
  String portName = Serial.list()[0];
  myPort = new Serial(this, portName, 9600);
}

void draw() {
  background(bgcolor);
  fill(fgcolor);
  // Draw the shape
  ellipse(xpos, ypos, 20, 20);
}

void serialEvent(Serial myPort) {
  // read a byte from the serial port:
  int inByte = myPort.read();
  // if this is the first byte received, and it's an A,
  // clear the serial buffer and note that you've
  // had first contact from the microcontroller.
  // Otherwise, add the incoming byte to the array:
  if (firstContact == false) {
    if (inByte == 'A') {
      myPort.clear();          // clear the serial port buffer
      firstContact = true;     // you've had first contact from the microcontroller
      myPort.write('A');       // ask for more
    }
  }
  else {
    // Add the latest byte from the serial port to array:
    serialInArray[serialCount] = inByte;
    serialCount++;

    // If we have 3 bytes:
    if (serialCount > 2 ) {
      xpos = serialInArray[0];
      ypos = serialInArray[1];
      fgcolor = serialInArray[2];

      // print the values (for debugging purposes only):
      println(xpos + "\t" + ypos + "\t" + fgcolor);

      // Send a capital A to request new sensor readings:
      myPort.write('A');
      // Reset serialCount:
      serialCount = 0;
    }
  }
}
When I run it I get the errors:
Exception in thread "Animation Thread" java.lang.RuntimeException:
Error inside Serial.<init>()
   at processing.serial.Serial.errorMessage(Serial.java:591)
   at processing.serial.Serial.<init>(Serial.java:151)
   at processing.serial.Serial.<init>(Serial.java:105)
   at SerialCallResponse.setup(SerialCallResponse.java:64)
   at processing.core.PApplet.handleDraw(PApplet.java:1608)
   at processing.core.PApplet.run(PApplet.java:1530)
   at java.lang.Thread.run(Thread.java:680)

Thanks.
9  Using Arduino / Interfacing w/ Software on the Computer / Re: Processing on: September 12, 2011, 06:14:27 pm
Sorry, I get the warning. Then I get a whole bunch of errors.
10  Using Arduino / Interfacing w/ Software on the Computer / Processing on: September 11, 2011, 11:36:16 pm
Hi.
When I try to run any processing code that involves serial communication I get the error:
 WARNING:  RXTX Version mismatch
   Jar version = RXTX-2.2pre1
   native lib Version = RXTX-2.2pre2

What can I do to fix this?

Thanks.
11  Using Arduino / Networking, Protocols, and Devices / Re: Xbee Range on: April 03, 2011, 07:25:27 pm
Quote
What kind of range are you getting? Indoors or outdoors?
I'm not sure what the indoor range is but ouside with the transmitter about 5 feet higher than the reciever i can get about 100 yards.
12  Using Arduino / Networking, Protocols, and Devices / Xbee Range on: April 02, 2011, 05:01:56 pm
I have a Xbee Series 1 802.15.4 Protocal 1 mW wireless module with a wire antenna. http://www.adafruit.com/index.php?main_page=product_info&cPath=29&products_id=128Is it possible to increase the range by configuring it differently?
13  Using Arduino / Networking, Protocols, and Devices / Xbee 802.15.4 Protocal on: February 27, 2011, 07:04:06 pm
Hi.
I'm building a remote firing system for my catapult and I'm using 2 Xbee 802.15.4 Protocal Series 1 from adafruit. http://www.adafruit.com/index.php?main_page=product_info&cPath=29&products_id=128 I want to send a command from one arduino to the other arduino. How do I send a command. 
14  Using Arduino / Networking, Protocols, and Devices / Re: XBee Serial Communication on: February 03, 2011, 09:56:34 am
So now I'm confused because the ArduinoXbeeShieldhttp://www.arduino.cc/en/Guide/ArduinoXbeeShield says that you wouldn't have to configure two arduinos if you use Serial.println() to communicate with each other.
15  Using Arduino / Networking, Protocols, and Devices / XBee Serial Communication on: February 02, 2011, 11:52:41 pm
Im getting 2 XBee 802.15.4 Module from adafruit.com and 2 of the Xbee adapters from adafruit. If I hook both of them up to 2 different arduinos using the TX and RX pins would I still need to configure the XBee with X-CTU. I want to write Serial commands to the XBee to send a "command" to the other arduino and when that arduino gets the command it will react to it. Example: Light up an led.
Pages: [1] 2 3