sfuphantom / DAQ

0 stars 0 forks source link

1D: Consolidate wiring between DAQ board and ESP32 microcontroller #19

Closed rafguevara14 closed 1 year ago

rafguevara14 commented 1 year ago

Hardware docs: https://drive.google.com/drive/u/0/folders/1nM0JWtPDw11XXwn8rOav-SsgN25pjPbE

ESP32 model: https://docs.platformio.org/en/latest/boards/espressif32/esp32dev.html?utm_source=platformio&utm_medium=piohome

arrsh commented 1 year ago

image ESP32 Pinout: https://docs.platformio.org/en/latest/platforms/espressif32.html#platform-espressif32 Required connections:

2,4 : 5V : 5V -- : 3V3 : 3V3 39 : GND : GND 29 : ADC4 : IO32 26 : ADC5 : IO33 36 : GPIO0 : IO0 31 : GPIO2 : IO2 32 : GPIO4 : IO4

DAQ : Pin type: ESP 32 pin name

rafguevara14 commented 1 year ago

You're looking at the wrong pins on the DAQ side for the ADC. If you look at the datasheet, these are alert pins to let us know that the ADC is ready for sampling/conversion. The pins you want are pins 3 and 5 (SCL/SDA) on the DAQ board for I2C peripheral (not SPI like I thought) to go somewhere on the ESP32. Alert pins are still useful tho!

Don't be deceived by the ADC4/5 on the ESP32 they are internal ADCs that we won't use because the input voltage range isn't enough for our application.

image

arrsh commented 1 year ago

Updated as per feedback:

2,4 : 5V : 5V -- : 3V3 : 3V3 39 : GND : GND ADC (I2C and ALERTs) 3 : SCL : IO22 5 : SDA : IO21 29 : GPIO16 : IO16 26 : GPIO17 : IO17 MUX 36 : GPIO0 : IO0 31 : GPIO2 : IO2 32 : GPIO4 : IO4

DAQ side : Pin type: ESP 32 pin name

rafguevara14 commented 1 year ago

LGTM! Moving to done. I'm asking Power where the hardware is. Once we have that we can try connecting everything. Until then, I'll assign you another task and we can talk about it at the next DAQ meeting

arrsh commented 1 year ago

Ack. Thanks