Show Posts
Pages: 1 [2] 3 4 ... 586
16  Using Arduino / Programming Questions / Re: 'Beginning C for Arduino by Jack Purdum' book errors? Modified Blink program on: August 30, 2014, 07:18:36 pm
Noooo, don't start a brace-location war smiley

BTW, that's my favourite method as well, and for the same reason.

______
Rob
17  Using Arduino / Programming Questions / Re: 'Beginning C for Arduino by Jack Purdum' book errors? Modified Blink program on: August 30, 2014, 04:47:39 pm
I would think that in this context an int would be appropriate as that's the sort of defacto "standard" for a general-purpose  counter.

______
Rob
18  Using Arduino / General Electronics / Re: 8 bit trigger for your scope or logic analyzer on: August 27, 2014, 07:28:41 pm
Me to smiley
19  Community / Gigs and Collaborations / Re: Help and get reward .... on: August 27, 2014, 07:21:32 pm
I guess you can see where we're going with this khang360nguyen, I've never been tempted but might be coerced into dropping my morals for several $1000...nah I doubt it.

$50 might be a lot to a student but it barely buys lunch these days, so quite apart from the (well articulated) problems detailed by wwbrown et al you would need to offer an amount a few orders of magnitude larger to get someone to write that code.

Look on the bright side, when (if) you pass you won't have to work for days/weeks for $50, as we don't smiley

______
Rob
20  Using Arduino / Programming Questions / Re: Efficient Way of Sending Data via Serial on: August 27, 2014, 07:11:05 pm
The serial buffer is 64 bytes in length, when that gets full any print call will block. Unfortunately there is no mechanism for changing the buffer size or indeed getting a callback when it's empty, these would be nice enhancements IMO.

So I see where you are going with the "send X bytes every 100mS" approach, but where is "data" coming from and how large is it?

You could implement your own FIFO (aka circular buffer) and make it as large as you like then run a custom print function every 100mS, but to do this you have to trick the standard .print() functions to write to your buffer or use sprintf() or trap the low-level function (putchar() IIRC).

Personally I think the serial funcs could do with an overhaul by now.

______
Rob
21  Using Arduino / General Electronics / Re: 8 bit trigger for your scope or logic analyzer on: August 27, 2014, 06:48:24 pm
Gee I haven't seen a '688 in use for about 20 (make that 30) years. smiley

Good idea though if the inputs needed for triggering do not need to be traced as well.

______
Rob
22  Using Arduino / General Electronics / Re: Best IC to pilot 4 digits 7 segment on: August 27, 2014, 06:40:46 pm
AS1108 and friends (Common-Cathode though)

______
Rob
23  Community / Bar Sport / Re: Projects on: August 27, 2014, 04:07:41 am
ha ha smiley
24  Products / Arduino Due / Re: Array sizes on: August 27, 2014, 03:26:49 am
Yes, you have about 90k+ to play with.

______
Rob
25  Using Arduino / Programming Questions / Re: Cannot convert serial input from int to ASCII using atoi function on: August 26, 2014, 06:24:20 pm
I don't see any atoi() calls, is that a typo in the blurb or the program?

______
Rob
26  Using Arduino / Networking, Protocols, and Devices / Re: I2C bus running at 100kHz and 400kHz at same time? on: August 26, 2014, 07:19:54 am
I think you'll be safe with 400kHz, that's pretty slow by electronics/PCB standards.

______
Rob
27  Using Arduino / General Electronics / Re: Soldering station on: August 25, 2014, 09:01:18 am
Quote
Can I solder some MCU in packages like T-QFP or SSOP with the only iron?
Yes, many people do, I like using hot air but others prefer to use an iron. So either way is good AFAIK.

______
Rob
28  Using Arduino / Microcontrollers / Re: Reprogramming Embedded MIcrocontroller on watch with arduino ide on: August 25, 2014, 03:25:17 am
You need to know exactly what the CPU is on that watch before even thinking about programming tools.

If you can't find that out chuck it in the bin. Even if you can it may not be practical or even possible but until you know there is nothing more to say, IMHO of course smiley

______
Rob
29  Products / Arduino Due / Re: How to store Data fast in RAM on: August 24, 2014, 05:19:32 pm
There is about 96k available, take out say 6k for heap and stack (depends on your program) so maybe 90k of RAM for general storage.

Is that enough? If not you are sh*t out of luck.

Quote
1 Mio samples per second.
For how long? 90k will give you 90mS of storage.

Quote
Where does the free RAM begin?
The top of the heap. The actual address is of little use but can be found at run time if you really need to know.

______
Rob

30  Development / Other Software Development / Re: New peek function for HardwareSerial on: August 24, 2014, 08:17:19 am
Quote
making the head = tail (or vs) only makes Serial.available = false
Isn't that a cleared buffer?

______
Rob
Pages: 1 [2] 3 4 ... 586