Show Posts
Pages: [1] 2 3 ... 18
1  Using Arduino / General Electronics / Instead of IR transmitter / receiver, wire directly? on: Today at 06:13:57 am
Hy

I currently use an Arduino to control a device over an IR LED.
Is it possible to use two wires directly from the Arduino
output to the IR of the device and use the same code I used
before to control it via the IR LED?

Andy
2  Using Arduino / Sensors / MAX11200 ADC on: March 12, 2014, 02:31:43 am
Hy

I like to use the MAX11200 with an Arduino and like to ask if someone has already made a library for the Arduino.
Or can someone help me to get it working with an Arduino.

Thx
Andy
3  Using Arduino / Installation & Troubleshooting / Re: Upload sketch to Arduino Nano without USB (via ISP?) on: November 12, 2013, 05:26:07 am
You might be able to do a little basic troubleshooting if you have access to a digital multimeter. The USB +5vdc is isolated from the board's 5vdc bus by a diode D1. See if after you plug in the USB if you have +5vdc on the anode side of the diode but not on the cathode side which would indicate an open diode.

 As far as using the ISP method of programming the arduino board that is pretty simple using a hardware programmer or another arduino board running the arduinoISP sketch and then using the IDE's file menu option of upload sketch using programmer option.

Lefty

Hm ok I got an Open Diode....
What happens when I remove it?
Can I still use the Nano?

Andy
4  Using Arduino / Programming Questions / Re: How does define work? on: March 04, 2013, 06:41:22 am
thx a lot to all of you explaining me the problem and the difference among the const and define statement!!!

Andy
5  Using Arduino / Programming Questions / Re: How does define work? on: March 04, 2013, 05:44:37 am
wow thx a lot

so const is similair to define you still can't change the value after it is "defined" in the code?

Andy
6  Using Arduino / Programming Questions / How does define work? on: March 04, 2013, 05:13:18 am
Hy

I got a strange behaviour when I use this code:

Code:
#define alt  10000


void setup(){
  Serial.begin(115200);

  Serial.println(alt);

  if (55000 >= (alt * 100)){
    Serial.println("Yes");
  }
  else{
    Serial.println("no");
  }
}


void loop(){ }


Why Is the Output yes? Since 10000 * 100 is greater then 5500??

Whe I use following code it works:
Instead of *100 I use *100.


Code:
#define alt  10000


void setup(){
  Serial.begin(115200);

  Serial.println(alt);

  if (55000 >= (alt * 100.0)){
    Serial.println("Yes");
  }
  else{
    Serial.println("no");
  }
}


void loop(){ }



I don't get it!!

Andy
7  Using Arduino / Networking, Protocols, and Devices / Re: 3-wire Serial Configuration Interface on: December 12, 2012, 08:49:46 am
ok.. I have to look at this forst since I don't get right know...
Thx for the answers...
8  Using Arduino / Networking, Protocols, and Devices / Re: 3-wire Serial Configuration Interface on: December 12, 2012, 07:22:06 am
hmm but SPI looks like:


And this interface from the data sheet:
9  Using Arduino / Networking, Protocols, and Devices / 3-wire Serial Configuration Interface on: December 12, 2012, 05:05:21 am
Hy

I try to get the CC1050 working which is a little Very Low Power RF Transmitter.
I tried to set it up with the datasheet http://www.ti.com/lit/ds/swrs044/swrs044.pdf

On page 12 it is described but I haven't used yet this 3 wire serial interface. I'm used to
I2C, UART so could someone help me getting this chip to work...

I barely found any info about this interface so is it not that common?

Thx
Andy
10  Using Arduino / Programming Questions / Re: integer save into single bytes on: March 25, 2012, 10:09:39 am
the value returned was wrong compared to what was expected there fore I wrote it doesn't work...
11  Using Arduino / Programming Questions / Re: integer save into single bytes on: March 24, 2012, 11:29:28 am
wow you were right hmm this union thing is quite strong have to dig deeper what else it can deliver....

Thx
Andy
12  Using Arduino / Programming Questions / Re: integer save into single bytes on: March 24, 2012, 05:41:58 am
Hi,
if you are trying to convert from byte array to long integer, simply use the union in the opposite way:

Code:
   Number Out;

   Out.barray[0] = b0;
   Out.barray[1] = b1;
   Out.barray[2] = b2;
   Out.barray[3] = b3;

   unsigned long val = Out.num

Wow thx the union thing worked just great!

Finally I do need to send float numbers separated in a 4 byte array with the IEEE-754 Standard.
Converting form the bytes to float was easy but the other way round seems harder...


13  Using Arduino / Programming Questions / Re: integer save into single bytes on: March 23, 2012, 11:15:51 am
so maybe 24 hmmmm smiley

But still no success or is it still wrong (24)?

14  Using Arduino / Programming Questions / Re: integer save into single bytes on: March 23, 2012, 10:59:20 am
Why do your buffer subscripts start at 1?

Since in the first ([0]) is the adress where the message came from...

is 1 << 0 not the same as pow(256,0).

Or how can I do it differently?
15  Using Arduino / Programming Questions / Re: integer save into single bytes on: March 23, 2012, 09:56:07 am
yes I tried bit shifts with:

Code:
  unsigned long b1 = buffer[1] * 1 << 32;
  unsigned long b2 = buffer[2] * 1 << 16;
  unsigned long b3 = buffer[3] * 1 << 8;
  unsigned long b4 = buffer[4] * 1 << 0;
  unsigned long val = b1 + b2 +b3 + b4;

but didn't worked therefore i switched to pow....
Pages: [1] 2 3 ... 18