Show Posts
Pages: 1 ... 1070 1071 [1072] 1073 1074 ... 1751
16066  Using Arduino / Project Guidance / Re: DIP switch? on: December 02, 2011, 04:23:38 pm
The chances of dip minus switch minus value being the same as an ASCII '1' seem pretty remote  smiley-wink
16067  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 04:20:33 pm
So, why are you so keen on floats, if the value wasn't a float in the first place?
16068  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 04:12:01 pm
So, what you're saying is, the number is supplied as a BCD integer.
Not as an IEEE754 floating-point number.
16069  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 04:07:11 pm
"It looks like" and "it is" are not the same thing.
Do you think your micrometer works in floating point?
Does it supply results in floating point?
16070  Using Arduino / Programming Questions / Re: PING in Assembly on: December 02, 2011, 04:04:50 pm
What's the big deal about using asm?
It can't be a speed thing, after all, we're talking about sound that only travels at 340 metres per second.
16071  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 04:02:54 pm
Depends where you put the decimal point.  smiley-wink
16072  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 03:58:25 pm
If 32 bits is sufficient, why bother with float?
16073  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 03:53:31 pm
Way better than float.
 64 bit vs. 32 bit.
16074  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 03:16:23 pm
A 'long long' is a 64 bit integer.
No, you don't need a float (32 bit) if you want to maintain precision.
16075  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 03:00:59 pm
Any problems using "long long" datatype?
16076  Using Arduino / Programming Questions / Re: Can someone explain data type "byte" on: December 02, 2011, 10:21:14 am
That's an array of three bytes called RED, initialised with values 255, in
  • , 0 in [1] and 0 in [2]
16077  Using Arduino / Programming Questions / Re: Help with relays and proximity sensor. on: December 02, 2011, 09:39:00 am
Imagine I ask you to turn a light on in five minutes.
You can use a five minute egg-timer, or you can use the clock on the wall, a pencil and a sheet of paper.
Egg-timer method:
Turn the egg-timer over and sit watching it until the sand runs through.
Switch on the light.
This is the same as using "delay" - while you're watching the sand run through, you can't do anything else (aka blocking)

Wall clock method
Write down the time now.
Look at the clock - is the time greater than five minutes after the time you wrote down?
No, put the kettle on
Look at the clock - is the time greater than five minutes after the time you wrote down?
No, get a cup out
Look at the clock - is the time greater than five minutes after the time you wrote down?
Get the coffee out
Look at the clock - is the time greater than five minutes after the time you wrote down?
..and so on.

"millis()" is the wall clock.
16078  Using Arduino / Programming Questions / Re: Help with relays and proximity sensor. on: December 02, 2011, 09:06:59 am
The important point made in reply #1 was to note the time that the event took place, not simply that you should not use delay.
If you don't understand the blink without delay example (there are only about three important lines in it), then work at until you do understand it.
Ask questions if there are bits you don't get.
16079  Using Arduino / Programming Questions / Re: Help with relays and proximity sensor. on: December 02, 2011, 08:57:37 am
Have another look at reply #1
16080  Using Arduino / Programming Questions / Re: Arduino rf 433MHz car locker! on: December 02, 2011, 07:51:59 am
Did you mean
Code:
if (buf[0] == 0x61) {
perhaps?

That's just the same as
Code:
if (buf[0] == 'a') {

Quote
Like that it dosen't work.
That is an infuriating, pointless, meaningless phrase. (badly spelled too)
"work" implies some so-far undisclosed observation.
"doesn't work" also implies some so-far undisclosed observation that is in some way at odds with the first.

WE CAN'T SEE YOUR PROJECT.

Have you verified (with a simple LED blink) that your receiver is receiving any messages?
Pages: 1 ... 1070 1071 [1072] 1073 1074 ... 1751