Hello,
I'm a noob and want to ask a naive question.
Let's assume I have a GY-521 sensor module, a HC-05 Bluetooth module, and an Arduino Uno.
Would it be possible to send the GY-521 data via the HC-05 Bluetooth module to a (remote) Arduino board?
So what it should do is fowarding the (raw) sensor data to the Arduino...
I guess it's not doable that easy (just the two modules). What would be the minimal (hardware) addition (in terms of operability and hardware dimensions) to make GY-521 and HC-05 work together, sending data to a remote µC-board?!
Thanks for feedback!
You obviously need a second Arduino to interface the GY-521 and HC-05 modules, and a second (slave) Bluetooth module to pair with. As for choice of second Arduino, anything with hardware Serial and I2C will make life easier, the only other consideration would be power supply. Something small with no USB; http://www.arduino.cc/en/Main/ArduinoBoardProMini perhaps?
Personally, I would use 433MHz RF for inter-µC communications and only use Bluetooth to talk directly to a PC or similar.
Thank you for your feedback, Martin-X.
The hint with the 433MHz RF units was great - transmitter/receiver sets are available for less than € 1,50!
The Arduino Pro Mini looks nice, but I would use this one instead:
It has USB on board and is even smaller than the Pro Mini. What do you think?
So to summarize:
On one side I would have the GY-521 sensor, a "mini board", and the RF transmitter;
and on the other side I would have my development board (or later on another "mini board")
with the RF receiver. Do I see this correctly?
Yes, I think you've got the idea.
The Trinket is based on the ATTiny85, which doesn't have many I/O pins. You may need something bigger that can handle SPI for the RF, and I2C for your sensor. Another drawback of the '85 is less flash memory than a 328 based board, you may run out of space if you try to use the standard libraries for radio and GY-521 processing.
Thank you, Martin-X.
I'll consider these limitations when my project is "ready for it".