wecodewithmichaelmccloskey / Smart_Breadboard

MIT License
1 stars 0 forks source link

Current Sensor PI connections #18

Closed creechelseaa closed 1 year ago

creechelseaa commented 1 year ago
creechelseaa commented 1 year ago

Showing schematic of connecting the current sensor to the Pi. Vin- is left unconnected since that connection will be used for desired circuits:

Current Sensor Connections to Pi.pdf

wecodewithmichaelmccloskey commented 1 year ago

@wecodewithmichaelmccloskey please review

creechelseaa commented 1 year ago

To connect the INA169 with the Pi, a MCP3004 will be used as an ADC between the sensor and the Pi.

For the INA169:

For the potentiometer:

For the MCP3004:

INA169_MCP3004_Pi_connection

wecodewithmichaelmccloskey commented 1 year ago

This schematic looks good for the most part! I'm not 100% sure, but do you also need to connect DGND on the MCP3004 to ground?

This schematic is for testing purposes only, as in the final product we will not be using a potentiometer to change current flow. Instead, we will be measuring the current flow from the Pi into the breadboard portion of the project, so there should be a schematic that reflects that design.

Also, since both our parts (ADC and display) use SPI we will need to discuss which CE pins on the Pi will be used for each of our parts. This may also affect how our working code functions.

creechelseaa commented 1 year ago

I was able to get results of the liveness of the current sensor using the testing schematic from issue #23. Since the potentiometer was used to vary the output current readings, I took out the potentiometer and labeled Vin- and Vin+ as the probes for testing desired areas in the circuits.

To connect the INA169 with the Pi, a MCP3004 will be used as an ADC between the sensor and the Pi.

For the INA169:

For the MCP3004:

Image

creechelseaa commented 1 year ago

I changed the VIN+ connection on the INA169 and updated the schematic accordingly

wecodewithmichaelmccloskey commented 1 year ago

Looks good