PCB v1.3 changes + code test
This commit is contained in:
@@ -13,4 +13,6 @@ platform = espressif8266
|
||||
board = esp12e
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
lib_deps = fastled/FastLED@^3.4.0
|
||||
lib_deps =
|
||||
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays@^4.2.0
|
||||
paulstoffregen/Time@^1.6
|
||||
|
||||
50
P1_gateway_FW/src/images.h
Normal file
50
P1_gateway_FW/src/images.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#define WiFi_Logo_width 60
|
||||
#define WiFi_Logo_height 36
|
||||
const uint8_t WiFi_Logo_bits[] PROGMEM = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF,
|
||||
0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
|
||||
0xFF, 0x03, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00,
|
||||
0x00, 0xFF, 0xFF, 0xFF, 0x07, 0xC0, 0x83, 0x01, 0x80, 0xFF, 0xFF, 0xFF,
|
||||
0x01, 0x00, 0x07, 0x00, 0xC0, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x0C, 0x00,
|
||||
0xC0, 0xFF, 0xFF, 0x7C, 0x00, 0x60, 0x0C, 0x00, 0xC0, 0x31, 0x46, 0x7C,
|
||||
0xFC, 0x77, 0x08, 0x00, 0xE0, 0x23, 0xC6, 0x3C, 0xFC, 0x67, 0x18, 0x00,
|
||||
0xE0, 0x23, 0xE4, 0x3F, 0x1C, 0x00, 0x18, 0x00, 0xE0, 0x23, 0x60, 0x3C,
|
||||
0x1C, 0x70, 0x18, 0x00, 0xE0, 0x03, 0x60, 0x3C, 0x1C, 0x70, 0x18, 0x00,
|
||||
0xE0, 0x07, 0x60, 0x3C, 0xFC, 0x73, 0x18, 0x00, 0xE0, 0x87, 0x70, 0x3C,
|
||||
0xFC, 0x73, 0x18, 0x00, 0xE0, 0x87, 0x70, 0x3C, 0x1C, 0x70, 0x18, 0x00,
|
||||
0xE0, 0x87, 0x70, 0x3C, 0x1C, 0x70, 0x18, 0x00, 0xE0, 0x8F, 0x71, 0x3C,
|
||||
0x1C, 0x70, 0x18, 0x00, 0xC0, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x08, 0x00,
|
||||
0xC0, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x0C, 0x00, 0x80, 0xFF, 0xFF, 0x1F,
|
||||
0x00, 0x00, 0x06, 0x00, 0x80, 0xFF, 0xFF, 0x0F, 0x00, 0x00, 0x07, 0x00,
|
||||
0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0xF8, 0xFF, 0xFF,
|
||||
0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x01, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF,
|
||||
0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
const unsigned char activeSymbol[] PROGMEM = {
|
||||
B00000000,
|
||||
B00000000,
|
||||
B00011000,
|
||||
B00100100,
|
||||
B01000010,
|
||||
B01000010,
|
||||
B00100100,
|
||||
B00011000
|
||||
};
|
||||
|
||||
const unsigned char inactiveSymbol[] PROGMEM = {
|
||||
B00000000,
|
||||
B00000000,
|
||||
B00000000,
|
||||
B00000000,
|
||||
B00011000,
|
||||
B00011000,
|
||||
B00000000,
|
||||
B00000000
|
||||
};
|
||||
@@ -1,16 +1,220 @@
|
||||
#include <Arduino.h>
|
||||
#include "FastLED.h"
|
||||
/**
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2018 by ThingPulse, Daniel Eichhorn
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* ThingPulse invests considerable time and money to develop these open source libraries.
|
||||
* Please support us by buying our products (and not the clones) from
|
||||
* https://thingpulse.com
|
||||
*
|
||||
*/
|
||||
|
||||
#define WS_DAT 14
|
||||
#include <TimeLib.h>
|
||||
|
||||
CRGB leds[1];
|
||||
// Include the correct display library
|
||||
// For a connection via I2C using Wire include
|
||||
#include <Wire.h> // Only needed for Arduino 1.6.5 and earlier
|
||||
#include "SSD1306Wire.h" // legacy include: `#include "SSD1306.h"`
|
||||
// or #include "SH1106Wire.h", legacy include: `#include "SH1106.h"`
|
||||
// For a connection via I2C using brzo_i2c (must be installed) include
|
||||
// #include <brzo_i2c.h> // Only needed for Arduino 1.6.5 and earlier
|
||||
// #include "SSD1306Brzo.h"
|
||||
// #include "SH1106Brzo.h"
|
||||
// For a connection via SPI include
|
||||
// #include <SPI.h> // Only needed for Arduino 1.6.5 and earlier
|
||||
// #include "SSD1306Spi.h"
|
||||
// #include "SH1106SPi.h"
|
||||
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
FastLED.addLeds<WS2812B, WS_DAT, RGB>(leds, 1);
|
||||
// Include the UI lib
|
||||
#include "OLEDDisplayUi.h"
|
||||
|
||||
// Include custom images
|
||||
#include "images.h"
|
||||
|
||||
// Use the corresponding display class:
|
||||
|
||||
// Initialize the OLED display using SPI
|
||||
// D5 -> CLK
|
||||
// D7 -> MOSI (DOUT)
|
||||
// D0 -> RES
|
||||
// D2 -> DC
|
||||
// D8 -> CS
|
||||
// SSD1306Spi display(D0, D2, D8);
|
||||
// or
|
||||
// SH1106Spi display(D0, D2);
|
||||
|
||||
// Initialize the OLED display using brzo_i2c
|
||||
// D3 -> SDA
|
||||
// D5 -> SCL
|
||||
// SSD1306Brzo display(0x3c, D3, D5);
|
||||
// or
|
||||
// SH1106Brzo display(0x3c, D3, D5);
|
||||
|
||||
// Initialize the OLED display using Wire library
|
||||
SSD1306Wire display(0x3c, SDA, SCL);
|
||||
// SH1106 display(0x3c, D3, D5);
|
||||
|
||||
OLEDDisplayUi ui(&display);
|
||||
|
||||
int screenW = 128;
|
||||
int screenH = 64;
|
||||
int clockCenterX = screenW / 2;
|
||||
int clockCenterY = ((screenH - 16) / 2) + 16; // top yellow part is 16 px height
|
||||
int clockRadius = 23;
|
||||
|
||||
// utility function for digital clock display: prints leading 0
|
||||
String twoDigits(int digits)
|
||||
{
|
||||
if (digits < 10)
|
||||
{
|
||||
String i = '0' + String(digits);
|
||||
return i;
|
||||
}
|
||||
else
|
||||
{
|
||||
return String(digits);
|
||||
}
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
}
|
||||
void clockOverlay(OLEDDisplay *display, OLEDDisplayUiState *state)
|
||||
{
|
||||
}
|
||||
|
||||
void analogClockFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y)
|
||||
{
|
||||
// ui.disableIndicator();
|
||||
|
||||
// Draw the clock face
|
||||
// display->drawCircle(clockCenterX + x, clockCenterY + y, clockRadius);
|
||||
display->drawCircle(clockCenterX + x, clockCenterY + y, 2);
|
||||
//
|
||||
//hour ticks
|
||||
for (int z = 0; z < 360; z = z + 30)
|
||||
{
|
||||
//Begin at 0° and stop at 360°
|
||||
float angle = z;
|
||||
angle = (angle / 57.29577951); //Convert degrees to radians
|
||||
int x2 = (clockCenterX + (sin(angle) * clockRadius));
|
||||
int y2 = (clockCenterY - (cos(angle) * clockRadius));
|
||||
int x3 = (clockCenterX + (sin(angle) * (clockRadius - (clockRadius / 8))));
|
||||
int y3 = (clockCenterY - (cos(angle) * (clockRadius - (clockRadius / 8))));
|
||||
display->drawLine(x2 + x, y2 + y, x3 + x, y3 + y);
|
||||
}
|
||||
|
||||
// display second hand
|
||||
float angle = second() * 6;
|
||||
angle = (angle / 57.29577951); //Convert degrees to radians
|
||||
int x3 = (clockCenterX + (sin(angle) * (clockRadius - (clockRadius / 5))));
|
||||
int y3 = (clockCenterY - (cos(angle) * (clockRadius - (clockRadius / 5))));
|
||||
display->drawLine(clockCenterX + x, clockCenterY + y, x3 + x, y3 + y);
|
||||
//
|
||||
// display minute hand
|
||||
angle = minute() * 6;
|
||||
angle = (angle / 57.29577951); //Convert degrees to radians
|
||||
x3 = (clockCenterX + (sin(angle) * (clockRadius - (clockRadius / 4))));
|
||||
y3 = (clockCenterY - (cos(angle) * (clockRadius - (clockRadius / 4))));
|
||||
display->drawLine(clockCenterX + x, clockCenterY + y, x3 + x, y3 + y);
|
||||
//
|
||||
// display hour hand
|
||||
angle = hour() * 30 + int((minute() / 12) * 6);
|
||||
angle = (angle / 57.29577951); //Convert degrees to radians
|
||||
x3 = (clockCenterX + (sin(angle) * (clockRadius - (clockRadius / 2))));
|
||||
y3 = (clockCenterY - (cos(angle) * (clockRadius - (clockRadius / 2))));
|
||||
display->drawLine(clockCenterX + x, clockCenterY + y, x3 + x, y3 + y);
|
||||
}
|
||||
|
||||
void digitalClockFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y)
|
||||
{
|
||||
String timenow = String(hour()) + ":" + twoDigits(minute()) + ":" + twoDigits(second());
|
||||
display->setTextAlignment(TEXT_ALIGN_CENTER);
|
||||
display->setFont(ArialMT_Plain_24);
|
||||
display->drawString(clockCenterX + x, clockCenterY + y, timenow);
|
||||
}
|
||||
|
||||
// This array keeps function pointers to all frames
|
||||
// frames are the single views that slide in
|
||||
FrameCallback frames[] = {analogClockFrame, digitalClockFrame};
|
||||
|
||||
// how many frames are there?
|
||||
int frameCount = 2;
|
||||
|
||||
// Overlays are statically drawn on top of a frame eg. a clock
|
||||
OverlayCallback overlays[] = {clockOverlay};
|
||||
int overlaysCount = 1;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
Serial.println();
|
||||
|
||||
// The ESP is capable of rendering 60fps in 80Mhz mode
|
||||
// but that won't give you much time for anything else
|
||||
// run it in 160Mhz mode or just set it to 30 fps
|
||||
ui.setTargetFPS(60);
|
||||
|
||||
// Customize the active and inactive symbol
|
||||
ui.setActiveSymbol(activeSymbol);
|
||||
ui.setInactiveSymbol(inactiveSymbol);
|
||||
|
||||
// You can change this to
|
||||
// TOP, LEFT, BOTTOM, RIGHT
|
||||
ui.setIndicatorPosition(TOP);
|
||||
|
||||
// Defines where the first frame is located in the bar.
|
||||
ui.setIndicatorDirection(LEFT_RIGHT);
|
||||
|
||||
// You can change the transition that is used
|
||||
// SLIDE_LEFT, SLIDE_RIGHT, SLIDE_UP, SLIDE_DOWN
|
||||
ui.setFrameAnimation(SLIDE_LEFT);
|
||||
|
||||
ui.disableAllIndicators();
|
||||
|
||||
// Add frames
|
||||
ui.setFrames(frames, frameCount);
|
||||
|
||||
// Add overlays
|
||||
ui.setOverlays(overlays, overlaysCount);
|
||||
|
||||
// Initialising the UI will init the display too.
|
||||
ui.init();
|
||||
|
||||
//display.flipScreenVertically();
|
||||
|
||||
unsigned long secsSinceStart = millis();
|
||||
// Unix time starts on Jan 1 1970. In seconds, that's 2208988800:
|
||||
const unsigned long seventyYears = 2208988800UL;
|
||||
// subtract seventy years:
|
||||
unsigned long epoch = secsSinceStart - seventyYears * SECS_PER_HOUR;
|
||||
setTime(epoch);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
int remainingTimeBudget = ui.update();
|
||||
|
||||
if (remainingTimeBudget > 0)
|
||||
{
|
||||
// You can do some work here
|
||||
// Don't do stuff if you are below your
|
||||
// time budget.
|
||||
delay(remainingTimeBudget);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,56 +207,6 @@ X ~RST 9 -500 1100 100 R 50 50 1 1 I
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Power_Protection_USBLC6-2P6
|
||||
#
|
||||
DEF Power_Protection_USBLC6-2P6 U 0 20 Y N 1 F N
|
||||
F0 "U" 100 350 50 H V L CNN
|
||||
F1 "Power_Protection_USBLC6-2P6" 100 -350 50 H V L CNN
|
||||
F2 "Package_TO_SOT_SMD:SOT-666" 0 -500 50 H I C CNN
|
||||
F3 "" 200 350 50 H I C CNN
|
||||
$FPLIST
|
||||
SOT?666*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
C -200 0 10 0 1 0 F
|
||||
C -100 0 10 0 1 0 F
|
||||
C 0 -250 10 0 1 0 F
|
||||
C 0 250 10 0 1 0 F
|
||||
C 100 0 10 0 1 0 F
|
||||
C 200 0 10 0 1 0 F
|
||||
S -300 -300 300 300 0 1 10 f
|
||||
S -100 250 100 -250 0 1 0 N
|
||||
P 2 0 1 0 -200 -100 -300 -100 N
|
||||
P 2 0 1 0 -200 0 -200 -100 N
|
||||
P 2 0 1 0 -200 100 -300 100 N
|
||||
P 2 0 1 0 -60 -110 -140 -110 N
|
||||
P 2 0 1 0 -60 190 -140 190 N
|
||||
P 2 0 1 0 0 -300 0 -250 N
|
||||
P 2 0 1 0 0 -250 0 50 N
|
||||
P 2 0 1 0 0 50 0 250 N
|
||||
P 2 0 1 0 0 250 0 300 N
|
||||
P 2 0 1 0 60 -110 140 -110 N
|
||||
P 2 0 1 0 60 190 140 190 N
|
||||
P 2 0 1 0 200 -100 300 -100 N
|
||||
P 2 0 1 0 200 0 200 -100 N
|
||||
P 2 0 1 0 200 100 300 100 N
|
||||
P 3 0 1 0 -100 0 -200 0 -200 100 N
|
||||
P 3 0 1 0 100 0 200 0 200 100 N
|
||||
P 4 0 1 0 -140 -190 -60 -190 -100 -110 -140 -190 N
|
||||
P 4 0 1 0 -140 110 -60 110 -100 190 -140 110 N
|
||||
P 4 0 1 0 -40 -40 40 -40 0 40 -40 -40 N
|
||||
P 4 0 1 0 40 40 30 40 -40 40 -40 20 N
|
||||
P 4 0 1 0 140 -190 60 -190 100 -110 140 -190 N
|
||||
P 4 0 1 0 140 110 60 110 100 190 140 110 N
|
||||
X I/O1 1 -400 -100 100 R 50 50 1 1 P
|
||||
X GND 2 0 -400 100 U 50 50 1 1 P
|
||||
X I/O2 3 400 -100 100 L 50 50 1 1 P
|
||||
X I/O2 4 400 100 100 L 50 50 1 1 P
|
||||
X VBUS 5 0 400 100 D 50 50 1 1 P
|
||||
X I/O1 6 -400 100 100 R 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Regulator_Linear_MIC5219-3.3YM5
|
||||
#
|
||||
DEF Regulator_Linear_MIC5219-3.3YM5 U 0 10 Y Y 1 F N
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -277,51 +277,51 @@ Connection ~ 5250 6600
|
||||
$Comp
|
||||
L Connector:USB_B_Micro J2
|
||||
U 1 1 603DE563
|
||||
P 5600 5400
|
||||
F 0 "J2" H 5370 5389 50 0000 R CNN
|
||||
F 1 "USB_B_Micro" H 5370 5298 50 0000 R CNN
|
||||
F 2 "MySymbols:USB_Micro_B_Female" H 5750 5350 50 0001 C CNN
|
||||
F 3 "~" H 5750 5350 50 0001 C CNN
|
||||
1 5600 5400
|
||||
P 7100 2550
|
||||
F 0 "J2" H 6870 2539 50 0000 R CNN
|
||||
F 1 "USB_B_Micro" H 6870 2448 50 0000 R CNN
|
||||
F 2 "MySymbols:USB_Micro_B_Female" H 7250 2500 50 0001 C CNN
|
||||
F 3 "~" H 7250 2500 50 0001 C CNN
|
||||
1 7100 2550
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+5V #PWR012
|
||||
U 1 1 603E164F
|
||||
P 5950 5050
|
||||
F 0 "#PWR012" H 5950 4900 50 0001 C CNN
|
||||
F 1 "+5V" H 5965 5223 50 0000 C CNN
|
||||
F 2 "" H 5950 5050 50 0001 C CNN
|
||||
F 3 "" H 5950 5050 50 0001 C CNN
|
||||
1 5950 5050
|
||||
P 7450 2200
|
||||
F 0 "#PWR012" H 7450 2050 50 0001 C CNN
|
||||
F 1 "+5V" H 7465 2373 50 0000 C CNN
|
||||
F 2 "" H 7450 2200 50 0001 C CNN
|
||||
F 3 "" H 7450 2200 50 0001 C CNN
|
||||
1 7450 2200
|
||||
-1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GND #PWR013
|
||||
U 1 1 603E1F73
|
||||
P 5900 5900
|
||||
F 0 "#PWR013" H 5900 5650 50 0001 C CNN
|
||||
F 1 "GND" H 5905 5727 50 0000 C CNN
|
||||
F 2 "" H 5900 5900 50 0001 C CNN
|
||||
F 3 "" H 5900 5900 50 0001 C CNN
|
||||
1 5900 5900
|
||||
P 7400 3050
|
||||
F 0 "#PWR013" H 7400 2800 50 0001 C CNN
|
||||
F 1 "GND" H 7405 2877 50 0000 C CNN
|
||||
F 2 "" H 7400 3050 50 0001 C CNN
|
||||
F 3 "" H 7400 3050 50 0001 C CNN
|
||||
1 7400 3050
|
||||
-1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
5500 5800 5500 5850
|
||||
7000 2950 7000 3000
|
||||
Wire Wire Line
|
||||
5500 5850 5600 5850
|
||||
7000 3000 7100 3000
|
||||
Wire Wire Line
|
||||
5600 5850 5600 5800
|
||||
7100 3000 7100 2950
|
||||
Wire Wire Line
|
||||
5600 5850 5900 5850
|
||||
7100 3000 7400 3000
|
||||
Wire Wire Line
|
||||
5900 5850 5900 5900
|
||||
Connection ~ 5600 5850
|
||||
7400 3000 7400 3050
|
||||
Connection ~ 7100 3000
|
||||
Wire Wire Line
|
||||
5900 5200 5950 5200
|
||||
7400 2350 7450 2350
|
||||
Wire Wire Line
|
||||
5950 5200 5950 5050
|
||||
7450 2350 7450 2200
|
||||
Text GLabel 3700 1000 0 50 Input ~ 0
|
||||
DTR
|
||||
Text GLabel 3700 1700 0 50 Input ~ 0
|
||||
@@ -354,8 +354,8 @@ F 3 "~" H 4350 3450 50 0001 C CNN
|
||||
0 1 1 0
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
5900 5600 5900 5850
|
||||
Connection ~ 5900 5850
|
||||
7400 2750 7400 3000
|
||||
Connection ~ 7400 3000
|
||||
Text GLabel 2250 6700 2 50 Output ~ 0
|
||||
DSMR_DATA
|
||||
Wire Wire Line
|
||||
@@ -410,6 +410,7 @@ F 0 "R5" V 4250 3200 50 0000 C CNN
|
||||
F 1 "10K" V 4250 3350 50 0000 C CNN
|
||||
F 2 "Resistor_SMD:R_0603_1608Metric" V 4280 3250 50 0001 C CNN
|
||||
F 3 "~" H 4350 3250 50 0001 C CNN
|
||||
F 4 "DNP" V 4350 3250 50 0000 C CNN "DNP"
|
||||
1 4350 3250
|
||||
0 1 1 0
|
||||
$EndComp
|
||||
@@ -640,9 +641,9 @@ F 3 "" H 8300 1550 50 0001 C CNN
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
8300 1550 8300 1600
|
||||
Text Label 10000 2050 2 50 ~ 0
|
||||
ESP_RX
|
||||
Text Label 10000 1950 2 50 ~ 0
|
||||
ESP_RX
|
||||
Text Label 10000 2050 2 50 ~ 0
|
||||
ESP_TX
|
||||
Wire Wire Line
|
||||
9650 1950 10000 1950
|
||||
@@ -659,94 +660,28 @@ Wire Wire Line
|
||||
$Comp
|
||||
L Device:R R9
|
||||
U 1 1 60C0A451
|
||||
P 9900 3200
|
||||
F 0 "R9" V 9800 3150 50 0000 C CNN
|
||||
F 1 "10K" V 9800 3300 50 0000 C CNN
|
||||
F 2 "Resistor_SMD:R_0603_1608Metric" V 9830 3200 50 0001 C CNN
|
||||
F 3 "~" H 9900 3200 50 0001 C CNN
|
||||
1 9900 3200
|
||||
P 10200 3200
|
||||
F 0 "R9" V 10100 3150 50 0000 C CNN
|
||||
F 1 "10K" V 10100 3300 50 0000 C CNN
|
||||
F 2 "Resistor_SMD:R_0603_1608Metric" V 10130 3200 50 0001 C CNN
|
||||
F 3 "~" H 10200 3200 50 0001 C CNN
|
||||
1 10200 3200
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
9900 3050 9900 2950
|
||||
Wire Wire Line
|
||||
9900 2950 9650 2950
|
||||
$Comp
|
||||
L Power_Protection:USBLC6-2P6 U3
|
||||
U 1 1 60C0FEF9
|
||||
P 7800 4400
|
||||
F 0 "U3" H 7600 4050 50 0000 C CNN
|
||||
F 1 "USBLC6-2P6" H 7500 4750 50 0000 C CNN
|
||||
F 2 "Package_TO_SOT_SMD:SOT-666" H 7800 3900 50 0001 C CNN
|
||||
F 3 "https://www.st.com/resource/en/datasheet/usblc6-2.pdf" H 8000 4750 50 0001 C CNN
|
||||
1 7800 4400
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Text Label 6100 5400 2 50 ~ 0
|
||||
10200 3050 10200 2950
|
||||
Text Label 7600 2550 2 50 ~ 0
|
||||
D+
|
||||
Text Label 6100 5500 2 50 ~ 0
|
||||
Text Label 7600 2650 2 50 ~ 0
|
||||
D-
|
||||
Wire Wire Line
|
||||
6100 5500 5900 5500
|
||||
7600 2650 7400 2650
|
||||
Wire Wire Line
|
||||
6100 5400 5900 5400
|
||||
Text Label 7250 4500 0 50 ~ 0
|
||||
D+
|
||||
Text Label 8400 4500 2 50 ~ 0
|
||||
D-
|
||||
Wire Wire Line
|
||||
7250 4500 7400 4500
|
||||
Wire Wire Line
|
||||
8400 4500 8200 4500
|
||||
Text Label 7250 4300 0 50 ~ 0
|
||||
D1+
|
||||
Text Label 8400 4300 2 50 ~ 0
|
||||
D1-
|
||||
Wire Wire Line
|
||||
8400 4300 8200 4300
|
||||
Wire Wire Line
|
||||
7250 4300 7400 4300
|
||||
$Comp
|
||||
L power:+5V #PWR0108
|
||||
U 1 1 60C4DD3C
|
||||
P 7800 3950
|
||||
F 0 "#PWR0108" H 7800 3800 50 0001 C CNN
|
||||
F 1 "+5V" H 7815 4123 50 0000 C CNN
|
||||
F 2 "" H 7800 3950 50 0001 C CNN
|
||||
F 3 "" H 7800 3950 50 0001 C CNN
|
||||
1 7800 3950
|
||||
-1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GND #PWR0109
|
||||
U 1 1 60C52342
|
||||
P 7800 4850
|
||||
F 0 "#PWR0109" H 7800 4600 50 0001 C CNN
|
||||
F 1 "GND" H 7805 4677 50 0000 C CNN
|
||||
F 2 "" H 7800 4850 50 0001 C CNN
|
||||
F 3 "" H 7800 4850 50 0001 C CNN
|
||||
1 7800 4850
|
||||
-1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L Device:C C5
|
||||
U 1 1 60C563AC
|
||||
P 6900 4350
|
||||
F 0 "C5" H 7015 4396 50 0000 L CNN
|
||||
F 1 "100nF" H 7015 4305 50 0000 L CNN
|
||||
F 2 "Capacitor_SMD:C_0603_1608Metric" H 6938 4200 50 0001 C CNN
|
||||
F 3 "~" H 6900 4350 50 0001 C CNN
|
||||
1 6900 4350
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
6900 4000 6900 4200
|
||||
Wire Wire Line
|
||||
6900 4800 6900 4500
|
||||
7600 2550 7400 2550
|
||||
Text Label 8450 2650 0 50 ~ 0
|
||||
D1+
|
||||
D+
|
||||
Text Label 8450 2550 0 50 ~ 0
|
||||
D1-
|
||||
D-
|
||||
Wire Wire Line
|
||||
8650 2650 8450 2650
|
||||
Wire Wire Line
|
||||
@@ -769,16 +704,16 @@ Wire Wire Line
|
||||
$Comp
|
||||
L power:GND #PWR0111
|
||||
U 1 1 60C737B3
|
||||
P 9900 3450
|
||||
F 0 "#PWR0111" H 9900 3200 50 0001 C CNN
|
||||
F 1 "GND" H 9905 3277 50 0000 C CNN
|
||||
F 2 "" H 9900 3450 50 0001 C CNN
|
||||
F 3 "" H 9900 3450 50 0001 C CNN
|
||||
1 9900 3450
|
||||
P 10200 3450
|
||||
F 0 "#PWR0111" H 10200 3200 50 0001 C CNN
|
||||
F 1 "GND" H 10205 3277 50 0000 C CNN
|
||||
F 2 "" H 10200 3450 50 0001 C CNN
|
||||
F 3 "" H 10200 3450 50 0001 C CNN
|
||||
1 10200 3450
|
||||
-1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
9900 3450 9900 3350
|
||||
10200 3450 10200 3350
|
||||
$Comp
|
||||
L Connector:Conn_01x04_Male J3
|
||||
U 1 1 60CAF614
|
||||
@@ -800,9 +735,9 @@ Wire Wire Line
|
||||
3400 3250 3050 3250
|
||||
Wire Wire Line
|
||||
3400 3350 3050 3350
|
||||
Text Label 2650 1200 2 50 ~ 0
|
||||
ESP_SCL
|
||||
Text Label 2650 1300 2 50 ~ 0
|
||||
ESP_SCL
|
||||
Text Label 2650 1200 2 50 ~ 0
|
||||
EPS_SDA
|
||||
$Comp
|
||||
L power:+3.3V #PWR01
|
||||
@@ -843,11 +778,11 @@ L Regulator_Linear:MIC5219-3.3YM5 U2
|
||||
U 1 1 60DC1061
|
||||
P 5650 6600
|
||||
F 0 "U2" H 5650 6942 50 0000 C CNN
|
||||
F 1 "MIC5219-3.3YM5" H 5650 6851 50 0000 C CNN
|
||||
F 1 "XC6210B332MR" H 5650 6851 50 0000 C CNN
|
||||
F 2 "Package_TO_SOT_SMD:SOT-23-5" H 5650 6925 50 0001 C CNN
|
||||
F 3 "http://ww1.microchip.com/downloads/en/DeviceDoc/MIC5219-500mA-Peak-Output-LDO-Regulator-DS20006021A.pdf" H 5650 6600 50 0001 C CNN
|
||||
F 3 "http://www.farnell.com/datasheets/2012972.pdf" H 5650 6600 50 0001 C CNN
|
||||
F 4 "Farnell" H 5650 6600 50 0001 C CNN "suppier"
|
||||
F 5 "2510252" H 5650 6600 50 0001 C CNN "ordercode"
|
||||
F 5 "1057803" H 5650 6600 50 0001 C CNN "ordercode"
|
||||
1 5650 6600
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
@@ -891,16 +826,6 @@ F 5 "2611880" H 6050 6900 50 0001 C CNN "ordercode"
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
NoConn ~ 1250 3450
|
||||
Wire Wire Line
|
||||
7800 3950 7800 4000
|
||||
Wire Wire Line
|
||||
7800 4800 7800 4850
|
||||
Wire Wire Line
|
||||
6900 4000 7800 4000
|
||||
Connection ~ 7800 4000
|
||||
Wire Wire Line
|
||||
6900 4800 7800 4800
|
||||
Connection ~ 7800 4800
|
||||
NoConn ~ 9650 2250
|
||||
NoConn ~ 9650 2350
|
||||
NoConn ~ 9650 2550
|
||||
@@ -926,4 +851,8 @@ Wire Wire Line
|
||||
8950 3350 8950 3250
|
||||
Text Label 9800 2950 0 50 ~ 0
|
||||
USB_SUSP
|
||||
Text Notes -3250 1550 0 118 ~ 0
|
||||
TODO for v 1.3\n- Move version Silk to bottom\n- swap display SDA/SCL\n- change Q1 to common device\n- smaller refdes\n- remove suppression diode\n- swap ESP_RX/TX on U4
|
||||
Wire Wire Line
|
||||
9650 2950 10200 2950
|
||||
$EndSCHEMATC
|
||||
|
||||
Reference in New Issue
Block a user