![](https://benshobbycorner.nl/hobbycorner/images/bens.gif)
![](https://benshobbycorner.nl/hobbycorner/images/bttr.gif) |
Here you can find
some details about the Arduino Mega 9DOF Bluetooth Shield
Work in progress, have to add the tools and some comments.
Last change on
10/17/2014
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_10.JPG)
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_11.JPG)
You want a bare PCB? Just email me.
[email protected]
We used these sensors, bought at
www.sparkfun.com
ADXL345, HMC5843, LY530, LPR530 (approx. 52
dollar)
Have used these bluetooth modules, bought
at www.tme.eu
BTM-112 or BTM-222 (approx. 15 dollar)
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_29.JPG)
Three combinations of the same board, still one
combination to go.... On the right a complete board with all sensors and
with a Class 2 bluetooth module. On the top a board with just a Class 2
bluetooth module and at the bottom a Class 1 bluetooth board. We are
busy building a fourth one, a standalone one with an Atmega328p on
board.
|
|
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_25.JPG)
This works great. Mix solder paste with
flux and use this only on the bottom-pads of the sensors.
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_19.JPG) |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_20.JPG) |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_21.JPG) |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_22.JPG) |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_23.JPG) |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_24.JPG) |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_26.JPG)
The board can also be used standalone. You
have to put an Atmega328p on the board, USB-connector, FT232RL.
![](https://benshobbycorner.nl/hobbycorner/images/standalone.jpg)
What is the impact on the Arduino Mega
when you mount this shield?
Used are:
SCL (21), SDA (20)
RXD1/TXD1
(19/18 - when using Bluetooth)
Analog 0 - ZOUT-4X, Analog 1 - XOUT-4X,
Analog 3- YOUT-4X
Analog 6 - Vref2, Analog 7 - Vref1
Digital 34 - ST, Digital 33 - PD and Digital 32 - HP.
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_33.JPG)
![](https://benshobbycorner.nl/hobbycorner/images/ADXL345.jpg)
On the right the ADXL345, connected to
the I2c-bus, and when connected well, you will find it in the
I2c-scanner.
![](https://benshobbycorner.nl/hobbycorner/images/mega_scanner.jpg)
This is the Bascom-AVR code for the
I2c-scanner.
When the ADXL345 and the HMC5843 are fixed on the board you should
see this in Hyperterminal
![](https://benshobbycorner.nl/hobbycorner/images/i2c_scan_mega.jpg)
On &HA6 (ADXL345) and on &H3C
(HMC5843) you see your devices.
In the datasheet of the HMC5843 I read
about 7-bit address &H1E,
bit 0 of the 8-bit address of this device is the Read/Write bit.
001 1110 is &H1E but if you put the
Read or the Write bit at the end
you will get 0011 1100 and that is our &H3C
Same for the ADXL345
101 0011 is &H53 but if you add the Read or Write bit
you get 1010 01100 &HA6
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_34.JPG) ![](https://benshobbycorner.nl/hobbycorner/images/HMC5843.jpg)
HMC5843 magnetometer on
the right.
When we increased the C9 from 10 uF to 20 uF we have seen a big
improvement.
![](https://benshobbycorner.nl/hobbycorner/images/LY530.jpg)
In the middle LY530 - Yaw. |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_35.JPG)
![](https://benshobbycorner.nl/hobbycorner/images/LPR530_1.jpg)
LPR530 - Pitch and Roll.
![](https://benshobbycorner.nl/hobbycorner/images/LPR530_2.jpg)
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_17.JPG) |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_32.JPG)
![](https://benshobbycorner.nl/hobbycorner/images/levelconverter.jpg)
Level conversion is done
between the Arduino Mega RXD1/TXD1 and the BTM-112/BTM-220.
SMD BC848 (NPN) and BC858 (PNP).
![](https://benshobbycorner.nl/hobbycorner/images/BTM-112.jpg)
BTM-112 bluetooth Class 2 on top
![](https://benshobbycorner.nl/hobbycorner/images/BTM-220.jpg)
Or, a BTM-220 bluetooth Class 1 on the
bottom |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_28.JPG)
Antenna, 30,61 mm to be exact
![](https://benshobbycorner.nl/hobbycorner/images/einsteinshow.jpg)
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_30.JPG)
![](https://benshobbycorner.nl/wp-photos/20100728-193431-3.jpg)
How do you get the name in your
Bluetooth-module? And how do you put it on 57600 baud?
![](https://benshobbycorner.nl/hobbycorner/images/bluetooth_cmd.jpg)
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_31.JPG)
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_12.JPG)
|
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_13.JPG) |
|
![](https://benshobbycorner.nl/hobbycorner/images/9DOF_14.JPG)
Arduino Mega, 9DOF Bluetooth Shield and on
top a prototype of a LCD Shield.
|
|
Still two things to work out. A
Nokia 6100 display and a stand-alone 9DOF Bluetooth version.
Well, display working. We had to make a
small DC-DC step-up converter to get about 9 volts for the backlight of
the Nokia 6100. Have tested with the Epson and with the Philips version.
Both working correct.
![](https://benshobbycorner.nl/hobbycorner/images/9dof_display_700.jpg)
And here the DC-DC step
up converter in it's place
![](https://benshobbycorner.nl/hobbycorner/images/dc_dc_700.jpg)
Tested with a
MC34063 the way Sparkfun is doing it's step-up conversion,
but the results with a MAX202 were better. Still have to figure
out, do you
blow-up a MC34063 when there is no load on it's output? |
![](https://benshobbycorner.nl/hobbycorner/images/mannetje.jpg) |
![](https://benshobbycorner.nl/hobbycorner/images/dc_dc_schema.jpg)
You only need three
capacitors to get the 9.5 volts.
![](https://benshobbycorner.nl/hobbycorner/images/dc_dc_pcb.jpg)
Here the PCB, it is very
SMALL
|
|
You want to see it at
work? Click on the picture.
![](https://benshobbycorner.nl/wp-photos/20100726-123208-2.jpg)
|
Thanks
to: |
![](https://benshobbycorner.nl/hobbycorner/images/xnederland.gif)
Thanks
to Mark Alberts
the creator of Bascom-AVR
www.mcselec.com
![](https://benshobbycorner.nl/hobbycorner/images/xduits.gif)
Thanks to Natalius
Kiedro
He wrote the Bascom-AVR KixRazor software
![](https://benshobbycorner.nl/hobbycorner/images/xnederland.gif)
Thanks to Theo Kleijn
www.pa0kn.nl
![](https://benshobbycorner.nl/hobbycorner/images/USA.gif)
Thanks to Sparkfun
www.sparkfun.com
Flags can be downloaded at
www.3DFlags.com
|
Ben
Zijlstra - Ben's HobbyCorner - 2010 |
|