The diagram shows the HMC5883L running off of a 3V power supply, and
the Pro Mini running off of a 5V barrel jack connector. Keep in mind your
power supplies could be different than the ones pictured above (for
example, using a Lipo battery instead of AA batteries), but you will still need
to have a power supply for the lower voltage side of the system and a
separate supply for the higher voltage side.
Once you have the boards physically connected, you are good to go! You
don’t need to use any special code with the PCA9306 board, and you can
simply use any example sketch available for your sensors. In this case, we
are using the example HMC5883.ino sketch.
Going Further
Now that you know how to use the logic level shifter, it’s time to go and use
this in your own project! Check out the additional resources below if you
have any questions, or leave us feedback on the tutorial itself. Best of luck
interfacing with all of your sensors!
Resources
• PCA9306 Datasheet
• Breakout Board Schematic
• Breakout Board Eagle Files
• GitHub Repository
Need more level shifting?! Check out these other level shifting hookup
guides:
• Logic Level Converter Hookup Guide
• Bi-Directional Logic Level Converter Hookup Guide
Page 3 of 3
2
12
201
htt
s://learn.s
arkfun.com/tutorials/
ca930
-leve
-translato
-hooku
-
uide?
a=1.17805631.725293211.1
...