Show Posts
Pages: 1 ... 436 437 [438] 439 440 ... 579
6556  Using Arduino / Sensors / Re: new thermocouple interface: MAX31855 on: May 03, 2011, 09:09:32 pm
I too just discovered that chip. Is it a drop-in replacement for the 6675.

I gather the handling of different TC types is a factory trim though and you buy different models of the chip, so you can't just stock one for all types. Not that I reckon that's a problem, you can still have one PCB just load a different chip if needed.

______
Rob
6557  Using Arduino / Interfacing w/ Software on the Computer / Re: Reduce Serial Latency on: May 03, 2011, 11:33:01 am
Quote
what does multitasking have to do with arduinos serial latency?
Your program isn't the only show in town, take a look at the task manager. Maybe the Windows kernel (or whatever they call it) only checks for task IO every 15mS.

______
Rob
6558  Using Arduino / Microcontrollers / Re: Bootload bare chips using Bit Bang - any pointers? on: May 03, 2011, 09:27:55 am
I don't know anything about the bit banging method but you can buy a programmer for $20 and get a bootloader for the 328 from the IDE installation.

I doubt you'll find a loader for the 2313 and anyway it really hasn't got enough flash for one.

______
Rob
 
6559  Using Arduino / LEDs and Multiplexing / Re: 74HC595 in parallel on: May 03, 2011, 02:58:20 am
Connect all the clock and latch pins together, then run a data line to each shift register.

Something like this will update 8 SRs at the same time.

Code:
for (i = 0; i < 8, i++) {
    PORTx = mydata[i];  // organise to SRs are all on the same port
    digitalWrite (clockPin, HIGH);
    digitalWrite (clockPin, LOW);
}

digitalWrite (latchPin, HIGH);
digitalWrite (latchPin, LOW);

If you only want to do 3 then some bit manipulation is called for. And the above needs the data to be stored in an array with all the "0" bits in the first byte, "1" bits in the second byte etc which may or may not be a pain depending on how the data is generated.

You could write the data bits with a series of digitalWrite()s and shifts but I suspect the end result would be no faster than doing N shiftOut()s.

A really fast way to do it is to use the SPI hardware and put your SRs in series.

______
Rob
6560  Development / Suggestions for the Arduino Project / Re: Two ideas on: May 02, 2011, 10:53:37 am
Yes that's a valid point. We used to spend days or even weeks designing and prototyping software before a single line was compiled.

_______
Rob
6561  Using Arduino / General Electronics / Re: LM2576-5.0 problem ... on: May 02, 2011, 09:32:02 am
I've never used Fritzing but maybe you can duplicate (or triplicate) tracks right next to each other and touching.

Also duplicate traces on the other side of the board.

______
Rob
6562  Community / Bar Sport / Re: Bad output, or maybe not on: May 02, 2011, 06:42:27 am
Quote
Might be possible to get any of these bad sizes for your output file:

And then on a Mega there's always the chance of some code that's really 48045 to the bone. (apologies to George Thorogood)

______
Rob
6563  Community / Bar Sport / Re: Bad output, or maybe not on: May 02, 2011, 06:37:47 am
I had to know

Nem fogok vásárolni ezt a lemezt, hogy karcos. ==  I'm not going to buy this disc to be scratched.

Thanks, that's much clearer.

______
Rob
6564  Community / Bar Sport / Re: Bad output, or maybe not on: May 02, 2011, 04:11:39 am
He he, I haven't seen that stuff for years, but I digress.

To get back OT,

My hovercraft is full of eels.

Quote
Am I right?
Close, I'll keep you in suspenders for a while to see if anyone else gets closer.

Hint, the proportional font and my highlighting doesn't help.

______
Rob
6565  Community / Bar Sport / Bad output, or maybe not on: May 02, 2011, 03:17:48 am
It's funny how you can see what to expect to see, I just compiled a sketch and see this in the result of avr-size

   text    data     bss     dec     hex filename
  21704     946     819   23469    5bad output/AVRmon_client.elf

Now I've been having some weird problems for a couple of hours so I'm expecting errors and I look at the "bad output" and think WTF does that mean? It takes a few minutes for the penny to drop.

Any takers smiley
6566  Using Arduino / General Electronics / Re: LM2576-5.0 problem ... on: May 02, 2011, 03:04:40 am
Those traces look a little light to me.

(caveat, I'm far from being an expert on PSU design)

______
Rob
6567  Using Arduino / Sensors / Re: What do you call a knob that you can rotate round and round? on: May 02, 2011, 02:53:40 am
Quote
What do you call a knob that you can rotate round and round?
Well you still call it a knob, but you attach it to a rotary encoder smiley
6568  Development / Suggestions for the Arduino Project / Re: New arduino language on: May 01, 2011, 10:32:22 pm
Quote
And maybe as an option a 32khz watch crystal at timer2 for low power operation (not for rtc).
Many RTCs (the DS323x for example) have a 32kHz output, this could be run to a spare interrupt and used as the time base for millis(), that way there's no missing numbers and it's dead accurate. It also frees up a hardware timer.

Quote
But all I ever see with C is errors, nothing actually works,
That's true when you start with C (and for quite a long time afterwards as well smiley) and I'm sure it's put off many a potential programmer. But at the end of the day C is probably the best language for most embedded applications.

Now Arduino was I think originally aimed at artists etc so you could validly argue that in that regard C is not a good choice. But when the "artist" decides to do something complex that sends waves of light through a 1000 LEDs an interpreted BASIC won't cut it.

What's the answer? Buggered if I know. Arduino goes half way with it's HAL, maybe an even higher level of abstraction is called for, for example Ian mentioned that you shouldn't need a whole program to flash a single LED. This can be fixed with a little bit of scheduling in the background and a function like

flashLED (pin, onTime, offTime);

So I think for the beginner maybe this stuff could be built in, no finding libraries or downloading classes from git.

This (as does the current system) still allows advanced users to write "native" code that dicks with registers etc and also allows someone to gradually change over from a warm and fuzzy protected environment to working with the bare metal.

______
Rob
6569  Development / Suggestions for the Arduino Project / Re: Two ideas on: May 01, 2011, 10:08:00 pm
Quote
u holt alt and press pm sut type pinmode stuff like that so u would have to type so much.
I can see you don't like to type any more than absolutely necessary, trouble it makes a sentence unreadable smiley

Apart from that, you can still write code on anything with a text editor although I can see a benefit to being able to verify the code by compiling. Trouble is that means getting GCC to run on these platforms, has it been ported to them?

______
Rob
6570  Using Arduino / Installation & Troubleshooting / Re: Arduino full screen on startup on: May 01, 2011, 10:02:40 pm
This is a common request (or at least for it to remember the last size which is effectively the same thing) and a very simple feature to implement, but so far AFAIK it has fallen on deaf ears so don't hold your breath.

______
Rob
Pages: 1 ... 436 437 [438] 439 440 ... 579