Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Re: Arduino ADK r3 + Samsung Galaxy S3 on: January 13, 2013, 09:06:34 am
http://source.android.com/tech/accessories/index.html
2  Using Arduino / Networking, Protocols, and Devices / Re: Arduino ADK r3 + Samsung Galaxy S3 on: January 13, 2013, 07:44:52 am
make sure to set your phone as an accessory in the settings, that might help.
3  Using Arduino / Networking, Protocols, and Devices / Re: SoftwareSerial with Mega pins confusion on: January 12, 2013, 11:46:27 pm
I get it now. I did not realise Serial1, 2 and 3 were Instances of HardwareSerial. dough!
4  Using Arduino / Networking, Protocols, and Devices / Re: SoftwareSerial with Mega pins confusion on: January 12, 2013, 08:37:29 pm
Is there a place where I can read how to use HardwareSerial, cause I can't seem to find any examples or tutorials. Hmmmm


Thanks
5  Using Arduino / Networking, Protocols, and Devices / Re: SoftwareSerial with Mega pins confusion on: January 12, 2013, 08:13:07 pm
Ah that explains everything.
6  Using Arduino / Networking, Protocols, and Devices / SoftwareSerial with Mega pins confusion on: January 12, 2013, 07:51:10 pm
Hi guys,

I am a bit confused with assigning pins for SoftwareSerial. So I have Mega ADK board and a Bluetooth Silver Mater that I want to connect. I've seen examples of SoftwareSerial using pins 2-13 no problem. However, I have a motor shield which uses up those pins.

So I thought ok I'll just use other pins. Know, I've found that on mega, there is only a set of pins that you can use
Quote
Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69

So at first I was a bit lost with 50-69 pins. But then I worked out that ok 63 = 15(RX3), 64 = 14(TX3). So I plugged the TX,RX pins into 14,15 and I thought of we go right?
Code:
SoftwareSerial bluetooth(15,14);
No.

No matter which pins I use, nothing gets received.

Can I not use these pins because they for Serial3? I am not using Serial3 anywhere.

Thanks in advance.
7  Using Arduino / Programming Questions / Multiple timers halt execution on: January 07, 2013, 04:52:02 pm
Hi all tinkerers,

I have this issue with using timer 0 and any other timer at the same time to call functions.
if I have
Code:
Timer1.initialise(200000);
 Timer1.attachInterrupt(<function_name>);

 Timer2.initialise(100000);
 Timer2.attachInterrupt(<function_name>);

The code halts on the second timer. I know that my timers work, because the functions do get called when there is only one timer running.


I am baffled.
8  Using Arduino / Networking, Protocols, and Devices / Re: Transmitting buffer over Serial missing dropping bytes? on: December 28, 2012, 06:43:52 pm
Thank you gentlemen, I have sorted it out by changing the buff type to uint8_t.

Thanks again. smiley
9  Using Arduino / Networking, Protocols, and Devices / Re: Transmitting buffer over Serial missing dropping bytes? on: December 28, 2012, 05:36:57 pm
I am using SoftwareSerial for the bluetooth but it seems that it does not like it:

Code:
v2.cpp: In function 'void sendBluetooth(message_t)':
v2:180: error: invalid conversion from 'char*' to 'const uint8_t*'
v2:180: error: initializing argument 1 of 'virtual size_t Print::write(const uint8_t*, size_t)'

Should I need some different serial library?
10  Using Arduino / Networking, Protocols, and Devices / Transmitting buffer over Serial missing dropping bytes? on: December 28, 2012, 05:08:41 pm
Hi Arduino fans,

I have this weird thing going with my program. Basically I am transmitting a char buffer over Serial (bluetooth) but some parts get lost somewhere.

Example:
Code:
Serial bluetooth;

char buff[5];

buff[0] = 15;
buff[1] = 0;
buff[2] = 0;
buff[3] = 3;
buff[4] = 0;

bluetooth.write(buff);
bluetooth.write(13); <--- new line character

What happens is that I do receive the 15, but the rest is gone until the 13 (new line character)
However, if the buffer contains:

Code:
buff[0] = 15;
buff[1] = 1;
buff[2] = 1;
buff[3] = 3;
buff[4] = 0;
Then its ok.

--------

My Android app logic is:
Code:
byte b = inputstream.read();

if(b==13) // the delimeter{
 process the whole buffer;
}else{
add b to buffer;
}
What am I missing?

Thanks guys.
11  Using Arduino / Motors, Mechanics, and Power / Re: Multiple motor with Arduino Uno Advice on: February 21, 2012, 06:18:33 pm
Ok, So I think I would need 2 continuous-rotation servos that take up 1 Arduino pin each. Is that what are actually called? Continuous-rotation servos?

Thanks
12  Using Arduino / Motors, Mechanics, and Power / Multiple motor with Arduino Uno Advice on: February 18, 2012, 10:26:48 am
Hi all Arduino hackers,

I have a project in my head and I am very new to this Arduino world. For my project I need to drive 3 motors. 2 motors need to be drive motors and 1 just for turning wheels. I currently have a motor that would be for turning wheels. I am very lost with the drive motors: brushless, stepper, H bridge. Could any one explain what I need to be able to drive those 2 motors?

Thanks

F
13  Using Arduino / Networking, Protocols, and Devices / Re: Hydrogen wifi shield on: January 28, 2012, 09:41:59 am
Bought one today. Excited smiley
Pages: [1]