Show Posts
Pages: 1 ... 28 29 [30] 31 32 ... 116
436  Using Arduino / Programming Questions / Re: matrix library on: December 28, 2013, 01:49:24 pm
Those matrix sizes won't cause any problems. However, just so you know, if you were using double floating point elements (64 bits) the Mega only does 32-bit floating point.
You will have to write whatever matrix operations are needed yourself.

Pete
437  Using Arduino / Programming Questions / Re: matrix library on: December 28, 2013, 12:55:49 pm
That code is written for the Microsoft or Borland C/C++ compilers and uses a lot of other support libraries.
I doubt that there's any way to get it to compile as-is on an Arduino. If you are only going to use a small number of matrix operations it would be easier to write them yourself - perhaps extracting some of the code from that file.
Which Arduino do you have and what size of matrices are you going to use?

Pete
438  Using Arduino / Programming Questions / Re: Ardweeny simple interrupt test - fires constantly on: December 26, 2013, 10:06:37 pm
The "copy for forum" is a nuisance because, as you've found, it doesn't do what it implies.

Pete
439  Using Arduino / Programming Questions / Re: Ardweeny simple interrupt test - fires constantly on: December 25, 2013, 07:31:20 pm
P.S. IIRC you also have to declare pin 2 as an input before attaching the interrupt.

P.P.S put your code inside code tags - not quote tags.

Pete
440  Using Arduino / Programming Questions / Re: Ardweeny simple interrupt test - fires constantly on: December 25, 2013, 07:29:16 pm
The attachInterrupt(0,...) actually uses digital pin 2 - and attachInterrupt(1,...) uses pin 3.
You'll have to rewire your LCD so that it doesn't use pin 2.

Pete
441  Using Arduino / Project Guidance / Re: Temperature sensing and time application issues with DS18B20 on: December 24, 2013, 08:33:02 pm
Quote
I have never heard of the skip ROM procedure
Try reading the datasheet. Page 11.

Pete
442  Using Arduino / Networking, Protocols, and Devices / Re: Advice for a low cost GPS to Leonardo solution?! on: December 24, 2013, 02:42:38 pm
Is this cheap enough?
http://www.adafruit.com/products/746

Pete
443  Using Arduino / Project Guidance / Re: Talkie library + a little GLCD help on: December 24, 2013, 02:18:52 pm
0x doesn't mean zero times the number that follows. It means that the number which follows is represented as a hexadecimal number instead of decimal. e.g. 0x10 represents decimal 16.

Pete
444  Using Arduino / Project Guidance / Re: Temperature sensing and time application issues with DS18B20 on: December 24, 2013, 02:13:58 pm
You don't have to convert them consecutively. There is a SKIP ROM command which you can issue on the bus which tells all of the DS18B20 to execute the next command without first checking for their own address. Then you just issue the temperature conversion command and wait for 750ms after which they will all have finished their conversion and you can read each one.
Also, the 750ms delay is only required if you use the default 12 bit precision (to a sixteenth of a degree). If you set the devices to use 9 bit precision (to half a degree) the required delay is only about 95 milliseconds.

Pete
445  Using Arduino / Programming Questions / Re: what wrong help please on: December 24, 2013, 10:34:18 am
Fix up your code: How to post code properly

Pete
446  Using Arduino / Networking, Protocols, and Devices / Re: DAC attached to the I2C, but also want to use adc? on: December 23, 2013, 05:39:38 pm
You don't use the Arduino's ADC commands to use the external DAC. If you wire up A4 and A5 to use the I2C digital protocol you can't access the ADC on those pins but there are others free.

Pete
447  Using Arduino / Programming Questions / Re: What is "long unsigned int" ?? variable on: December 23, 2013, 05:31:31 pm
The problem is in the part of the code that you haven't posted. The error message hints at it:
Quote
Atlas_2014_6:657: error: call of overloaded 'LCD_Debug( .... )' is ambiguous

It is what is calling LCD_Debug that is causing the problem. That is why we need to see all your code.

Pete
[EDIT] Thanks AWOL.
448  Products / Arduino Due / Re: Arduino Due serial problem with GPS on: December 23, 2013, 05:22:46 pm
Try Serial.write instead of println.

Pete
449  Using Arduino / Sensors / Re: I2C basics - what am I doing wrong? on: December 23, 2013, 04:00:48 pm
I have no idea what those numbers mean. Post the code which produces them.
And, I've never used this device so I can only go by what the datasheets say.

Pete
450  Using Arduino / Sensors / Re: I2C basics - what am I doing wrong? on: December 23, 2013, 09:49:46 am
I should read the sheet more carefully!
Quote
The slave address of the MPU-9150 is b110100X

This is 0x68 (or 0x69).

Pete
Pages: 1 ... 28 29 [30] 31 32 ... 116