Skip to content
Snippets Groups Projects
Commit 4ac18061 authored by Leo's avatar Leo :shark:
Browse files

pcb additions

parent cde163e0
Branches master
No related tags found
Loading
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# Connector_Generic_Conn_01x02
# Connector_Generic_Conn_01x04
#
DEF Connector_Generic_Conn_01x02 J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "Connector_Generic_Conn_01x02" 0 -200 50 H V C CNN
DEF Connector_Generic_Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Connector_Generic_Conn_01x04" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_1x??_*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 50 50 -150 1 1 10 f
X Pin_1 1 -200 0 150 R 50 50 1 1 P
X Pin_2 2 -200 -100 150 R 50 50 1 1 P
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Connector_Generic_Conn_01x04
# Connector_Generic_Conn_01x07
#
DEF Connector_Generic_Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Connector_Generic_Conn_01x04" 0 -300 50 H V C CNN
DEF Connector_Generic_Conn_01x07 J 0 40 Y N 1 F N
F0 "J" 0 400 50 H V C CNN
F1 "Connector_Generic_Conn_01x07" 0 -400 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_1x??_*
$ENDFPLIST
DRAW
S -50 -295 0 -305 1 1 6 N
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
S -50 205 0 195 1 1 6 N
S -50 305 0 295 1 1 6 N
S -50 350 50 -350 1 1 10 f
X Pin_1 1 -200 300 150 R 50 50 1 1 P
X Pin_2 2 -200 200 150 R 50 50 1 1 P
X Pin_3 3 -200 100 150 R 50 50 1 1 P
X Pin_4 4 -200 0 150 R 50 50 1 1 P
X Pin_5 5 -200 -100 150 R 50 50 1 1 P
X Pin_6 6 -200 -200 150 R 50 50 1 1 P
X Pin_7 7 -200 -300 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
......@@ -115,6 +125,50 @@ X 2 2 150 0 50 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_D_Schottky
#
DEF Device_D_Schottky D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "Device_D_Schottky" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
TO-???*
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 0 50 0 -50 0 N
P 4 0 1 10 50 50 50 -50 -50 0 50 50 N
P 6 0 1 10 -75 25 -75 50 -50 50 -50 -50 -25 -50 -25 -25 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_D_Zener
#
DEF Device_D_Zener D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "Device_D_Zener" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
TO-???*
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 0 50 0 -50 0 N
P 3 0 1 10 -50 -50 -50 50 -30 50 N
P 4 0 1 10 50 -50 50 50 -50 0 50 -50 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_Ferrite_Bead_Small
#
DEF Device_Ferrite_Bead_Small FB 0 0 N Y 1 F N
......@@ -255,6 +309,30 @@ X VDDA 9 200 1500 100 D 50 50 1 1 W
ENDDRAW
ENDDEF
#
# Memory_Flash_W25Q128JVS
#
DEF Memory_Flash_W25Q128JVS U 0 20 Y Y 1 F N
F0 "U" -350 350 50 H V C CNN
F1 "Memory_Flash_W25Q128JVS" 300 350 50 H V C CNN
F2 "Package_SO:SOIC-8_5.23x5.23mm_P1.27mm" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS W25Q128JVS
$FPLIST
SOIC*5.23x5.23mm*P1.27mm*
$ENDFPLIST
DRAW
S -400 300 400 -300 0 1 10 f
X ~CS 1 -500 100 100 R 50 50 1 1 I
X DO(IO1) 2 500 100 100 L 50 50 1 1 B
X IO2 3 500 -100 100 L 50 50 1 1 B
X GND 4 0 -400 100 U 50 50 1 1 W
X DI(IO0) 5 500 200 100 L 50 50 1 1 B
X CLK 6 -500 -100 100 R 50 50 1 1 I
X IO3 7 500 -200 100 L 50 50 1 1 B
X VCC 8 0 400 100 D 50 50 1 1 W
ENDDRAW
ENDDEF
#
# Regulator_Linear_AMS1117-3.3
#
DEF Regulator_Linear_AMS1117-3.3 U 0 10 Y Y 1 F N
......@@ -274,6 +352,22 @@ X VI 3 -300 0 100 R 50 50 1 1 W
ENDDRAW
ENDDEF
#
# power_+3.3V
#
DEF power_+3.3V #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "power_+3.3V" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS +3.3V
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +3V3 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power_+3V3
#
DEF power_+3V3 #PWR 0 0 Y Y 1 F P
......@@ -281,7 +375,6 @@ F0 "#PWR" 0 -150 50 H I C CNN
F1 "power_+3V3" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS +3.3V
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
......@@ -318,27 +411,4 @@ X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# uSD_push-push_ebay_SD_ebay-uSD-push_push_SMD
#
DEF uSD_push-push_ebay_SD_ebay-uSD-push_push_SMD XS 0 20 Y Y 1 F N
F0 "XS" 225 -575 50 H V C CNN
F1 "uSD_push-push_ebay_SD_ebay-uSD-push_push_SMD" -325 0 50 V V C CNN
F2 "Connectors:Conn_uSDcard" 0 0 10 H I C CNN
F3 "_" 0 0 10 H I C CNN
F4 "_" 0 0 10 H I C CNN "Manf#"
F5 "ebay" 0 0 10 H I C CNN "Manf"
DRAW
S -275 525 275 -525 0 0 10 N
X DAT2 1 375 0 100 L 50 50 1 1 B
X CS/DAT3 2 375 150 100 L 50 50 1 1 I
X DI/CMD 3 375 300 100 L 50 50 1 1 I
X Vdd 4 -150 625 100 D 50 50 1 1 I
X CLK 5 375 450 100 L 50 50 1 1 I
X GND 6 -150 -625 100 U 50 50 1 1 I
X DO/DAT0 7 375 -300 100 L 50 50 1 1 I
X DAT1 8 375 -150 100 L 50 50 1 1 B
X CD 9 375 -450 100 L 50 50 1 1 I
ENDDRAW
ENDDEF
#
#End Library
This diff is collapsed.
This diff is collapsed.
update=Do 04 Mär 2021 11:28:38 CET
update=Fr 05 Mär 2021 13:32:55 CET
version=1
last_client=kicad
[general]
......@@ -40,7 +40,11 @@ MinMicroViaDrill=0.09999999999999999
MinHoleToHole=0.25
TrackWidth1=0.25
TrackWidth2=0.3
TrackWidth3=0.7
TrackWidth3=0.54
TrackWidth4=0.56
TrackWidth5=0.6
TrackWidth6=0.7
TrackWidth7=1.2
ViaDiameter1=0.8
ViaDrill1=0.4
dPairWidth1=0.2
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -6,10 +6,9 @@
#include <oled.h>
char dial[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8',
'9', 'A', 'a', 'B', 'b', 'C', 'c', 3};
'9', 'A', 'a', 'B', 'b', 'C', 'c', 'E'};
#define PIN_A \
PB14 // ky-040 clk pin, add 100nF/0.1uF capacitors between pin & ground!!!
#define PIN_A PB14
#define PIN_B \
PB15 // ky-040 dt pin, add 100nF/0.1uF capacitors between pin & ground!!!
#define BUTTON \
......@@ -229,7 +228,7 @@ void start_console(void) {
void setup(void) {
VirtSerial.begin(9600);
encoder.begin();
attachInterrupt(
digitalPinToInterrupt(PIN_B), encoderISR,
......@@ -246,15 +245,15 @@ void setup(void) {
// HID.begin(HID_BOOT_KEYBOARD);
// Keyboard.begin();
initOled();
initOled();
printLogoDisplay();
delay(500);
printLogoDisplay();
delay(1500);
initSDCard(1);
initSDCard(1);
delay(200);
printDebugString("wait for serial");
printDebugString("wait for serial");
while (!VirtSerial.available()) {
if (millis() % 100 == 0) {
......@@ -262,13 +261,13 @@ void setup(void) {
}
}
printDebugString("serial done");
printDebugString("serial done");
delay(200);
VirtSerial.flush();
printLogoSerial();
curDir = SD.open("/");
printLogoSerial();
curDir = SD.open("/");
// start_console();
// start_console();
VirtSerial.print(' ');
}
......
......@@ -8,12 +8,12 @@ void initOled(){
void printLogoDisplay() {
oled.clear();
oled.setFont(u8g2_font_bubble_tr);
oled.setFont(u8g2_font_VCR_OSD_tf);
oled.firstPage();
do {
oled.setCursor(0, 25);
oled.setCursor(0, 16);
oled.print("Crypt");
oled.setCursor(30, 55);
oled.setCursor(16, 32);
oled.print("Stick");
} while (oled.nextPage());
oled.setFont(u8g2_font_7x14_mf);
......@@ -24,7 +24,7 @@ void printDebugString(char* buff) {
oled.setFont(u8g2_font_7x14_mf);
oled.firstPage();
do {
oled.setCursor(0, 25);
oled.setCursor(0, 16);
oled.print(buff);
} while (oled.nextPage());
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment