Show Posts
Pages: 1 ... 439 440 [441] 442 443 ... 582
6601  Using Arduino / Project Guidance / Re: Interfacing with an RTC 3234 on: May 04, 2011, 09:48:14 am
Any ideas what could be wrong?
How about you post the code and a schematic of you can.

6602  Community / Bar Sport / Re: New OSHW logo on: May 04, 2011, 07:38:45 am
I just draw this in Corel and rasterized it.

Note this is not official, but maybe close enough.
6603  Using Arduino / Interfacing w/ Software on the Computer / Re: Alternative/better IDE on: May 04, 2011, 04:44:20 am
OK I've answered my own question. I downloaded the plugin and after some dicking around got it to work and I like it.

So for those who may follow here's what I've done.

Obviously download the plugin as per instructions

In the editor press F6 and enter this


Into the text box. Note that I like to auto save before the compile (npp_save) and that it seems you have to do the CD so make executes in the correct folder. Also I often work on 2 projects at the same time but in different folders so this is important to me.

This seems to work well, I swap to a different source file in a different tab (and folder), hit CTRL-F6 and it picks up the local makefile. So far so good.

Now I'd like it to highlight the errors and make them clickable. I believe you do this in the "highlight" dialogue (SHFT-F6), I enter

%ABSFILE%:%LINE%: error:*

which is supposed to highlight errors and even make them clickable to go to the error line. So far I haven't got this to work.

Also the console takes up a lot of the editor window but you can just grab it and move out of the editor so it's a separate window, good if you have a large screen.


6604  Using Arduino / Interfacing w/ Software on the Computer / Re: Alternative/better IDE on: May 04, 2011, 03:33:46 am
I've been using Notepad++ for some time, it's a great editor. So far I've found it easy to ALT-TAB to a DOS window and run make from there.

Does NPPexec make this any easier/better? As usual with sourceforge stuff I can't find any documentation.

6605  Using Arduino / General Electronics / Re: LM2576-5.0 problem ... on: May 04, 2011, 03:26:35 am
With my limited PSU experience that looks OK to me, as far as I can trace the appropriate paths look short and of course there's plenty of copper for the various earths. I find that once the ground planes are laid it's very difficult to see what's going on though.

One thing I just noticed, the cathodes of the diodes don't go directly to the regulator but via the inductor, it's a pretty chunky trace but still not a star arrangement.

6606  Using Arduino / Programming Questions / Re: automatic sketch restart on: May 03, 2011, 09:20:31 pm
Your strings have to be individually assigned
That's one thing I hate about PROGMEM, I think there are two ways around it, first is to use a single comma (or whatever) delimited string


And copy it to RAM and chop it up when needed. If there is only a single massive string then this still uses RAM so you are no better off, but if it's 10 medium-sized strings it makes sense.

But also I have put stuff into a struct with fixed-length arrays

typedef struct peripheral {
char name[10];
int addresses [20];

PROGMEM static peripheral peripherals [] = {
{"PORTB", {0x36,0x37,0x38,0xFFFF}},
{"PORTA", {0x39,0x3A,0x3B,0xFFFF}},
{"TMR0", {0x35,0x53,0x52,0x34,0x33,0x32,0x59,0x58,0xFFFF}},
{"TMR1", {0x20,0x50,0x4F,0x47,0x46,0x49,0x4E,0x45,0x4D,0x4C,0x4B,0x4A,0x59,0x58,0x44,0xFFFF}},
{"USI", {0x2F,0x30,0x2E,0x2D,0x31,0xFFFF}},
{"AC", {0x28,0x29,0x21,0x22,0xFFFF}},
{"ADC", {0x26,0x25,0x24,0x27,0x23,0x21,0x22,0xFFFF}},
{"EEPROM", {0x3C,0x3D,0x3E,0x3F,0xFFFF}},
{"MCU", {0x5A,0x5B,0x51,0x48,0x55,0x44,0xFFFF}}

That works and presumably the struct can have any elements you like. The catch is I think that the arrays have to be fixed length, you can't have an array of pointers to PROGMEM strings without going back to individually declaring every string (AFIAK).

6607  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.

6608  Using Arduino / Interfacing w/ Software on the Computer / Re: Reduce Serial Latency on: May 03, 2011, 11:33:01 am
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.

6609  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.

6610  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.

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.

6611  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.

6612  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.

6613  Community / Bar Sport / Re: Bad output, or maybe not on: May 02, 2011, 06:42:27 am
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)

6614  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.

6615  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.

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.

Pages: 1 ... 439 440 [441] 442 443 ... 582