Quadcopter help!

Hi

I am building a quad and i am a little bit confused because i intend to control it using a bluetooth module with an android aplication, my question is and i hope you can help me, can i use this module to control it and at the same time send information like pictures and videos to a database in my personal computer?
or i need two bluetooth modules? i mean one connected to Arduino A and the other to the Arduino B (the two Arduino's will be connected via 12C).

I dont know very much about microcontrollers but is possible to connect 2 bluetooth modules to one Arduino UNO? I think that this is impossible cuz atmega328p-pu only have two RX and TX pins.

Suppose that i already connect the two Arduino UNO together and the modules too, one bluetooth to the Arduino A and the other to the Arduino B, my other question is, can i use one bluetooth module to control the fly system and the other module to send data to my computer?

I would appreciate the support.

can i use this module to control it

That would depend on what "this module" means.

and at the same time send information like pictures and videos to a database in my personal computer?

Where is the video data coming from?

i mean one connected to Arduino A and the other to the Arduino B (the two Arduino's will be connected via 12C).

You seem to have made an awful lot of decisions made on no information. Time to back up.

I dont know very much about microcontrollers

Clearly.

but is possible to connect 2 bluetooth modules to one Arduino UNO?

Possible, yes. Likely to be useful, no.

I think that this is impossible cuz atmega328p-pu only have two RX and TX pins.

It has one each, connected to hardware. It can support SoftwareSerial on other pins, which can be used to talk to the bluetooth device(s), though.

Suppose that i already connect the two Arduino UNO together and the modules too, one bluetooth to the Arduino A and the other to the Arduino B, my other question is, can i use one bluetooth module to control the fly system and the other module to send data to my computer?

Yes. Though if you expect the Arduino to send pictures and video to the PC, you'll need to adjust your expectations to match reality.

PaulS:
That would depend on what "this module" means.

the module is a Bluetooth HC-06

PaulS:
Where is the video data coming from?

The videos and photos will come a VGA camera module (i am planning to stream too if is possible)

PaulS:
You seem to have made an awful lot of decisions made on no information. Time to back up.

You're right i'm new at this that is why i am asking for help!

PaulS:

PaulS:
but is possible to connect 2 bluetooth modules to one Arduino UNO?

Possible, yes. Likely to be useful, no.

so inefficient to control the flight system ?

PaulS:
It has one each, connected to hardware. It can support SoftwareSerial on other pins, which can be used to talk to the bluetooth device(s), though.

I understand, it is how to emulate those ports?

As far as control Bluetooth would be easily workable, but for sending data (pictures/video) as you suggest Bluetooth is not a great idea as the 1382400 max baud rate on the HC-05 would make for long transfer times unless you pictures/video are either very small or heavily compressed.

1382400 bits per second = 0.1728Mb per second = 5.78 seconds per megabyte.

EDIT: for more perspective uncompressed 640x480 8 bit RGB = 921600 bits per frame = 1.5 frames per second at 1382400

BH72:
As far as control Bluetooth would be easily workable, but for sending data (pictures/video) as you suggest Bluetooth is not a great idea as the 1382400 max baud rate on the HC-05 would make for long transfer times unless you pictures/video are either very small or heavily compressed.

1382400 bits per second = 0.1728Mb per second = 5.78 seconds per megabyte.

EDIT: for more perspective uncompressed 640x480 8 bit RGB = 921600 bits per frame = 1.5 frames per second at 1382400

I will use a 640x480 camera resolution which has 30 fps and the max baud rate is 115200, if i just use the camera only for sending pictures will be ok?

BOWTeam6:
I will use a 640x480 camera resolution which has 30 fps and the max baud rate is 115200, if i just use the camera only for sending pictures will be ok?

If you are not concerned about getting them right away then it is not a problem, at 115200 you are looking at about 8 seconds minimum per picture (dependent on bit depth).

BH72:
If you are not concerned about getting them right away then it is not a problem, at 115200 you are looking at about 8 seconds minimum per picture (dependent on bit depth).

Yes its not a problem, it doesn't matter how much time take to send a picture to my pc i just want to send it!


i have been reading on internet and i found that i can emulate an additional serial port on Arduino UNO in order to communicate with others serial devices at the same time like HC-06, if you read my first post you will notice that i need one bluetooth for the fly control system and other for sending data from the Arduino to my PC in a database.

The thing is, this library AltSoftSerial (AltSoftSerial Library, for an extra serial port) emulate another serial port on ATMEGA328P-PU chip, the question is, if i emulated this serial port in order to connect two bluetooth module as HC-06 or HC-05 on a single Arduino UNO this new function allow me to use the default ones? which i need and two new ones? or just allow to use one?

You can indeed use hardware serial as well as software serial at the same time.

BH72:
You can indeed use hardware serial as well as software serial at the same time.

So i just need to figure out how will be the code to comunicate with both Bluetooth!

Thanks dude.