Show Posts
Pages: [1] 2 3
1  Using Arduino / Sensors / Re: Sharp GP2D12 IR sensor interference on: September 28, 2011, 09:19:31 am
Will do, thanks!
2  Using Arduino / Sensors / Re: Sharp GP2D12 IR sensor interference on: September 28, 2011, 08:20:48 am
More like 15 mins using photoshop, aint no wizard with that and drawing all sensors, servos, motors, cams etc. would take some time...

I'll try the next cap, see if that works.
3  Using Arduino / Sensors / Re: Sharp GP2D12 IR sensor interference on: September 28, 2011, 07:53:42 am
This is a partial schematic (drawing the whole thing would take a couple of hours more).

4  Using Arduino / Sensors / Re: Sharp GP2D12 IR sensor interference on: September 27, 2011, 06:15:22 pm
Unfortunately this hardly has any effect.. Could the IR-outputs be some sort of issue perhaps?
5  Using Arduino / Sensors / Re: Sharp GP2D12 IR sensor interference on: September 26, 2011, 11:42:04 am
Thanks for the quick replies and link, i'll have a try with that..
6  Using Arduino / Sensors / Sharp GP2D12 IR sensor interference on: September 26, 2011, 09:23:54 am
Recently i found out that this IR sensor produces quite a bit of interference. It interferes with an accelerometer and yes even on servos. Using an Arduino mega on a USB-bus, power for the sensor comes from the arduino and using the arduino to read it.

Anyone noticed/had this problem and perhaps found a solution for it?

Viki
7  Using Arduino / Sensors / Re: Basic Touch Sensor / Switch program on: July 05, 2011, 09:19:35 pm
Errr, NO!.. what's your setup? Details would help, if you're totally new to electronics you might wanna read up on that too.
8  Using Arduino / Sensors / Re: Basic Touch Sensor / Switch program on: July 05, 2011, 07:34:02 pm
You could read it as an analog value, use a common ground. Don't try measuring voltages coming out of the wallsocket though, stay within limits of the input range of your board.
9  Using Arduino / Sensors / Re: Saving data from temperature sensor on microSD card on: July 05, 2011, 05:36:31 pm
I got the same shield, how did you get the SD lib to compile? Or which version do you use? Tried 2 versions and all i get is 'SD.h:26: error: expected class-name before '{' token'.

10  Using Arduino / Sensors / Re: Calibration of a HMC5843 compass on: July 03, 2011, 05:28:31 pm
Or have a peek at this version of the HMC-lib.

http://arduino.cc/forum/index.php/topic,38104.0.html

After picking up my robot project again (or V2 for that matter) i'm checking the calibration again, setting the Data Output Rate slower also helps to make it more accurate.

There was also a discussion about getting more than a heading from it, it's basicly very simple, calculate a heading, same way calculate tilt (or azimuth and elevation).
11  Forum 2005-2010 (read only) / Syntax & Programs / Re: How to sprintf a float? on: July 10, 2010, 06:46:50 pm
In case you would be using a more binary connection to the arduino you can also send a float in binary form to the receiving aparatus assuming the receiver uses the same float format (which it probably does):

  // arduino:
  float f=123.456; // some float
  float *f_ptr=&f;
  char *c=(char *)f_ptr;
  char buf[4];
  for (int a=0;a<4;a++) buf[a]=c[a];
  // then send buf (as buffer not as string)

  // on the receiving end when data was received (in buf):
  float o;
  float *o_ptr=&o;
  char *d=(char *)o_ptr;
  for (int a=0;a<4;a++) d[a]=buf[a];
  // and here float o holds the float output from the arduino

//-
12  Forum 2005-2010 (read only) / Interfacing / Re: Help with Processing and serial communication on: August 28, 2010, 06:39:59 pm
By IDE i assume you mean the Arduino sketch-writing thingy, when i (de)-init the comport from my own (higher 'brain') software the reset still happens so it's not the Arduino software causing the reset. Can only assume it's a window's API causing it.
If it would cause an issue later on i'll dig into the hardware-resistor stuff, just a resistor should be easy (when going easy on coffee as well) ...
13  Forum 2005-2010 (read only) / Interfacing / Re: Help with Processing and serial communication on: August 20, 2010, 03:03:41 pm
Ok thx, it's no biggy though.
14  Forum 2005-2010 (read only) / Interfacing / Re: Help with Processing and serial communication on: August 19, 2010, 06:28:23 pm
Not sure if this was covered elsewhere already.

Wouldn't it be possible to disable the resetting of the arduino (mega) on comport-(de)init by a command/define or something? I think in my case, where the arduino will keep track of a relative position/speed in the world, i'd rather be in charge of resetting than the 'auto-reset' like it does now.
15  Forum 2005-2010 (read only) / Interfacing / Re: serial communication with c++ on: July 04, 2010, 07:44:32 am
Pretty sure that was fine the way it was, you need a handle to the comport first before you can set anything else. As mentioned before, don't use system("pause") but ::Sleep(ms) for example where ms=milliseconds.
Pages: [1] 2 3