Extension board · Sensors and inputs

9-axis IMU

An orientation sensor board: accelerometer, gyroscope and magnetometer in one chip that can compute heading and tilt itself. It connects to an I2C socket or a Qwiic cable. Reading it needs your own driver.

Top view of the IMU board: a ten-contact socket on the left and right edges, a sensor in the middle and a Qwiic connector near the bottom.
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
9 axesBosch BNO055 with on-chip fusion
0x28 / 0x29I2C address
INT + resetcontacts 3 and 6
I2C + Qwiic3.3 V only
25 mAsupply allowance
40 × 40millimetres, four M3 holes

Tech specs

PurposeReading orientation, heading and rotation rate in experiments with moving parts or robots. Not a safety sensor
SensorBosch BNO055: acceleration, rotation rate and magnetic field, internal oscillator
InterfaceI2C standard and fast mode, address 0x28, or 0x29 with JP4 closed; interrupt output and reset input
Supply3.3 V only; allow 25 mA
Pull-ups3.3 kΩ on SDA and SCL, removable
ConnectorsTwo Gadgeteer type I sockets (Samtec SHF-105, 1.27 mm) and one Qwiic
Size40 × 40 mm, four M3 holes on a 30 mm square
Works withSmoothieboard V2 Prime header GG electrically; no firmware driver
LicenceOpen hardware, CERN-OHL-S-2.0

Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.

Board tour

The numbers on the drawing match the list below it. The board is shown from the component side.

  1. 1
    Input socket I IN (J1) — SDA on contact 8, SCL on 9, interrupt on 3, reset on 6.
  2. 2
    Chain socket CHAIN (J2) — Continues the bus.
  3. 3
    Qwiic connector (J3) — The same bus on a four-way cable.
  4. 4
    Orientation sensor (U1) — Keep magnets, steel and motor wires away from it.
  5. 5
    Bus pull-ups (R1, R2) — 3.3 kΩ resistors.
  6. 6
    Pull-up links (JP1, JP2) — Closed as delivered.
  7. 7
    Address link (JP4) — Close it for address 0x29.
  8. 8
    Chain links (JP3, JP6) — Interrupt and reset; open as delivered.
  9. 9
    Bus chain links (JP8, JP9) — Closed as delivered.
  10. 10
    Capacitors (C1 to C4) — Values follow the Bosch application circuit.
  11. 11
    Mounting hole — One of four M3 holes. Use non-magnetic screws.
Point at a number, or tap it, to read what the part is; the same text is in the list. On a small screen, scroll the drawing sideways.

Pinout

Everything on this board is 3.3 V. Check contact numbering with the power removed.

J1: input socket (I IN)

ContactSignalUsePrime header GG
13.3 VBoard supply3.3 V
25 VPassed to the chain only5 V
3INTInterruptPH2
4, 5, 7Passed throughNot usedPH4, PC0, PH3
6RESETPull low to resetPF15
8SDAI2C dataPF0 (I2C2_SDA)
9SCLI2C clockPF1 (I2C2_SCL)
10GNDGroundGND

J3: Qwiic

PinSignal
1GND
23.3 V
3SDA
4SCL

What you need

An I2C portPrime header GG, or a 3.3 V Qwiic host that tolerates clock stretching.
A cableGadgeteer ten-way or Qwiic.
Non-magnetic screwsSteel disturbs the magnetometer.
Your own driverNone is supplied.

Get started

Minimum wiring: contact 1 to contact 1, 3.3 V; PF0, contact 8 to contact 8, SDA; PF1, contact 9 to contact 9, SCL; contact 10 to contact 10, ground. Prime header GG (J38) IMU J1 contact 1contact 13.3 V PF0, contact 8contact 8SDA PF1, contact 9contact 9SCL contact 10contact 10ground
Four connections for I2C. Interrupt and reset are optional.
  1. Mount the board

    Away from motors, magnets and steel, with the orientation you need.

  2. Connect with the power off

    Use J1 or Qwiic.

  3. Find the device

    Wait for start-up, then read the chip identity register (0x00).

    By the data sheet the device answers at 0x28 and the register reads 0xA0.

  4. Calibrate

    Follow the Bosch calibration movements in your driver before relying on heading.

Configuration

You wantModuleExample
Read orientationNoneNo SmoothieV2 driver for this sensor

There is nothing to add to config.ini.

How it works

The sensor measures motion and magnetic field, fuses them and answers over I2C. Motion and field9 axes U1 BNO055measure and fuse I2CSDA, SCL Your driverread angles
One digital path.

The chip contains the three sensors and a small processor that combines them into orientation. Two grounded protocol pins select I2C. The chip stretches the I2C clock, which the host must support. The reset line is held high on the board and can be pulled low by the controller.

Solder links

Open JP1 and JP2 when another board on the bus already has pull-ups.

