Browse Source

swapped GPIO pins for SCL and SDA, because GPIO12 is a special pin that must not be pulled high during boot

master
Youen Toupin 3 years ago
parent
commit
a91d56c390
  1. 4
      ESP32/src/vehicle-monitor.cpp
  2. 33
      schema/MCU_board/MCU_board.kicad_pcb
  3. 4
      schema/MCU_board/MCU_board.kicad_prl
  4. 44
      schema/MCU_board/MCU_board.kicad_sch

4
ESP32/src/vehicle-monitor.cpp

@ -26,8 +26,8 @@ ADC batterySensor(39);
Dps310 pressureSensor = Dps310(); Dps310 pressureSensor = Dps310();
const int8_t speedSensorPin = 13; const int8_t speedSensorPin = 13;
const int8_t debugLedPin = 2; const int8_t debugLedPin = 2;
const int8_t I2C_SDA = 12; const int8_t I2C_SDA = 15;
const int8_t I2C_SCL = 15; const int8_t I2C_SCL = 12;
const float wheelDiameterInches = 20; const float wheelDiameterInches = 20;
const int numImpulsesPerTurn = 2; const int numImpulsesPerTurn = 2;

33
schema/MCU_board/MCU_board.kicad_pcb

@ -84,7 +84,7 @@
(net 7 "Net-(J4-Pad2)") (net 7 "Net-(J4-Pad2)")
(net 8 "Net-(U1-Pad12)") (net 8 "Net-(U1-Pad12)")
(net 9 "Net-(J5-Pad2)") (net 9 "Net-(J5-Pad2)")
(net 10 "Net-(J4-Pad4)") (net 10 "Net-(U1-Pad18)")
(net 11 "unconnected-(U1-Pad1)") (net 11 "unconnected-(U1-Pad1)")
(net 12 "unconnected-(U1-Pad10)") (net 12 "unconnected-(U1-Pad10)")
(net 13 "unconnected-(U1-Pad4)") (net 13 "unconnected-(U1-Pad4)")
@ -159,7 +159,7 @@
(footprint "Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical" (layer "F.Cu") (footprint "Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical" (layer "F.Cu")
(tedit 59FED5CC) (tstamp 40a6c4e4-0163-48c8-92ed-81a75ba9fd9c) (tedit 59FED5CC) (tstamp 40a6c4e4-0163-48c8-92ed-81a75ba9fd9c)
(at 180.34 86.36) (at 180.34 91.44)
(descr "Through hole straight pin header, 1x04, 2.54mm pitch, single row") (descr "Through hole straight pin header, 1x04, 2.54mm pitch, single row")
(tags "Through hole pin header THT 1x04 2.54mm single row") (tags "Through hole pin header THT 1x04 2.54mm single row")
(property "Sheetfile" "MCU_board.kicad_sch") (property "Sheetfile" "MCU_board.kicad_sch")
@ -198,9 +198,9 @@
(pad "2" thru_hole oval (at 0 2.54) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (pad "2" thru_hole oval (at 0 2.54) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 7 "Net-(J4-Pad2)") (pinfunction "VCC") (pintype "power_in") (tstamp c8b019d7-0440-4702-b7bc-0c6e98e593c6)) (net 7 "Net-(J4-Pad2)") (pinfunction "VCC") (pintype "power_in") (tstamp c8b019d7-0440-4702-b7bc-0c6e98e593c6))
(pad "3" thru_hole oval (at 0 5.08) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (pad "3" thru_hole oval (at 0 5.08) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 8 "Net-(U1-Pad12)") (pinfunction "SDA") (pintype "bidirectional") (tstamp fa36be4e-7de9-478f-a4ef-c229ac16c103)) (net 10 "Net-(U1-Pad18)") (pinfunction "SDA") (pintype "bidirectional") (tstamp fa36be4e-7de9-478f-a4ef-c229ac16c103))
(pad "4" thru_hole oval (at 0 7.62) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (pad "4" thru_hole oval (at 0 7.62) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)
(net 10 "Net-(J4-Pad4)") (pinfunction "SCL") (pintype "input") (tstamp fc991e31-8b48-465c-9197-72f4fa1bee7e)) (net 8 "Net-(U1-Pad12)") (pinfunction "SCL") (pintype "input") (tstamp fc991e31-8b48-465c-9197-72f4fa1bee7e))
(model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.54mm.3dshapes/PinHeader_1x04_P2.54mm_Vertical.wrl" (model "${KICAD6_3DMODEL_DIR}/Connector_PinHeader_2.54mm.3dshapes/PinHeader_1x04_P2.54mm_Vertical.wrl"
(offset (xyz 0 0 0)) (offset (xyz 0 0 0))
(scale (xyz 1 1 1)) (scale (xyz 1 1 1))
@ -468,7 +468,7 @@
(pad "17" thru_hole circle (at 25.4 33.02) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) (pad "17" thru_hole circle (at 25.4 33.02) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask)
(net 6 "Net-(J4-Pad1)") (pinfunction "GND") (pintype "power_in") (tstamp 8382be0b-64da-434d-b3bb-5bc1d436be2d)) (net 6 "Net-(J4-Pad1)") (pinfunction "GND") (pintype "power_in") (tstamp 8382be0b-64da-434d-b3bb-5bc1d436be2d))
(pad "18" thru_hole circle (at 25.4 30.48) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) (pad "18" thru_hole circle (at 25.4 30.48) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask)
(net 10 "Net-(J4-Pad4)") (pinfunction "GPIO15") (pintype "bidirectional") (tstamp fbd23587-9e1b-4461-b511-2257604d25ff)) (net 10 "Net-(U1-Pad18)") (pinfunction "GPIO15") (pintype "bidirectional") (tstamp fbd23587-9e1b-4461-b511-2257604d25ff))
(pad "19" thru_hole circle (at 25.4 27.94) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) (pad "19" thru_hole circle (at 25.4 27.94) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask)
(net 20 "unconnected-(U1-Pad19)") (pinfunction "GPIO2") (pintype "bidirectional+no_connect") (tstamp 73012d62-09f7-4e13-998e-800cf36a3c2b)) (net 20 "unconnected-(U1-Pad19)") (pinfunction "GPIO2") (pintype "bidirectional+no_connect") (tstamp 73012d62-09f7-4e13-998e-800cf36a3c2b))
(pad "20" thru_hole circle (at 25.4 25.4) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask) (pad "20" thru_hole circle (at 25.4 25.4) (size 1.8 1.8) (drill 0.9) (layers *.Cu *.Mask)
@ -742,7 +742,7 @@
(dimension (type aligned) (layer "User.1") (tstamp a1df1579-7f98-456b-96b2-f2255e6a78f1) (dimension (type aligned) (layer "User.1") (tstamp a1df1579-7f98-456b-96b2-f2255e6a78f1)
(pts (xy 139.7 109.22) (xy 139.7 43.18)) (pts (xy 139.7 109.22) (xy 139.7 43.18))
(height -7.62) (height -7.62)
(gr_text "66.0400 mm" (at 130.93 76.2 90) (layer "User.1") (tstamp a1df1579-7f98-456b-96b2-f2255e6a78f1) (gr_text "66,0400 mm" (at 130.93 76.2 90) (layer "User.1") (tstamp a1df1579-7f98-456b-96b2-f2255e6a78f1)
(effects (font (size 1 1) (thickness 0.15))) (effects (font (size 1 1) (thickness 0.15)))
) )
(format (units 3) (units_format 1) (precision 4)) (format (units 3) (units_format 1) (precision 4))
@ -751,7 +751,7 @@
(dimension (type aligned) (layer "User.1") (tstamp b74d18b6-0a0c-4ef4-b5e7-77a6be3fc614) (dimension (type aligned) (layer "User.1") (tstamp b74d18b6-0a0c-4ef4-b5e7-77a6be3fc614)
(pts (xy 139.7 109.22) (xy 183 109.22)) (pts (xy 139.7 109.22) (xy 183 109.22))
(height 5.08) (height 5.08)
(gr_text "43.3000 mm" (at 161.35 113.15) (layer "User.1") (tstamp b74d18b6-0a0c-4ef4-b5e7-77a6be3fc614) (gr_text "43,3000 mm" (at 161.35 113.15) (layer "User.1") (tstamp b74d18b6-0a0c-4ef4-b5e7-77a6be3fc614)
(effects (font (size 1 1) (thickness 0.15))) (effects (font (size 1 1) (thickness 0.15)))
) )
(format (units 3) (units_format 1) (precision 4)) (format (units 3) (units_format 1) (precision 4))
@ -774,19 +774,18 @@
(segment (start 143.51 54.61) (end 142.24 53.34) (width 0.25) (layer "B.Cu") (net 3) (tstamp 8b014bea-020e-4c32-8a2e-afb44e577967)) (segment (start 143.51 54.61) (end 142.24 53.34) (width 0.25) (layer "B.Cu") (net 3) (tstamp 8b014bea-020e-4c32-8a2e-afb44e577967))
(segment (start 143.51 67.31) (end 143.51 54.61) (width 0.25) (layer "B.Cu") (net 3) (tstamp a9881c4d-1698-40b0-8ef8-bcb44452f73f)) (segment (start 143.51 67.31) (end 143.51 54.61) (width 0.25) (layer "B.Cu") (net 3) (tstamp a9881c4d-1698-40b0-8ef8-bcb44452f73f))
(segment (start 144.78 50.8) (end 144.78 53.34) (width 0.25) (layer "F.Cu") (net 5) (tstamp 5259d978-b387-4967-b81c-f641c98585a8)) (segment (start 144.78 50.8) (end 144.78 53.34) (width 0.25) (layer "F.Cu") (net 5) (tstamp 5259d978-b387-4967-b81c-f641c98585a8))
(segment (start 175.1375 91.44) (end 180.2175 86.36) (width 0.25) (layer "F.Cu") (net 6) (tstamp 343c5230-2143-4adb-ae08-17c61d26bb28)) (segment (start 175.1375 91.44) (end 180.34 91.44) (width 0.25) (layer "F.Cu") (net 6) (tstamp e4195b8f-3996-4a59-b6a1-76534a4e174b))
(segment (start 180.2175 86.36) (end 180.34 86.36) (width 0.25) (layer "F.Cu") (net 6) (tstamp 443afc8a-7367-472e-86b7-88f28e70e7a6)) (segment (start 180.34 93.98) (end 175.1375 93.98) (width 0.25) (layer "F.Cu") (net 7) (tstamp 05a60061-f69f-4cf0-982b-3b600d194cef))
(segment (start 180.2175 88.9) (end 180.34 88.9) (width 0.25) (layer "F.Cu") (net 7) (tstamp e709a026-ae63-4f05-a831-e970e04110d6)) (segment (start 172.72 99.06) (end 160.02 86.36) (width 0.25) (layer "F.Cu") (net 8) (tstamp 63fcfc59-7439-416e-96ce-38a112eb4939))
(segment (start 175.1375 93.98) (end 180.2175 88.9) (width 0.25) (layer "F.Cu") (net 7) (tstamp eeaf6148-fd6c-43f2-a2c8-748ea0cfbde0)) (segment (start 180.34 99.06) (end 172.72 99.06) (width 0.25) (layer "F.Cu") (net 8) (tstamp b982722b-1bf7-4726-a5b9-a2b33c43ad35))
(segment (start 170.18 96.52) (end 160.02 86.36) (width 0.25) (layer "F.Cu") (net 8) (tstamp 0ba3fcf8-07bd-443d-be28-f69a4ad80df4)) (via (at 160.02 86.36) (size 0.8) (drill 0.4) (layers "F.Cu" "B.Cu") (net 8) (tstamp 60d76cd4-7135-41b5-bb14-f84115e2b595))
(segment (start 175.26 96.52) (end 170.18 96.52) (width 0.25) (layer "F.Cu") (net 8) (tstamp 207932d1-3fbf-4bd3-8ef6-a6601aaaae72)) (segment (start 160.02 86.36) (end 149.7375 86.36) (width 0.25) (layer "B.Cu") (net 8) (tstamp 6f13e8dd-8f95-4897-aa4a-7af39b71330f))
(segment (start 180.34 91.44) (end 175.26 96.52) (width 0.25) (layer "F.Cu") (net 8) (tstamp d433e10e-a10c-42c7-9409-f756ab1084a2))
(via (at 160.02 86.36) (size 0.8) (drill 0.4) (layers "F.Cu" "B.Cu") (net 8) (tstamp 2f8ebbbf-0f11-4a15-9648-1d28e5593127))
(segment (start 160.02 86.36) (end 149.7375 86.36) (width 0.25) (layer "B.Cu") (net 8) (tstamp 88f2670e-1113-4ed9-b644-cfdac6e8b249))
(segment (start 160.02 88.9) (end 149.7375 88.9) (width 0.25) (layer "B.Cu") (net 9) (tstamp 527346bb-ea73-4a6b-90c5-e15d8df2e57f)) (segment (start 160.02 88.9) (end 149.7375 88.9) (width 0.25) (layer "B.Cu") (net 9) (tstamp 527346bb-ea73-4a6b-90c5-e15d8df2e57f))
(segment (start 167.64 81.28) (end 160.02 88.9) (width 0.25) (layer "B.Cu") (net 9) (tstamp 8fd52544-866c-407e-990a-b7ff97bb39d0)) (segment (start 167.64 81.28) (end 160.02 88.9) (width 0.25) (layer "B.Cu") (net 9) (tstamp 8fd52544-866c-407e-990a-b7ff97bb39d0))
(segment (start 167.64 48.26) (end 167.64 81.28) (width 0.25) (layer "B.Cu") (net 9) (tstamp e39b0b7f-91f8-45ca-b50b-563bff3dc7f3)) (segment (start 167.64 48.26) (end 167.64 81.28) (width 0.25) (layer "B.Cu") (net 9) (tstamp e39b0b7f-91f8-45ca-b50b-563bff3dc7f3))
(segment (start 180.34 93.98) (end 175.26 88.9) (width 0.25) (layer "B.Cu") (net 10) (tstamp dd673796-7a32-4f1f-b0c5-d2e15bb16cfe)) (segment (start 172.72 88.9) (end 175.1375 88.9) (width 0.25) (layer "F.Cu") (net 10) (tstamp 17bfb2da-c5fc-4e07-91e1-b9c5ab3fe262))
(segment (start 180.34 96.52) (end 172.72 96.52) (width 0.25) (layer "F.Cu") (net 10) (tstamp 50e2510b-285f-450d-924c-851068760a2c))
(segment (start 172.72 96.52) (end 172.72 88.9) (width 0.25) (layer "F.Cu") (net 10) (tstamp c8b088e8-33f6-4063-86e4-a7b123b42783))
(segment (start 154.94 60.96) (end 149.7375 60.96) (width 0.25) (layer "F.Cu") (net 32) (tstamp 61e763ec-1c1c-4f1e-a003-f55d7ad04f9f)) (segment (start 154.94 60.96) (end 149.7375 60.96) (width 0.25) (layer "F.Cu") (net 32) (tstamp 61e763ec-1c1c-4f1e-a003-f55d7ad04f9f))
(segment (start 154.94 48.26) (end 154.94 60.96) (width 0.25) (layer "F.Cu") (net 32) (tstamp e5c077a6-2e6e-4ddb-9cdd-7189d5453897)) (segment (start 154.94 48.26) (end 154.94 60.96) (width 0.25) (layer "F.Cu") (net 32) (tstamp e5c077a6-2e6e-4ddb-9cdd-7189d5453897))
(segment (start 144.78 63.5) (end 149.7375 63.5) (width 0.25) (layer "F.Cu") (net 33) (tstamp 30bfa64d-761b-4732-997d-bd4590e66c7b)) (segment (start 144.78 63.5) (end 149.7375 63.5) (width 0.25) (layer "F.Cu") (net 33) (tstamp 30bfa64d-761b-4732-997d-bd4590e66c7b))

4
schema/MCU_board/MCU_board.kicad_prl

@ -1,7 +1,7 @@
{ {
"board": { "board": {
"active_layer": 31, "active_layer": 0,
"active_layer_preset": "All Layers", "active_layer_preset": "Toutes Couches",
"auto_track_width": true, "auto_track_width": true,
"hidden_nets": [], "hidden_nets": [],
"high_contrast_mode": 0, "high_contrast_mode": 0,

44
schema/MCU_board/MCU_board.kicad_sch

@ -661,26 +661,30 @@
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 4269b426-1ca0-4358-b7c8-f87d360b6b77) (uuid 4269b426-1ca0-4358-b7c8-f87d360b6b77)
) )
(wire (pts (xy 113.03 107.95) (xy 107.95 107.95)) (wire (pts (xy 54.61 95.25) (xy 55.88 95.25))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 4cbb8332-242f-4e26-97ae-b244a79447d2) (uuid 457cdafe-757b-46b6-9d3e-8d438360f308)
) )
(wire (pts (xy 49.53 69.85) (xy 49.53 93.98)) (wire (pts (xy 109.22 97.79) (xy 109.22 105.41))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 5f6cca41-50ca-4ee1-8224-0e6c495b17fd) (uuid 58175922-1337-43ad-ad83-f2ad48af61c5)
) )
(wire (pts (xy 102.87 105.41) (xy 102.87 106.68)) (wire (pts (xy 104.14 97.79) (xy 109.22 97.79))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 6aa9c80e-1912-43b9-a8eb-b3770c197706) (uuid 5bd7ff30-9744-4fbd-b2ab-98d6983e15df)
) )
(wire (pts (xy 104.14 97.79) (xy 107.95 97.79)) (wire (pts (xy 49.53 69.85) (xy 49.53 93.98))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 6bcce826-921a-46ac-9369-b842f7a0419f) (uuid 5f6cca41-50ca-4ee1-8224-0e6c495b17fd)
) )
(wire (pts (xy 43.18 67.31) (xy 43.18 114.3)) (wire (pts (xy 43.18 67.31) (xy 43.18 114.3))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 6ef72d17-b82e-4eb1-b202-9006955a067e) (uuid 6ef72d17-b82e-4eb1-b202-9006955a067e)
) )
(wire (pts (xy 109.22 105.41) (xy 113.03 105.41))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 71c9110a-8064-4b4a-acc0-542534ea4901)
)
(wire (pts (xy 55.88 102.87) (xy 53.34 102.87)) (wire (pts (xy 55.88 102.87) (xy 53.34 102.87))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 7c612bdd-6a82-4fcf-baa9-8fdefcb06f1d) (uuid 7c612bdd-6a82-4fcf-baa9-8fdefcb06f1d)
@ -693,14 +697,6 @@
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 854f4387-3ca1-4ede-a296-fb94988ed5ae) (uuid 854f4387-3ca1-4ede-a296-fb94988ed5ae)
) )
(wire (pts (xy 102.87 106.68) (xy 54.61 106.68))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 93d2313f-0919-4c6f-b07d-ab630442d056)
)
(wire (pts (xy 54.61 106.68) (xy 54.61 95.25))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 957ba4db-aa36-4e4d-bd34-5b618c123340)
)
(wire (pts (xy 55.88 97.79) (xy 46.99 97.79)) (wire (pts (xy 55.88 97.79) (xy 46.99 97.79))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 9751e2d6-d81e-44e0-b624-fc92d289c52a) (uuid 9751e2d6-d81e-44e0-b624-fc92d289c52a)
@ -709,9 +705,13 @@
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 9918ed3d-ef60-4f9c-bbab-d5a94c54dede) (uuid 9918ed3d-ef60-4f9c-bbab-d5a94c54dede)
) )
(wire (pts (xy 54.61 95.25) (xy 55.88 95.25)) (wire (pts (xy 113.03 107.95) (xy 54.61 107.95))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid a89c5c87-c6cf-48f3-a098-73aaf195ccfc)
)
(wire (pts (xy 54.61 107.95) (xy 54.61 95.25))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid 9b6983ab-5e08-4595-9719-d4ecbaaf3e69) (uuid aea22020-99fc-43b4-984a-a7253337aa40)
) )
(wire (pts (xy 104.14 100.33) (xy 113.03 100.33)) (wire (pts (xy 104.14 100.33) (xy 113.03 100.33))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
@ -749,14 +749,6 @@
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid e15ae67b-2c04-433b-9d01-93c6a63abb6c) (uuid e15ae67b-2c04-433b-9d01-93c6a63abb6c)
) )
(wire (pts (xy 113.03 105.41) (xy 102.87 105.41))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid e6e65e08-50ae-42e3-98ba-61e01e0d282e)
)
(wire (pts (xy 107.95 107.95) (xy 107.95 97.79))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid e786ce55-4e74-4e2d-aa0a-f19cd837f06e)
)
(wire (pts (xy 49.53 69.85) (xy 49.53 58.42)) (wire (pts (xy 49.53 69.85) (xy 49.53 58.42))
(stroke (width 0) (type default) (color 0 0 0 0)) (stroke (width 0) (type default) (color 0 0 0 0))
(uuid e7f1f501-2e1d-458c-b01d-ce16b3bc01fa) (uuid e7f1f501-2e1d-458c-b01d-ce16b3bc01fa)

Loading…
Cancel
Save