Building an MCU Project


To get the LSM6DSRTR (U3) talking over I²C, you still need to tie its interface-select and I/O-supply pins. Here’s what I recommend:

Table


Pin on U3NetPurpose
VDD_IO (pin 5)VDDPowers the sensor’s I/O domain
CS (pin 12)VDDDisables SPI mode so I²C takes over
SDO/SA0 (pin 1)GNDSelects the default I²C address (0x6A)
(Optional) You may also want to pull up SDA if you haven’t yet.
Shall I apply these net connections now?
Please help me with SW4. When enabled it should power the rest of the circuit from BT1 battery. When disabled it should power off the device.
Here are the updated net connections to configure SW4 as the main power switch:

Table


NetConnections
BT1 - SW1SW4:3, BT1:POS
VDD_swSW4:2, U4:VDD, C1:1
Would you like to apply these changes?
applied changes.

U4
PowerNet1
C1
SW3 ~ - U4 PA2
PC7 - CLK
PowerNet1
PowerNet1
PC6 - DIO
PowerNet1
SW2 ~ - U4 PA1
R1
Resistance
10kΩ
R2
Resistance
10kΩ

roundcount

roundcount thumbnail