Solder links as delivered: JP1 closed; JP2 closed; JP3 open; JP4 open; JP6 open; JP8 closed; JP9 closed. JP1 · closedSDA pull-up JP2 · closedSCL pull-up JP3 · openchain interrupt JP4 · openaddress 0x29 JP6 · openchain reset JP8 · closedchain SDA JP9 · closedchain SCL
The links as delivered. Close one with a small blob of solder across both pads; open it by removing the solder or cutting the copper between the pads.
LinkWhat it doesAs delivered
JP1Connects the SDA pull-upClosed
JP2Connects the SCL pull-upClosed
JP3Joins the interrupt to the chainOpen
JP4Selects address 0x29Open
JP6Joins reset to the chainOpen
JP8Continues SDA to the chainClosed
JP9Continues SCL to the chainClosed

Chaining

Further I2C devices can follow, each with its own address.

The controller's ribbon cable goes to the connector I IN of the 9-axis IMU board. Inside the board each of the ten pins runs through a solder link to the connector CHAIN, where a second ribbon cable continues to the next board. A closed link passes its pin on, an open link stops it. Controller one ten-pin port 9-axis IMU board I IN CHAIN pin 3, interrupt stops here pin 8, SDA passed on pin 9, SCL passed on one solder link per pin Next board sees what is passed on
Chaining: one port of the controller serves two boards. Pin 1 of I IN leads to pin 1 of CHAIN, pin 2 to pin 2, and so on, each through its own solder link. The three lines stand for the ten pins and show the links as delivered. Two boards must never drive the same pin, and a pin that one board uses for a signal is not free for the next. The bus continues; the interrupt stops here.
ContactSignalOn CHAIN
1, 2, 10Power and groundPassed on
3, 6Interrupt, resetStopped by open links
4, 5, 7FreePassed on
8, 9I2CPassed on through closed links

Troubleshooting

SymptomLikely causeWhat to check
No answer on the busWiring, pull-ups, or start-up not finishedTest points; wait after power up
Occasional bus errorsHost does not handle clock stretchingLower the clock or use a host that does
Heading wrong or driftingMagnetic disturbance or no calibrationMove away from steel and motors; calibrate
Answers at 0x29JP4 closedOpen it for 0x28

The board has no indicator lights; use the test points.

Still stuck? Read how to ask for help or see the general troubleshooting guide.

Downloads

FileWhat it is
Schematic (PDF)The circuit diagram
Parts list (CSV)Every component with its value, footprint and part number where one is chosen
Board drawing (PNG)The top view used on this page
3D view, top (PNG)Rendered from the design files
3D view, angled (PNG)Rendered from the design files

Appendix: mounting dimensions

For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the top-left corner with the board seen from the component side. Use non-magnetic hardware.

Mounting drawing of the 9-axis IMU board, component side: outline 40 by 40 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 40 40 0, 0 X Y 1 5.00, 5.00 2 35.00, 5.00 3 5.00, 35.00 4 35.00, 35.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 40 × 40 mm, corners rounded to a 1 mm radius, board thickness 1.6 mm. Drawn from the design files, component side up, in the same orientation as the board tour.
HoleX (mm)Y (mm)DiameterUse
15.005.003.2 mm, not platedMounting, M3 screw
235.005.003.2 mm, not platedMounting, M3 screw
35.0035.003.2 mm, not platedMounting, M3 screw
435.0035.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

Every figure is a design value, a calculated or simulated value, or a manufacturer’s data sheet value, as the last column says. A dash means no figure is given.

ParameterApplies toLowerNominalUpperBasis
SupplyJ1 contact 12.4 V3.3 V3.6 VBosch data sheet
Supply current allowance3.3 V——25 mADesign allowance
Pull-up current, both lines low3.3 V—2.0 mA—Calculated
Rise time, one pull-up set, 100 pFSDA, SCL—280 ns300 nsSimulated; limit for 400 kHz
Low level, two pull-up setsSDA, SCL—0.12 V0.4 VSimulated

Component stress limits

PartLimitUse on this board
Any signal3.6 V maximumDo not connect 5 V logic
Capacitors10 V and 16 V3.3 V

Appendix: simulation

The I2C bus loading was simulated with ngspice with 100 pF of bus capacitance.

Each simulated value (yellow mark) against its allowed range (green band). Rise time 30 to 70 %, one pull-up set, 100 pF (40...280 ns Rise time with two pull-up sets140 ns Low level with two pull-up sets116 mV
Simulated value (yellow) against the limit used for it (green). Each bar has its own scale.
ResultSimulated valueLimitOutcome
Rise time 30 to 70 %, one pull-up set, 100 pF (400 kHz limit 300 ns)280 nsat most 300 nsWithin
Rise time with two pull-up sets140 nsat most 300 nsWithin
Low level with two pull-up sets116 mVat most 400 mVWithin

Not simulated: the sensor, its fusion and magnetic disturbance.

Appendix: datasheet

The first page of the sensor data sheet. Click the page to open the PDF.

First page of the BNO055 intelligent 9-axis absolute orientation sensor datasheet
BNO055 intelligent 9-axis absolute orientation sensor — Bosch Sensortec, 117 pages.

See all boards on the extension boards page.

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.