Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: Distance sensing with Arduino on: September 24, 2013, 04:44:53 pm
I think that what you mean is tracking the sword. maybe with http://en.wikipedia.org/wiki/Capacitive_sensing?
2  Using Arduino / Sensors / Re: Parallax Rangefinder Basics on: September 23, 2013, 06:28:18 am
Finally tested in an Arduino MEGA, which provides from default up to three Serial possibilities.

The code is a simplification of a code found outhere. Tested in Arduino 1.0.4

/*
 5v to VCC
 GND to GND
 18  uart1 with SIN
 19  uart1 with SOUT
 */

int incomingByte;     
int incomingByte1;

void setup()

  // initialize both serial ports:
  Serial.begin(9600); //Serial Monitor to LRF
  Serial1.begin(9600); //LRF to Serial Monitor
 
  Serial.write('U');
  Serial.write('E');
 
}

void loop() {
  // read from port 1, send to port 0:
  if (Serial1.available()) {
    int inByte1 = Serial1.read();
    Serial.write(inByte1);   
  }
 
  // read from port 0, send to port 1:
  if (Serial.available()) {
    int inByte = Serial.read();
    Serial1.write(inByte);
    }
}

//---------------------------------------------

For testing the basics, upload the code and open the serial monitor. Send R and will recieve a distance measurement as answer.

More code solutions will come.
3  Using Arduino / Programming Questions / Problem with SoftwareSerial.h on: September 20, 2013, 09:05:21 am
Hallo,

Im trying to run a sketch that includes the SoftwareSerial library. Im in a Arduino 1.0.4 IDE and with an Arduino UNO hardware. I include the library as I learned:
#include <SoftwareSerial.h>

but looks if its not recognized, no highlighted text. When I run the sketch, doesnt verify neither what I thought is evident...

I checked if it was installed, and yes it is. Doing research I discovered the NewSoftSerial, which in the website advice theres no necessary to download on Arduino IDE versions higher than 1.0 because its already included as SoftwareSerial. The interesting thing here is that by typing NewSoftSerial, it gets highlighted. But doesnt help neither when the sketch is running...

Does someone has the same problem as me? Which is the explanation to it...

Would really apreciate some clarifying.

Thanks a lot,
4  Using Arduino / Sensors / Re: Parallax Rangefinder Basics on: September 20, 2013, 05:18:20 am
I dont get in a UNO the orange color of the library name that tells me its working. I have checked my libraries, and everything looks ok, the library is there.

I wrote it just the same as the informatrion i founded outthere:

#include <SoftwareSerial.h>

#define rxPin 4  // connect to the LRF's SOUT pin
#define txPin 3  // connect to the LRF's SIN pin thru a 4.7k resister

SoftwareSerial lrfSerial =  SoftwareSerial(rxPin, txPin);

I downloaded the "NewSoftSerial" library, and with this one, the library is recognized, but what I got from the developers website is that for arduino 1.0 up is not necessary to install.

http://arduiniana.org/libraries/newsoftserial/

"NewSoftSerial is in the core!  Starting with Arduino 1.0 (December, 2011), NewSoftSerial has replaced the old SoftwareSerial library as the officially supported software serial library.  This means that if you have 1.0 or later, you should not download this library.  To port your code to 1.0, simply change all NewSoftSerial references to SoftwareSerial."

Dont really get the point of it...

PD: thanks for the UNO tipp, thats useful.
5  Using Arduino / Sensors / Re: Parallax Rangefinder Basics on: September 20, 2013, 02:53:09 am
Yes, thats what I tried. The library is not being recognized I think, nothing happens. Tried already the example of the library with a LED, nothing that makes me think is alive.

How would you communicate with this device if its not without the SoftwareSerial library? Is there any other choice?

Thanks!
6  Using Arduino / Sensors / Re: Parallax Rangefinder Basics on: September 20, 2013, 02:08:17 am
LASER link the information to it.
http://www.parallax.com/product/28044#downloads

LIBRARY
http://arduino.cc/es/Reference/SoftwareSerial


How can one start generating communication in between computer (arduino) and laser module by Serial?
Didnt get yet anything more than the on back LED light. Would like to know, at least theres functionality...

Thanks
7  Using Arduino / Sensors / Parallax Rangefinder Basics on: September 19, 2013, 09:24:51 am
Hallo community,

I have purchased a Laser rangefinder from Parallax. Quite a new product and theres still not to much information outhere, except for a project in measuring distance in Weekly Hacks written by Dino.

I have been trying and I have problems with the library, which still I dont understand in new versions of the Arduino software. I would like to encourage someone to explain the basics of this sensor, just to understand what is what and how can one figure out then whats needed for their own purposes. Is it possible to avoid the libraries stuff? Please share knowledge about this new sensor those who had the chance to work with it. I will keep my research and write down what i discover if it so...

thanks a lot.
8  Using Arduino / Networking, Protocols, and Devices / Re: xbee configuration MAC OS X on: November 06, 2012, 10:37:18 am
I am not sure but I got the chance to open the ports with CoolTerm, its not a virtual emulator, but I can figure out the ports. Im trying also moltosenso, which for what I read looks like is an alternative option to X-CTU. I still canĀ“t give feedback about. Thanks for the help, by the way.

PS: Just wanted to give a modest opinion about the answers: short answers doesnt help at all! with a minimum explanation of one tag, perhaps is better to clarify, not just me, others with the same problem.
9  Using Arduino / General Electronics / NANO I/O Shield xBee on: November 06, 2012, 08:21:31 am
Did somebody used this shield for a project? I have problems of recognition when my Arduino NANO is ensambled to it: no port given. Needed for communicating with xbee modules. Please, something to say?

(not sure if i am in the right place to publish, sorry if im not)

Thanks a lot!

10  Using Arduino / Networking, Protocols, and Devices / Re: xbee configuration MAC OS X on: November 06, 2012, 08:00:10 am
so its impossible without windows or linux?

thanks for answering
11  Using Arduino / Networking, Protocols, and Devices / xbee configuration MAC OS X on: November 06, 2012, 07:19:47 am
I have just started with xBee modules. I still dont belief that mac cant configure an xbee. Is there any form to configure an xBee? I downloaded moltosenso as an alternative to windows X-CTU, but this doesnt recognize further than the port... I dont really understand the whole stuff. Please, someone can give some tipps, im a newbee!

Thanks
Pages: [1]