Show Posts
Pages: [1] 2 3 ... 1890
1  Using Arduino / Programming Questions / Re: Strange behaviour of "return value;" on: Today at 05:18:45 pm
I thought variables are getting initialized with Zero, if not otherwise defined.
Only if with global or static scope, and not initialised to some other value.
2  Using Arduino / Project Guidance / Re: Multiple, independent delays on: Today at 04:28:45 pm
Is this even possible?
Microsecond accuracy - tricky.
Post what you've got.

Anyway, it is possible and it's not complex. Check the example "blink withouth delay" and learn the use of millis().
sp. " learn the use of micros()."
3  Using Arduino / Project Guidance / Re: Loop frequency on: Today at 04:07:56 pm
I tried analogWrite(pinUcom, 0) and analogWrite(pinUcom, 255); and I get the same signal
With a 0% and 100% duty-cycle you get. . . what, exactly?
4  Using Arduino / Programming Questions / Re: Tricky loop... help needed. on: Today at 03:57:48 pm
Well, you could edit the first post in the thread's title.
5  Using Arduino / Programming Questions / Re: Bitmap to array->error altough no compilation error on: Today at 03:56:45 pm
Even largest number for int16_t is to small for 0x9f98 =  40856.
6  Using Arduino / Project Guidance / Re: using arduino to trigger flash a unit? help. on: Today at 01:26:19 pm
Sincere apologies- my dyscalculia (which curtailed a promising career as an actuary) strikes again - it's a MOC 3020
7  Using Arduino / Programming Questions / Re: What do you think? on: Today at 11:53:31 am
What i should do ?
Cut back on your overuse of the word "crazy" and substitute more descriptive words.
8  Using Arduino / Programming Questions / Re: First program, help on: Today at 11:47:51 am
I still don't see the point of writing the sum of three bytes like this - if the sum is zero, the result will be a LOW, otherwise it will be HIGH.
9  Using Arduino / LEDs and Multiplexing / Re: How to create a dice using external interrupt? on: Today at 10:02:34 am
I truly do not understand your fixation with interrupts.

You've already been given a simple demonstration code of how to react to an interrupt; writing the code to pick a random number and display it is about three extra lines of code.
10  Using Arduino / Project Guidance / Re: Parsing a String on: Today at 09:58:13 am
Any constructive suggestions would be appreciated
Ditch String - it's a waste of resources.
11  Using Arduino / Programming Questions / Re: First program, help on: Today at 09:54:49 am
data = STX+llenar+CD+fin;
A digitalWrite requires a pin number and a single bit value.
12  Using Arduino / Project Guidance / Re: using arduino to trigger flash a unit? help. on: Today at 09:53:41 am
Simply shorting the outputs of the coupler fires the flash, doesn't it?
13  Using Arduino / Sensors / Re: Ultrasonic sensor code confusion on: Today at 09:51:20 am
From what I see it sends a pulse for 10 microSec and it measures the time that echoPin is in HIGH state. So why the result isn t always 10 microSec ?
I don't understand the logical process that got you to that conclusion.
The trigger pulse causes the sensor to transmit a burst of ultrasound, and at the same time it raise the echo pin.
When the sensor receives an echo of its transmitted burst, it lowers the echo pin.
14  Using Arduino / Programming Questions / MOVED: Ajuda codigos on: Today at 09:22:17 am
This topic has been moved to Portugues.
15  Using Arduino / Programming Questions / Re: Counting from 0 to 15 binary by using an interruption on: Today at 08:39:54 am
So, now you're outputting to uninitialised pins.
Uncomment the for loop in setup.
Pages: [1] 2 3 ... 1890