Show Posts
Pages: 1 ... 13 14 [15]
211  Forum 2005-2010 (read only) / Troubleshooting / Re: PC C Compiler vs Arduino C Compiler on: December 27, 2010, 02:29:37 pm
Well in your Arduino example this line in the for loop:

resul[addr] = (addr+2)*(addr-1);

If addr = 255 the result is 65,278 but if addr = 256 the result is 65,790. The largest number that can be stored in an unsigned int on an Arduino is 65,535. If you change your unsigned int to unsigned long it should overcome this problem.
212  Forum 2005-2010 (read only) / Development / Re: Mega reset from code on: December 13, 2010, 11:02:43 am
I've found that dereferencing a NULL pointer will reset my code. I found this out by accident and didn't want it :-(
213  Forum 2005-2010 (read only) / Interfacing / Re: Beta version of GLCD library version 3 on: October 02, 2010, 03:11:46 pm
Thanks for that. That must have taken a while to write.
Very comprehensive. I like the idea of using IDE cables, I have quite a few of them knocking about.

214  Forum 2005-2010 (read only) / Interfacing / Re: Beta version of GLCD library version 3 on: October 01, 2010, 01:02:49 pm
I'm using an Mega. Would it be possible with this library to drive multiple displays? I'm using the displays just for text.
215  Forum 2005-2010 (read only) / Interfacing / Re: 1x1:8 Digital Demultiplexer question on: December 08, 2010, 06:46:38 pm
No. The chip won't work the way you want. You'd be better off following this tutorial if you want to save pins:

http://www.arduino.cc/en/Tutorial/ShiftOut

You can keep adding more 595 chips without using any more Arduino pins.
216  Forum 2005-2010 (read only) / Interfacing / Re: two arduino's talk back and forth? on: November 26, 2010, 04:51:48 am
@gardner

I'd be interested in seeing your protocol and code.
217  Forum 2005-2010 (read only) / Interfacing / Re: ULN2003A alternative on: November 25, 2010, 08:17:32 am
Why not just wire two ULN2003 in parallel. That way you can run 1000mA per strip.
218  Forum 2005-2010 (read only) / Interfacing / Re: I2C to RS422/485 on: November 24, 2010, 03:08:19 pm
If you're looking for full duplex RS422 you could try using a DS8921
Pages: 1 ... 13 14 [15]