Show Posts
Pages: 1 ... 51 52 [53] 54 55 ... 146
781  Development / Other Hardware Development / Re: Arduino TRE, Metal case on: December 10, 2013, 09:21:13 pm
As soon as it comes available, someone will have cases for sale, check on ebay. I'm itching to get my hands on one, although I shudder to think of the price tag behind the TRE, I remember the Due was well over $100 with shipping to Aus.

782  Using Arduino / Programming Questions / Re: Arduino 1.5.5 default voidloop voidsetup removal on: December 10, 2013, 08:31:29 pm
Before this feature was added, I recall many people asking for it. I agree sometimes its annoying, however it is a blessing when you want to whip up a few examples for people ( sometimes half the code is done smiley )

The one thing I have done is remove the comments from the bare minimum, I always delete them anyway.

You can change the initial sketch to use 'int main' if you like.
783  Using Arduino / Networking, Protocols, and Devices / Re: SPI with multiple slave devices problem (Ehternet, SD, RFM69W) on: December 10, 2013, 08:02:32 pm
All SPI devices share the MISO MOSI and CLK. The board has its own SS which is used to turn Arduino into an SPI slave, leave that at the default settings. you can use any unused pin for an external device SS.

On start up I set all SS pins to disable ( high ), then go from there, instantly enabling a device like you have on start up has always caused me problems. Also verify all devices can run at the same speed, otherwise in between using devices you may have to reconfigure the settings in the SPI library, the default speed should be more than compatible however its always something to check when the idea bucket is empty ( maybe they all support max speed, which isn't default )..
784  Using Arduino / Storage / Re: Couldn't create file on: December 10, 2013, 12:52:33 pm
Where is ECHO_TO_SERIAL defined?
785  Using Arduino / Networking, Protocols, and Devices / Re: Two way rf-communication on: December 10, 2013, 11:17:37 am
For sure you can have a transmitter & receiver pair on each arduino.
I would recommend using something like the NRF24l01(+)  which is a cheapo and looks after a lot of transmission specifics.
786  Using Arduino / Programming Questions / Re: % on: December 10, 2013, 09:45:52 am
Both libraries are using the symbol 'IDLE' for different things, the compiler cannot decide ( and won't guess ) which version to use.

You could go into the keypad library and rename all occurrences of IDLE to something else. You will need to make sure all the keypad files use the new name if IDLE appears in them. Only change the IDLE's in one library otherwise you are back where you started.
787  Using Arduino / Storage / Re: Couldn't create file on: December 10, 2013, 07:35:57 am
@nick: it appears the code is using fat16lib's auto namer, which supports 99 files.

Are you sure you haven't used all the 99 files testing the adafruit code, your code will not overwrite old files ( easy to upload and test a large app  more than 99 times ).

Probably isn't this but, when an Arduino has a serious error ( memory corruption ), it can reset. If the code that does run writes a file, then it will reach the 99 file limit quickly if not noticed.

Also you should try using the newer/improved SD lib:

788  Using Arduino / Storage / Re: storing values in a file on: December 10, 2013, 07:20:19 am
I use a program called HTERM for this, it is a really good serial monitor and the option to save the output is on the main screen.

However you can select the text in the Arduino monitor and copy it ( on windows select the text using the mouse and use keys control+v, doesn't look like there is a right click menu. ).
789  Using Arduino / Networking, Protocols, and Devices / Re: Two way rf-communication on: December 10, 2013, 07:15:34 am
It is two way communication if both modules can send data , just not full-duplex communication. Half-duplex is a turn based communication like walkie talkies.
790  Using Arduino / Programming Questions / Re: print ascii? on: December 09, 2013, 10:44:16 pm
ASCII is a base 10 number ( DEC ).

You can print out a char:
Serial.print( 'a' ); // == a
Serial.write( 'a' ); //== a

Or print the ascii value of a char:
Serial.print( 'a', DEC ); // == 97

791  Using Arduino / Programming Questions / Re: Trouble with digitalWrite on: December 09, 2013, 10:14:13 pm
The motor may require more than 40ma which the pins can't supply. You need to drive an external source with the pin instead.

The Arduino pin may be damaged also.
792  Using Arduino / Networking, Protocols, and Devices / Re: nRF24L01+ - which library to use? on: December 09, 2013, 09:04:59 pm
Why is the (byte *) and "&" operator used here?  I thought the * means "value of" and the & means "address of".

If I have a variable that denotes distance (an int) that I'm trying to send, would I simply put in this?

Mirf.send((byte *)&distance);

both *, & have multiple meanings, you are correct in this instance with &, it is the address of operator.
The * is denoting a pointer type, and a type in brackets is a cast.

Your version would be fine, however the Mirf requires a payload size to be set. Looking at the code you should be able to set the payload size like this:

Mirf.payload = sizeof( int );

//Then send.
Mirf.send((byte *)&distance);
793  Using Arduino / Networking, Protocols, and Devices / Re: Wifi shield and avrdude: stk500_getsync(): not in sync: resp=0x1c on: December 09, 2013, 10:58:25 am
In the link you provided, it says the software pins are d6 & d7, not d2 & d3. Not sure if I'm reading the right text though, haven't got a wifi shield.
794  Using Arduino / Programming Questions / Re: Polymorphic classes not behaving as expected. on: December 09, 2013, 01:06:54 am
From what I can see with quick glance, the code looks fine.
However declare the initial updateColor() prototype as pure virtual, this should hopefully fix the issue:

virtual void updateColor() = 0;

Also have you considered the updateColor as a pure virtual member of colorSource ( no implementation, leave that in colorGenerator ).
795  Using Arduino / Programming Questions / Re: byte mirror code don't work on: December 08, 2013, 02:01:07 am
Nice, I'll add it in.
Pages: 1 ... 51 52 [53] 54 55 ... 146