I want to use a mcp3008 to add analog hardware pins to my pi. I am using a 5 volt sensors. I think I need a level shifter from 3.3v to 5volts. Do I used the level shifter before the mcp3008 or after? What is the best way to level shift a pi? Thanks
I think you can use the level shifter before or after. In theory, I think it should give the same results.
Are you sure your sensors require 5V? Nowadays, most sensors are compatible with 3.3V and 5V. So, you wouldn’t need a level-shifter.
To level shift, I use this module: Logic level converter module BSS138