Show Posts
|
|
Pages: [1] 2 3
|
|
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
|
|
|
|
|
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) ...
|
|
|
|
|
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.
|
|
|
|
|