54 Commits

Author SHA1 Message Date
54c326c784 remove variant 2021-10-22 19:52:26 +02:00
85528a619d updated erase command 2021-10-21 20:29:43 +02:00
b5569d530b firmware cleanup 2021-10-21 20:26:29 +02:00
7f507b6472 Merge branch 'master' of http://192.168.2.3/Bonobo.Git.Server/Leo-led-truck 2021-10-21 20:26:06 +02:00
1159993a7b firmware backup 2021-10-21 20:26:00 +02:00
dbd4dfc786 update CAD files 2021-10-21 20:23:00 +02:00
56a1a5180d stm32cube 2021-10-21 20:22:26 +02:00
495392ba9f update platform 2021-10-21 16:25:15 +02:00
4f9213834c added label 2021-10-21 08:32:43 +02:00
de3cc282d6 programming files 2021-08-15 16:40:56 +02:00
a3ac3723a7 prepare for programming 2021-07-21 17:04:58 +02:00
90290a612f added binary from working board 2021-07-21 15:09:27 +02:00
e1a54e903c create drillguide drawing 2021-07-20 19:34:35 +02:00
f4e23386ef firmware recovery 1.3RC 2021-06-14 08:19:45 +02:00
d32deb73b5 update CAD model 2021-06-14 08:19:10 +02:00
d3992277df battery status 2021-05-10 19:36:14 +02:00
ef9d84b09d updated to gameclass merged with v1.1 power 2021-05-09 22:07:01 +02:00
f19e7b79f4 implemented soft power button on-off 2021-05-09 15:25:42 +02:00
ae1676c669 updaed v1.1 code (shutdown) 2021-05-08 18:37:21 +02:00
94bcc5f979 Merge branch 'master' of http://192.168.2.3/Bonobo.Git.Server/Leo-led-truck 2021-05-08 17:43:49 +02:00
b28decf033 Updated 3D model 2021-05-08 17:43:20 +02:00
b17fe6cbeb removed DS_Store from repo recursive 2021-05-08 17:43:01 +02:00
028d7e8332 Merge branch 'master' of http://192.168.2.3/Bonobo.Git.Server/Leo-led-truck 2021-05-08 13:38:17 +02:00
92ad17feba created parts sticker 2021-05-08 13:36:33 +02:00
47c5c06191 update code for v1.1 2021-05-08 12:50:25 +02:00
6853c220db added invoice 2021-05-04 08:33:50 +02:00
f95867bc52 Merge branch 'master' of http://192.168.2.3/Bonobo.Git.Server/Leo-led-truck 2021-04-28 15:03:00 +02:00
3e5e8acab5 added documentation 2021-04-28 15:02:03 +02:00
206152bd5e production files generated 2021-04-22 19:23:34 +02:00
b7122599cf added BOM and PDF 2021-04-22 19:23:25 +02:00
6f128f608d changed to soft powerbutton+USB alt 2021-04-22 19:23:16 +02:00
2d20d98c73 updated jack socket PCB+3D 2021-04-22 19:19:28 +02:00
5acc1b8c3c added symbol 2021-03-30 08:00:25 +02:00
04b1235f1a firmware release 1.2
fixed MSboard, game class prep, power impr.
2021-03-29 11:10:57 +02:00
095e650457 merged ledboardv1.1 branch optimized build 2021-03-27 14:09:28 +01:00
0146c32da4 batt display, low batt shutdown, timeout shutdown 2021-03-27 14:00:37 +01:00
79edcef8ce update firmware
add 3d cad design
updated PCB layout and chematics
2021-03-25 18:33:02 +01:00
7d9fbc228e added mechanical drawing, updated PCB dwg layer 2021-03-22 07:39:44 +01:00
e853f96505 updated footprints 2021-03-19 15:53:53 +01:00
e86caa99d7 update schematic to match proto pins 2021-03-19 13:57:24 +01:00
6094e47b15 modified code for different hardware version 2021-03-19 13:49:53 +01:00
9bdd68a8ae gitignore update 2021-03-19 13:47:25 +01:00
d0df1d9353 led-board v1.0 2021-03-18 21:15:12 +01:00
65c9807cac Merge branch 'master' of http://192.168.2.3/Bonobo.Git.Server/Leo-led-truck 2021-03-18 08:44:14 +01:00
0fc4b2669c upload invoices 2021-03-18 08:43:58 +01:00
0f1614382f v1.1 2021-03-18 08:08:47 +01:00
72494a4847 update 2021-03-02 13:03:26 +01:00
c001f0a3b9 silk update prep for order V1.0, added billing info 2021-03-02 13:01:25 +01:00
c03e9303a1 update pcb 2021-03-01 16:21:54 +01:00
fc3914eeb4 datasheets added 2021-02-22 17:25:14 +01:00
3eeba1e4c2 Merge branch 'master' of http://192.168.2.3/Bonobo.Git.Server/Leo-led-truck 2021-02-22 15:09:19 +01:00
647e2d36a3 gitignore added 2021-02-22 15:09:08 +01:00
29a09051a1 Merge commit '98f4790c70684bb30948741ef635366a231f1a53' 2021-02-22 15:07:38 +01:00
5b3a3cec8d Merge commit 'f96d466f25cadce2ab48258edd08b90da7a41be7' 2021-02-22 15:06:05 +01:00
316 changed files with 317486 additions and 25357 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored
View File

@@ -3,3 +3,5 @@
.vscode/c_cpp_properties.json .vscode/c_cpp_properties.json
.vscode/launch.json .vscode/launch.json
.vscode/ipch .vscode/ipch
**/.DS_Store
manufacturing.zip

17
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "PlatformIO",
"task": "Build",
"problemMatcher": [
"$platformio"
],
"group": {
"kind": "build",
"isDefault": true
},
"label": "PlatformIO: Build"
}
]
}

6
README.txt Normal file
View File

@@ -0,0 +1,6 @@
flashing
macos:
brewl install stlink
st-flash --reset --freq=4M write firmware.bin 0x8000000

45
__boards/stm32l031k6.json Normal file
View File

@@ -0,0 +1,45 @@
{
"build": {
"cpu": "cortex-m0plus",
"extra_flags": "-DSTM32L031xx",
"f_cpu": "32000000L",
"mcu": "stm32l031k6t6",
"product_line": "STM32L031xx",
"variant": "STM32L031K6",
"variants_dir": "variants"
},
"debug": {
"default_tools": [
"stlink"
],
"jlink_device": "STM32L031K6",
"onboard_tools": [
"stlink"
],
"openocd_target": "stm32l0",
"svd_path": "STM32L0x1.svd"
},
"frameworks": [
"arduino",
"cmsis",
"mbed",
"stm32cube",
"libopencm3"
],
"name": "STM32L031K6",
"upload": {
"maximum_ram_size": 8192,
"maximum_size": 32768,
"protocol": "stlink",
"protocols": [
"jlink",
"cmsis-dap",
"stlink",
"blackmagic",
"mbed"
]
},
"url": "https://developer.mbed.org/platforms/ST-Nucleo-L031K6/",
"vendor": "ST"
}

View File

@@ -0,0 +1,196 @@
/*
*******************************************************************************
* Copyright (c) 2019, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
* Automatically generated from STM32L031K(4-6)Tx.xml
*/
#include "Arduino.h"
#include "PeripheralPins.h"
/* =====
* Note: Commented lines are alternative possibilities which are not used per default.
* If you change them, you will have to know what you do
* =====
*/
//*** ADC ***
#ifdef HAL_ADC_MODULE_ENABLED
WEAK const PinMap PinMap_ADC[] = {
{PA_0, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC_IN0
{PA_1, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC_IN1
// {PA_2, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC_IN2 - Connected to STDIO_UART_TX
{PA_3, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC_IN3
{PA_4, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC_IN4
{PA_5, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC_IN5
{PA_6, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC_IN6
{PA_7, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC_IN7
{PB_0, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC_IN8
{PB_1, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC_IN9
{NC, NP, 0}
};
#endif
//*** No DAC ***
//*** I2C ***
#ifdef HAL_I2C_MODULE_ENABLED
WEAK const PinMap PinMap_I2C_SDA[] = {
{PA_10, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_I2C_MODULE_ENABLED
WEAK const PinMap PinMap_I2C_SCL[] = {
{PA_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
{PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
{NC, NP, 0}
};
#endif
//*** PWM ***
#ifdef HAL_TIM_MODULE_ENABLED
WEAK const PinMap PinMap_PWM[] = {
{PA_0, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 1, 0)}, // TIM2_CH1
{PA_1, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 2, 0)}, // TIM2_CH2
// {PA_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 3, 0)}, // TIM2_CH3
// {PA_2, TIM21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM21, 1, 0)}, // TIM21_CH1
{PA_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 4, 0)}, // TIM2_CH4
// {PA_3, TIM21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM21, 2, 0)}, // TIM21_CH2
{PA_5, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 1, 0)}, // TIM2_CH1
{PA_6, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 1, 0)}, // TIM22_CH1
{PA_7, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 2, 0)}, // TIM22_CH2
{PA_8, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 1, 0)}, // TIM2_CH1
{PA_9, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 1, 0)}, // TIM22_CH1
{PA_10, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 2, 0)}, // TIM22_CH2
// {PA_11, TIM21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM21, 2, 0)}, // TIM21_CH2
// {PA_15, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 1, 0)}, // TIM2_CH1
{PB_0, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 3, 0)}, // TIM2_CH3
{PB_1, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 4, 0)}, // TIM2_CH4
{PB_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 2, 0)}, // TIM2_CH2
{PB_4, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM22, 1, 0)}, // TIM22_CH1
{PB_5, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM22, 2, 0)}, // TIM22_CH2
// {PB_6, TIM21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM21, 1, 0)}, // TIM21_CH1
{NC, NP, 0}
};
#endif
//*** SERIAL ***
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_TX[] = {
// {PA_2, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
{PA_2, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // STLink TX
{PA_9, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
// {PA_14, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PB_6, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART2)},
{NC, NP, 0}
};
#endif
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_RX[] = {
// {PA_3, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
{PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PA_10, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
// {PA_13, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
{PA_15, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // STLink RX
{PB_7, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART2)},
{NC, NP, 0}
};
#endif
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_RTS[] = {
{PA_1, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PA_12, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PB_0, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
// {PB_1, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_LPUART1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_CTS[] = {
{PA_0, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
// {PA_6, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_LPUART1)},
{PA_7, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PA_11, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{NC, NP, 0}
};
#endif
//*** SPI ***
#ifdef HAL_SPI_MODULE_ENABLED
WEAK const PinMap PinMap_SPI_MOSI[] = {
{PA_7, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PA_12, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PB_1, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_SPI1)},
{PB_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_SPI_MODULE_ENABLED
WEAK const PinMap PinMap_SPI_MISO[] = {
{PA_6, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PA_11, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PB_0, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_SPI1)},
{PB_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_SPI_MODULE_ENABLED
WEAK const PinMap PinMap_SPI_SCLK[] = {
{PA_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PB_3, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_SPI_MODULE_ENABLED
WEAK const PinMap PinMap_SPI_SSEL[] = {
{PA_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
// {PA_15, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{NC, NP, 0}
};
#endif
//*** No CAN ***
//*** No ETHERNET ***
//*** No QUADSPI ***
//*** No USB ***

View File

@@ -0,0 +1,25 @@
/* SYS_WKUP */
#ifdef PWR_WAKEUP_PIN1
SYS_WKUP1 = PA_0,
#endif
#ifdef PWR_WAKEUP_PIN2
SYS_WKUP2 = NC,
#endif
#ifdef PWR_WAKEUP_PIN3
SYS_WKUP3 = PA_2,
#endif
#ifdef PWR_WAKEUP_PIN4
SYS_WKUP4 = NC,
#endif
#ifdef PWR_WAKEUP_PIN5
SYS_WKUP5 = NC,
#endif
#ifdef PWR_WAKEUP_PIN6
SYS_WKUP6 = NC,
#endif
#ifdef PWR_WAKEUP_PIN7
SYS_WKUP7 = NC,
#endif
#ifdef PWR_WAKEUP_PIN8
SYS_WKUP8 = NC,
#endif

View File

@@ -0,0 +1,188 @@
/*
*****************************************************************************
**
** File : LinkerScript.ld
**
** Abstract : Linker script for STM32L031K6Tx Device with
** 32KByte FLASH, 8KByte RAM
**
** Set heap size, stack size and stack location according
** to application requirements.
**
** Set memory bank area and size if external memory is used.
**
** Target : STMicroelectronics STM32
**
**
** Distribution: The file is distributed as is, without any warranty
** of any kind.
**
*****************************************************************************
** @attention
**
** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
**
** Redistribution and use in source and binary forms, with or without modification,
** are permitted provided that the following conditions are met:
** 1. Redistributions of source code must retain the above copyright notice,
** this list of conditions and the following disclaimer.
** 2. Redistributions in binary form must reproduce the above copyright notice,
** this list of conditions and the following disclaimer in the documentation
** and/or other materials provided with the distribution.
** 3. Neither the name of Ac6 nor the names of its contributors
** may be used to endorse or promote products derived from this software
** without specific prior written permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
*****************************************************************************
*/
/* Entry Point */
ENTRY(Reset_Handler)
/* Highest address of the user mode stack */
_estack = 0x20002000; /* end of RAM */
/* Generate a link error if heap and stack don't fit into RAM */
_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */
/* Specify the memory areas */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 32K
}
/* Define output sections */
SECTIONS
{
/* The startup code goes first into FLASH */
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH
/* The program code and other data goes into FLASH */
.text :
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*) /* .text* sections (code) */
*(.glue_7) /* glue arm to thumb code */
*(.glue_7t) /* glue thumb to arm code */
*(.eh_frame)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4);
_etext = .; /* define a global symbols at end of code */
} >FLASH
/* Constant data goes into FLASH */
.rodata :
{
. = ALIGN(4);
*(.rodata) /* .rodata sections (constants, strings, etc.) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
. = ALIGN(4);
} >FLASH
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
.ARM : {
__exidx_start = .;
*(.ARM.exidx*)
__exidx_end = .;
} >FLASH
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_array_start = .);
KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .);
} >FLASH
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .);
} >FLASH
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT(.fini_array.*)))
KEEP (*(.fini_array*))
PROVIDE_HIDDEN (__fini_array_end = .);
} >FLASH
/* used by the startup to initialize data */
_sidata = LOADADDR(.data);
/* Initialized data sections goes into RAM, load LMA copy after code */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
*(.data) /* .data sections */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH
/* Uninitialized data section */
. = ALIGN(4);
.bss :
{
/* This is used by the startup in order to initialize the .bss secion */
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end */
__bss_end__ = _ebss;
} >RAM
/* User_heap_stack section, used to check that there is enough RAM left */
._user_heap_stack :
{
. = ALIGN(8);
PROVIDE ( end = . );
PROVIDE ( _end = . );
. = . + _Min_Heap_Size;
. = . + _Min_Stack_Size;
. = ALIGN(8);
} >RAM
/* Remove information from the standard libraries */
/DISCARD/ :
{
libc.a ( * )
libm.a ( * )
libgcc.a ( * )
}
.ARM.attributes 0 : { *(.ARM.attributes) }
}

View File

@@ -0,0 +1,123 @@
/*
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
*/
#include "pins_arduino.h"
#ifdef __cplusplus
extern "C" {
#endif
// Pin number
const PinName digitalPin[] = {
PA_10, //D0
PA_9, //D1
PA_12, //D2
PB_0, //D3
PB_7, //D4
PB_6, //D5
PB_1, //D6
PC_14, //D7
PC_15, //D8
PA_8, //D9
PA_11, //D10
PB_5, //D11
PB_4, //D12
PB_3, //D13 - LED
PA_0, //D14/A0
PA_1, //D15/A1
PA_3, //D16/A2
PA_4, //D17/A3
PA_5, //D18/A4
PA_6, //D19/A5
PA_7, //D20/A6
PA_2, //D21/A7 - STLink Tx
PA_15, //D22 - STLink Rx
PB_2, //D23
PB_8 //D24
};
#ifdef __cplusplus
}
#endif
// ----------------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief System Clock Configuration
* @param None
* @retval None
*/
WEAK void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct;
RCC_ClkInitTypeDef RCC_ClkInitStruct;
RCC_PeriphCLKInitTypeDef PeriphClkInit;
/* Configure the main internal regulator output voltage */
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
/* Initializes the CPU, AHB and APB buses clocks */
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.HSICalibrationValue = 16;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLLMUL_4;
RCC_OscInitStruct.PLL.PLLDIV = RCC_PLLDIV_2;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
_Error_Handler(__FILE__, __LINE__);
}
/* Initializes the CPU, AHB and APB busses clocks */
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
| RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK) {
_Error_Handler(__FILE__, __LINE__);
}
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART2;
PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_PCLK1;
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) {
_Error_Handler(__FILE__, __LINE__);
}
}
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,120 @@
/*
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
*/
#ifndef _VARIANT_ARDUINO_STM32_
#define _VARIANT_ARDUINO_STM32_
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/*----------------------------------------------------------------------------
* Pins
*----------------------------------------------------------------------------*/
#define PA10 0
#define PA9 1
#define PA12 2
#define PB0 3
#define PB7 4
#define PB6 5
#define PB1 6
#define PC14 7
#define PC15 8
#define PA8 9
#define PA11 10
#define PB5 11
#define PB4 12
#define PB3 13 // LED
#define PA0 14 // A0
#define PA1 15 // A1
#define PA3 16 // A2
#define PA4 17 // A3
#define PA5 18 // A4
#define PA6 19 // A5
#define PA7 20 // A6
#define PA2 21 // A7 - STLink Tx
#define PA15 22 // STLink Rx
#define PB2 23
#define PB8 24
// This must be a literal
#define NUM_DIGITAL_PINS 25
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
#define NUM_ANALOG_INPUTS 7
#define NUM_ANALOG_FIRST 14
// On-board LED pin number
//#define LED_BUILTIN 13
//#define LED_GREEN LED_BUILTIN
// I2C Definitions
#define PIN_WIRE_SDA 4
#define PIN_WIRE_SCL 5
//Timer Definitions
#define TIMER_TONE TIM2
#define TIMER_SERVO TIM21
// UART Definitions
#define SERIAL_UART_INSTANCE 2 //ex: 2 for Serial2 (USART2)
// Default pin used for 'Serial' instance (ex: ST-Link)
// Mandatory for Firmata
#define PIN_SERIAL_RX PA15
#define PIN_SERIAL_TX PA2
#ifdef __cplusplus
} // extern "C"
#endif
/*----------------------------------------------------------------------------
* Arduino objects - C++ only
*----------------------------------------------------------------------------*/
#ifdef __cplusplus
// These serial port names are intended to allow libraries and architecture-neutral
// sketches to automatically default to the correct port name for a particular type
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
//
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
//
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
//
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
//
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
//
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
// pins are NOT connected to anything by default.
#define SERIAL_PORT_MONITOR Serial
#define SERIAL_PORT_HARDWARE Serial
#endif
#endif /* _VARIANT_ARDUINO_STM32_ */

View File

@@ -0,0 +1,196 @@
/*
*******************************************************************************
* Copyright (c) 2019, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
* Automatically generated from STM32L031K(4-6)Tx.xml
*/
#include "Arduino.h"
#include "PeripheralPins.h"
/* =====
* Note: Commented lines are alternative possibilities which are not used per default.
* If you change them, you will have to know what you do
* =====
*/
//*** ADC ***
#ifdef HAL_ADC_MODULE_ENABLED
WEAK const PinMap PinMap_ADC[] = {
{PA_0, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC_IN0
{PA_1, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC_IN1
// {PA_2, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC_IN2 - Connected to STDIO_UART_TX
{PA_3, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC_IN3
{PA_4, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC_IN4
{PA_5, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC_IN5
{PA_6, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC_IN6
{PA_7, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC_IN7
{PB_0, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC_IN8
{PB_1, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC_IN9
{NC, NP, 0}
};
#endif
//*** No DAC ***
//*** I2C ***
#ifdef HAL_I2C_MODULE_ENABLED
WEAK const PinMap PinMap_I2C_SDA[] = {
{PA_10, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_I2C_MODULE_ENABLED
WEAK const PinMap PinMap_I2C_SCL[] = {
{PA_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
{PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
{NC, NP, 0}
};
#endif
//*** PWM ***
#ifdef HAL_TIM_MODULE_ENABLED
WEAK const PinMap PinMap_PWM[] = {
{PA_0, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 1, 0)}, // TIM2_CH1
{PA_1, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 2, 0)}, // TIM2_CH2
// {PA_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 3, 0)}, // TIM2_CH3
// {PA_2, TIM21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM21, 1, 0)}, // TIM21_CH1
{PA_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 4, 0)}, // TIM2_CH4
// {PA_3, TIM21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM21, 2, 0)}, // TIM21_CH2
{PA_5, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 1, 0)}, // TIM2_CH1
{PA_6, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 1, 0)}, // TIM22_CH1
{PA_7, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 2, 0)}, // TIM22_CH2
{PA_8, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 1, 0)}, // TIM2_CH1
{PA_9, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 1, 0)}, // TIM22_CH1
{PA_10, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 2, 0)}, // TIM22_CH2
// {PA_11, TIM21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM21, 2, 0)}, // TIM21_CH2
// {PA_15, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 1, 0)}, // TIM2_CH1
{PB_0, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 3, 0)}, // TIM2_CH3
{PB_1, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 4, 0)}, // TIM2_CH4
{PB_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 2, 0)}, // TIM2_CH2
{PB_4, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM22, 1, 0)}, // TIM22_CH1
{PB_5, TIM22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM22, 2, 0)}, // TIM22_CH2
// {PB_6, TIM21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM21, 1, 0)}, // TIM21_CH1
{NC, NP, 0}
};
#endif
//*** SERIAL ***
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_TX[] = {
// {PA_2, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
{PA_2, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // STLink TX
{PA_9, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
// {PA_14, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PB_6, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART2)},
{NC, NP, 0}
};
#endif
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_RX[] = {
// {PA_3, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
{PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PA_10, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
// {PA_13, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
{PA_15, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // STLink RX
{PB_7, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART2)},
{NC, NP, 0}
};
#endif
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_RTS[] = {
{PA_1, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PA_12, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PB_0, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
// {PB_1, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_LPUART1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_CTS[] = {
{PA_0, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
// {PA_6, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_LPUART1)},
{PA_7, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{PA_11, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
{NC, NP, 0}
};
#endif
//*** SPI ***
#ifdef HAL_SPI_MODULE_ENABLED
WEAK const PinMap PinMap_SPI_MOSI[] = {
{PA_7, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PA_12, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PB_1, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_SPI1)},
{PB_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_SPI_MODULE_ENABLED
WEAK const PinMap PinMap_SPI_MISO[] = {
{PA_6, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PA_11, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PB_0, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_SPI1)},
{PB_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_SPI_MODULE_ENABLED
WEAK const PinMap PinMap_SPI_SCLK[] = {
{PA_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{PB_3, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{NC, NP, 0}
};
#endif
#ifdef HAL_SPI_MODULE_ENABLED
WEAK const PinMap PinMap_SPI_SSEL[] = {
{PA_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
// {PA_15, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
{NC, NP, 0}
};
#endif
//*** No CAN ***
//*** No ETHERNET ***
//*** No QUADSPI ***
//*** No USB ***

View File

@@ -0,0 +1,25 @@
/* SYS_WKUP */
#ifdef PWR_WAKEUP_PIN1
SYS_WKUP1 = PA_0,
#endif
#ifdef PWR_WAKEUP_PIN2
SYS_WKUP2 = NC,
#endif
#ifdef PWR_WAKEUP_PIN3
SYS_WKUP3 = PA_2,
#endif
#ifdef PWR_WAKEUP_PIN4
SYS_WKUP4 = NC,
#endif
#ifdef PWR_WAKEUP_PIN5
SYS_WKUP5 = NC,
#endif
#ifdef PWR_WAKEUP_PIN6
SYS_WKUP6 = NC,
#endif
#ifdef PWR_WAKEUP_PIN7
SYS_WKUP7 = NC,
#endif
#ifdef PWR_WAKEUP_PIN8
SYS_WKUP8 = NC,
#endif

View File

@@ -0,0 +1,188 @@
/*
*****************************************************************************
**
** File : LinkerScript.ld
**
** Abstract : Linker script for STM32L031K6Tx Device with
** 32KByte FLASH, 8KByte RAM
**
** Set heap size, stack size and stack location according
** to application requirements.
**
** Set memory bank area and size if external memory is used.
**
** Target : STMicroelectronics STM32
**
**
** Distribution: The file is distributed as is, without any warranty
** of any kind.
**
*****************************************************************************
** @attention
**
** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
**
** Redistribution and use in source and binary forms, with or without modification,
** are permitted provided that the following conditions are met:
** 1. Redistributions of source code must retain the above copyright notice,
** this list of conditions and the following disclaimer.
** 2. Redistributions in binary form must reproduce the above copyright notice,
** this list of conditions and the following disclaimer in the documentation
** and/or other materials provided with the distribution.
** 3. Neither the name of Ac6 nor the names of its contributors
** may be used to endorse or promote products derived from this software
** without specific prior written permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
*****************************************************************************
*/
/* Entry Point */
ENTRY(Reset_Handler)
/* Highest address of the user mode stack */
_estack = 0x20002000; /* end of RAM */
/* Generate a link error if heap and stack don't fit into RAM */
_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */
/* Specify the memory areas */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 32K
}
/* Define output sections */
SECTIONS
{
/* The startup code goes first into FLASH */
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH
/* The program code and other data goes into FLASH */
.text :
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*) /* .text* sections (code) */
*(.glue_7) /* glue arm to thumb code */
*(.glue_7t) /* glue thumb to arm code */
*(.eh_frame)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4);
_etext = .; /* define a global symbols at end of code */
} >FLASH
/* Constant data goes into FLASH */
.rodata :
{
. = ALIGN(4);
*(.rodata) /* .rodata sections (constants, strings, etc.) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
. = ALIGN(4);
} >FLASH
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
.ARM : {
__exidx_start = .;
*(.ARM.exidx*)
__exidx_end = .;
} >FLASH
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_array_start = .);
KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .);
} >FLASH
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .);
} >FLASH
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT(.fini_array.*)))
KEEP (*(.fini_array*))
PROVIDE_HIDDEN (__fini_array_end = .);
} >FLASH
/* used by the startup to initialize data */
_sidata = LOADADDR(.data);
/* Initialized data sections goes into RAM, load LMA copy after code */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
*(.data) /* .data sections */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH
/* Uninitialized data section */
. = ALIGN(4);
.bss :
{
/* This is used by the startup in order to initialize the .bss secion */
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end */
__bss_end__ = _ebss;
} >RAM
/* User_heap_stack section, used to check that there is enough RAM left */
._user_heap_stack :
{
. = ALIGN(8);
PROVIDE ( end = . );
PROVIDE ( _end = . );
. = . + _Min_Heap_Size;
. = . + _Min_Stack_Size;
. = ALIGN(8);
} >RAM
/* Remove information from the standard libraries */
/DISCARD/ :
{
libc.a ( * )
libm.a ( * )
libgcc.a ( * )
}
.ARM.attributes 0 : { *(.ARM.attributes) }
}

View File

@@ -0,0 +1,123 @@
/*
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
*/
#include "pins_arduino.h"
#ifdef __cplusplus
extern "C" {
#endif
// Pin number
const PinName digitalPin[] = {
PA_10, //D0
PA_9, //D1
PA_12, //D2
PB_0, //D3
PB_7, //D4
PB_6, //D5
PB_1, //D6
PC_14, //D7
PC_15, //D8
PA_8, //D9
PA_11, //D10
PB_5, //D11
PB_4, //D12
PB_3, //D13 - LED
PA_0, //D14/A0
PA_1, //D15/A1
PA_3, //D16/A2
PA_4, //D17/A3
PA_5, //D18/A4
PA_6, //D19/A5
PA_7, //D20/A6
PA_2, //D21/A7 - STLink Tx
PA_15, //D22 - STLink Rx
PB_2, //D23
PB_8 //D24
};
#ifdef __cplusplus
}
#endif
// ----------------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief System Clock Configuration
* @param None
* @retval None
*/
WEAK void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct;
RCC_ClkInitTypeDef RCC_ClkInitStruct;
RCC_PeriphCLKInitTypeDef PeriphClkInit;
/* Configure the main internal regulator output voltage */
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
/* Initializes the CPU, AHB and APB buses clocks */
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.HSICalibrationValue = 16;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLLMUL_4;
RCC_OscInitStruct.PLL.PLLDIV = RCC_PLLDIV_2;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
_Error_Handler(__FILE__, __LINE__);
}
/* Initializes the CPU, AHB and APB busses clocks */
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
| RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK) {
_Error_Handler(__FILE__, __LINE__);
}
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART2;
PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_PCLK1;
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) {
_Error_Handler(__FILE__, __LINE__);
}
}
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,120 @@
/*
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
*/
#ifndef _VARIANT_ARDUINO_STM32_
#define _VARIANT_ARDUINO_STM32_
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/*----------------------------------------------------------------------------
* Pins
*----------------------------------------------------------------------------*/
#define PA10 0
#define PA9 1
#define PA12 2
#define PB0 3
#define PB7 4
#define PB6 5
#define PB1 6
#define PC14 7
#define PC15 8
#define PA8 9
#define PA11 10
#define PB5 11
#define PB4 12
#define PB3 13 // LED
#define PA0 14 // A0
#define PA1 15 // A1
#define PA3 16 // A2
#define PA4 17 // A3
#define PA5 18 // A4
#define PA6 19 // A5
#define PA7 20 // A6
#define PA2 21 // A7 - STLink Tx
#define PA15 22 // STLink Rx
#define PB2 23
#define PB8 24
// This must be a literal
#define NUM_DIGITAL_PINS 25
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
#define NUM_ANALOG_INPUTS 7
#define NUM_ANALOG_FIRST 14
// On-board LED pin number
//#define LED_BUILTIN 13
//#define LED_GREEN LED_BUILTIN
// I2C Definitions
#define PIN_WIRE_SDA 4
#define PIN_WIRE_SCL 5
//Timer Definitions
#define TIMER_TONE TIM2
#define TIMER_SERVO TIM21
// UART Definitions
#define SERIAL_UART_INSTANCE 2 //ex: 2 for Serial2 (USART2)
// Default pin used for 'Serial' instance (ex: ST-Link)
// Mandatory for Firmata
//#define PIN_SERIAL_RX PA15
//#define PIN_SERIAL_TX PA2
#ifdef __cplusplus
} // extern "C"
#endif
/*----------------------------------------------------------------------------
* Arduino objects - C++ only
*----------------------------------------------------------------------------*/
#ifdef __cplusplus
// These serial port names are intended to allow libraries and architecture-neutral
// sketches to automatically default to the correct port name for a particular type
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
//
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
//
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
//
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
//
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
//
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
// pins are NOT connected to anything by default.
#define SERIAL_PORT_MONITOR Serial
#define SERIAL_PORT_HARDWARE Serial
#endif
#endif /* _VARIANT_ARDUINO_STM32_ */

1
flash.sh Normal file
View File

@@ -0,0 +1 @@
st-flash write firmware20210720.bin 0x8000000

View File

@@ -0,0 +1,74 @@
/*
Battery.cpp - Battery library
Copyright (c) 2014 Roberto Lo Giacco.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Battery.h"
#include <Arduino.h>
Battery::Battery(uint16_t minVoltage, uint16_t maxVoltage, uint8_t sensePin) {
this->sensePin = sensePin;
this->activationPin = 0xFF;
this->minVoltage = minVoltage;
this->maxVoltage = maxVoltage;
}
void Battery::begin(uint16_t refVoltage, float dividerRatio, mapFn_t mapFunction) {
this->refVoltage = refVoltage;
this->dividerRatio = dividerRatio;
pinMode(this->sensePin, INPUT);
if (this->activationPin < 0xFF) {
pinMode(this->activationPin, OUTPUT);
}
this->mapFunction = mapFunction ? mapFunction : &linear;
}
void Battery::onDemand(uint8_t activationPin, uint8_t activationMode) {
if (activationPin < 0xFF) {
this->activationPin = activationPin;
this->activationMode = activationMode;
pinMode(this->activationPin, OUTPUT);
digitalWrite(activationPin, !activationMode);
}
}
uint8_t Battery::level() {
return this->level(this->voltage());
}
uint8_t Battery::level(uint16_t voltage) {
if (voltage <= minVoltage) {
return 0;
} else if (voltage >= maxVoltage) {
return 100;
} else {
return (*mapFunction)(voltage, minVoltage, maxVoltage);
}
}
uint16_t Battery::voltage() {
if (activationPin != 0xFF) {
digitalWrite(activationPin, activationMode);
delayMicroseconds(10); // copes with slow switching activation circuits
}
analogRead(sensePin);
delay(2); // allow the ADC to stabilize
uint16_t reading = analogRead(sensePin) * dividerRatio * refVoltage / 1024;
if (activationPin != 0xFF) {
digitalWrite(activationPin, !activationMode);
}
return reading;
}

View File

@@ -0,0 +1,129 @@
/*
Battery.h - Battery library
Copyright (c) 2014 Roberto Lo Giacco.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef BATTERY_H_
#define BATTERY_H_
#include <Arduino.h>
typedef uint8_t(*mapFn_t)(uint16_t, uint16_t, uint16_t);
class Battery {
public:
/**
* Creates an instance to monitor battery voltage and level.
* Initialization parameters depend on battery type and configuration.
*
* @param minVoltage is the voltage, expressed in millivolts, corresponding to an empty battery
* @param maxVoltage is the voltage, expressed in millivolts, corresponding to a full battery
* @param sensePin is the analog pin used for sensing the battery voltage
*/
Battery(uint16_t minVoltage, uint16_t maxVoltage, uint8_t sensePin);
/**
* Initializes the library by optionally setting additional parameters.
* To obtain the best results use a calibrated reference using the VoltageReference library or equivalent.
*
* @param refVoltage is the board reference voltage, expressed in millivolts
* @param dividerRatio is the multiplier used to obtain the real battery voltage
* @param mapFunction is a pointer to the function used to map the battery voltage to the remaining capacity percentage (defaults to linear mapping)
*/
void begin(uint16_t refVoltage, float dividerRatio, mapFn_t = 0);
/**
* Enables on-demand activation of the sensing circuit to limit battery consumption.
*
* @param activationPin is the pin which will be turned HIGH or LOW before starting the battery sensing
* @param activationMode is the optional value to set on the activationPin to enable battery sensing, defaults to LOW
* useful when using a resistor divider to save on battery consumption, but it can be changed to HIGH in case
* you are using a P-CH MOSFET or a PNP BJT
*/
void onDemand(uint8_t activationPin, uint8_t activationMode = LOW);
/**
* Activation pin value disabling the on-demand feature.
*/
static const uint8_t ON_DEMAND_DISABLE = 0xFF;
/**
* Returns the current battery level as a number between 0 and 100, with 0 indicating an empty battery and 100 a
* full battery.
*/
uint8_t level();
uint8_t level(uint16_t voltage);
/**
* Returns the current battery voltage in millivolts.
*/
uint16_t voltage();
private:
uint16_t refVoltage;
uint16_t minVoltage;
uint16_t maxVoltage;
float dividerRatio;
uint8_t sensePin;
uint8_t activationPin;
uint8_t activationMode;
mapFn_t mapFunction;
};
//
// Plots of the functions below available at
// https://www.desmos.com/calculator/x0esk5bsrk
//
/**
* Symmetric sigmoidal approximation
* https://www.desmos.com/calculator/7m9lu26vpy
*
* c - c / (1 + k*x/v)^3
*/
static inline uint8_t sigmoidal(uint16_t voltage, uint16_t minVoltage, uint16_t maxVoltage) {
// slow
// uint8_t result = 110 - (110 / (1 + pow(1.468 * (voltage - minVoltage)/(maxVoltage - minVoltage), 6)));
// steep
// uint8_t result = 102 - (102 / (1 + pow(1.621 * (voltage - minVoltage)/(maxVoltage - minVoltage), 8.1)));
// normal
uint8_t result = 105 - (105 / (1 + pow(1.724 * (voltage - minVoltage)/(maxVoltage - minVoltage), 5.5)));
return result >= 100 ? 100 : result;
}
/**
* Asymmetric sigmoidal approximation
* https://www.desmos.com/calculator/oyhpsu8jnw
*
* c - c / [1 + (k*x/v)^4.5]^3
*/
static inline uint8_t asigmoidal(uint16_t voltage, uint16_t minVoltage, uint16_t maxVoltage) {
uint8_t result = 101 - (101 / pow(1 + pow(1.33 * (voltage - minVoltage)/(maxVoltage - minVoltage) ,4.5), 3));
return result >= 100 ? 100 : result;
}
/**
* Linear mapping
* https://www.desmos.com/calculator/sowyhttjta
*
* x * 100 / v
*/
static inline uint8_t linear(uint16_t voltage, uint16_t minVoltage, uint16_t maxVoltage) {
return (unsigned long)(voltage - minVoltage) * 100 / (maxVoltage - minVoltage);
}
#endif // BATTERY_H_

Binary file not shown.

View File

@@ -1,36 +0,0 @@
ID;Name;Designator;place;Footprint;Quantity;Manufacturer Part;Manufacturer;Supplier;Supplier Part;
1;20k;R1,R2;y;R_0402;2;RC0402FR-0720KL;;;;
2;1K;R4,R7,R19,R8;y;R_0402;3;RC0402FR-7W1KL;;;;
3;1M;R6;n;R_0402;1;RC0402FR-7W1ML;;;;
4;0E;R3,R11;y;R_0402;2;AC0402JR-7D0RL;;;;
10;10K;R18,R17,R10,R5;y;R_0402;3;RC0402FR-7W10KL;yageo;mouser;603-RC0402FR-7W10KL;
11;470E;R9;y;R_0402;1;RCC0402470RFKED;vishay;mouser;71-RCC0402470RFKED;
14;4.3p;C1,C2;y;C_0402;2;CC402CRNPO9BN4R3;yageo;mouser;603-CC402CRNPO9BN4R3;
15;0.1u;C4,C5;y;C_0402;2;CC402KRX7R6BB104;yageo;mouser;603-CC402KRX7R6BB104;
16;1u/10v;C6;y;C_0402;1;C0402C105K9PAC;kemet;mouser;80-C0402C105K9PAC;
26;2.2u/10v;C8,C7,C9,C10;y;C_0805;4;LMK105BJ225KV-F;taiyo yuden;;963-LMK105BJ225KV-F;
27;4.7u;C3;y;C_0805;1;CL05A475KQ5NRNC;samsung;mouser;187-CL05A475KQ5NRNC;
17;2.2uH;L1;y;C_0805;1;ELG-TEA2R2NA;panasonic;mouser;667-ELG-TEA2R2NA;
18;Jack_3.5_mini_5_pol;J1,J2,J3;Y;JACK 3.5 SHOGYO CORP;3;PS000059;multicomp;farnell;2900726;
20;ZX62D-B-5PA8;J4;y;HIROSE_ZX62D-B-5PA8;1;ZX62D-B-5PA8(30);hirose;mouser;798-ZX62D-B-5PA830;
21;LM3671MFX-3.3/NOPB;U3;y;SOT-23-5;1;LM3671MFX-1.2/NOPB;TI;LCSC;C130903;
22;LED-Red(0603);D1;y;LED0603-FD;1;KT-0603R;lite-on;mouser;LTST-C191KRKT;
24;LED-Blue(0603);D2;y;LED0603-FD;1;19-217/BHC-ZL1M2RY/3T;EVERLIGHT;mouser;LTST-C194TBKT;
28;LED-0603_G;D3;y;LED0603-FD;1;19-217/GHC-YR1S2/3T;lite-on;mouser;LTST-C190KGKT;
25;32.768KHz;X1;y;OSC-SMD_L3.2-W1.5;1;NX3215SA 32.768KHZ 12.5PF 20PPM;NDK;mouser;344-NX3215SA32768K8;
29;MCP73832T-3ACI/OT;U2;y;SOT-23-5;1;MCP73832T-3ACI/OT;MICROCHIP;mouser;579-MCP73832T-3ACIOT;
30;KSS241GLFS;SW1;y;KEY-SMD_KSS-2G;1;KSS241GLFS;C&K;mouser;611-KSS241GLFS;
31;STM32L011F4P6;U4;y;TSSOP-20_L6.5-W4.4-P0.65-LS6.4-BL;1;STM32L011F4P6;STMicroelectronics;mouser;511-STM32L011F4P6;
6;BSS84-7-F;Q2;y;SOT-23(SOT-23-3);1;BSS84-7-F;DIODES;LCSC;C85202;
7;2n3904;Q3;y;SOT-23_1;1;MMBT3904,215;nexpoeria;;;
33;HDR-F-2.54_1x4;H2;n;;;;;;;
5;HDR-F-2.54_1x2;H1;n;;;;;;;
23;HDR-F-2.54_1x3;H3;n;;;;;;;
32;SOLDERJUMPER_2WAYPASTE23;BOOT0;n;;;;;;;
;;;;;;;;;;
;;;;;;;;;;
;;;;;;;;;;comp
;;;;;1;;;;;PCB
;;;;;;;;;;montage
;;;;;;;;;;total
;;;;;;;;;;prijs/st
1 ID Name Designator place Footprint Quantity Manufacturer Part Manufacturer Supplier Supplier Part
2 1 20k R1,R2 y R_0402 2 RC0402FR-0720KL
3 2 1K R4,R7,R19,R8 y R_0402 3 RC0402FR-7W1KL
4 3 1M R6 n R_0402 1 RC0402FR-7W1ML
5 4 0E R3,R11 y R_0402 2 AC0402JR-7D0RL
6 10 10K R18,R17,R10,R5 y R_0402 3 RC0402FR-7W10KL yageo mouser 603-RC0402FR-7W10KL
7 11 470E R9 y R_0402 1 RCC0402470RFKED vishay mouser 71-RCC0402470RFKED
8 14 4.3p C1,C2 y C_0402 2 CC402CRNPO9BN4R3 yageo mouser 603-CC402CRNPO9BN4R3
9 15 0.1u C4,C5 y C_0402 2 CC402KRX7R6BB104 yageo mouser 603-CC402KRX7R6BB104
10 16 1u/10v C6 y C_0402 1 C0402C105K9PAC kemet mouser 80-C0402C105K9PAC
11 26 2.2u/10v C8,C7,C9,C10 y C_0805 4 LMK105BJ225KV-F taiyo yuden 963-LMK105BJ225KV-F
12 27 4.7u C3 y C_0805 1 CL05A475KQ5NRNC samsung mouser 187-CL05A475KQ5NRNC
13 17 2.2uH L1 y C_0805 1 ELG-TEA2R2NA panasonic mouser 667-ELG-TEA2R2NA
14 18 Jack_3.5_mini_5_pol J1,J2,J3 Y JACK 3.5 SHOGYO CORP 3 PS000059 multicomp farnell 2900726
15 20 ZX62D-B-5PA8 J4 y HIROSE_ZX62D-B-5PA8 1 ZX62D-B-5PA8(30) hirose mouser 798-ZX62D-B-5PA830
16 21 LM3671MFX-3.3/NOPB U3 y SOT-23-5 1 LM3671MFX-1.2/NOPB TI LCSC C130903
17 22 LED-Red(0603) D1 y LED0603-FD 1 KT-0603R lite-on mouser LTST-C191KRKT
18 24 LED-Blue(0603) D2 y LED0603-FD 1 19-217/BHC-ZL1M2RY/3T EVERLIGHT mouser LTST-C194TBKT
19 28 LED-0603_G D3 y LED0603-FD 1 19-217/GHC-YR1S2/3T lite-on mouser LTST-C190KGKT
20 25 32.768KHz X1 y OSC-SMD_L3.2-W1.5 1 NX3215SA 32.768KHZ 12.5PF 20PPM NDK mouser 344-NX3215SA32768K8
21 29 MCP73832T-3ACI/OT U2 y SOT-23-5 1 MCP73832T-3ACI/OT MICROCHIP mouser 579-MCP73832T-3ACIOT
22 30 KSS241GLFS SW1 y KEY-SMD_KSS-2G 1 KSS241GLFS C&K mouser 611-KSS241GLFS
23 31 STM32L011F4P6 U4 y TSSOP-20_L6.5-W4.4-P0.65-LS6.4-BL 1 STM32L011F4P6 STMicroelectronics mouser 511-STM32L011F4P6
24 6 BSS84-7-F Q2 y SOT-23(SOT-23-3) 1 BSS84-7-F DIODES LCSC C85202
25 7 2n3904 Q3 y SOT-23_1 1 MMBT3904,215 nexpoeria
26 33 HDR-F-2.54_1x4 H2 n
27 5 HDR-F-2.54_1x2 H1 n
28 23 HDR-F-2.54_1x3 H3 n
29 32 SOLDERJUMPER_2WAYPASTE23 BOOT0 n
30
31
32 comp
33 1 PCB
34 montage
35 total
36 prijs/st

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -1,15 +0,0 @@
(module 3,5mm_straight_circular (layer F.Cu) (tedit 6027E55C)
(fp_text reference REF** (at 0 -4) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value 3,5mm_straight_circular (at 0 3) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_circle (center 0 0) (end 8 0) (layer F.SilkS) (width 0.15))
(pad 1 thru_hole oval (at 0 -2.5) (size 3.2 1.4) (drill oval 2.6 0.8) (layers *.Cu *.Mask)
(die_length 1))
(pad 2 thru_hole oval (at -2.5 0 90) (size 3.2 1.4) (drill oval 2.6 0.8) (layers *.Cu *.Mask)
(die_length 1))
(pad 3 thru_hole oval (at 2.5 0 90) (size 3.2 1.4) (drill oval 2.6 0.8) (layers *.Cu *.Mask)
(die_length 1))
)

View File

@@ -1,14 +0,0 @@
(module 428-202569-MG01 (layer F.Cu) (tedit 602ED7AC)
(fp_text reference REF** (at -0.5 2.5) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value 428-202569-MG01 (at 0 4.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start 2 -1) (end 2 1) (layer F.SilkS) (width 0.12))
(fp_line (start 2 1) (end -2 1) (layer F.SilkS) (width 0.12))
(fp_line (start -2 1) (end -2 -1) (layer F.SilkS) (width 0.12))
(fp_line (start -2 -1) (end 2 -1) (layer F.SilkS) (width 0.12))
(pad 1 smd rect (at -1.25 0) (size 1 1.8) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at 1.25 0) (size 1 1.8) (layers F.Cu F.Paste F.Mask))
)

View File

@@ -1,9 +0,0 @@
(module TestPoint_SMD_R (layer F.Cu) (tedit 602EC615)
(fp_text reference REF** (at -3.5 -2.5) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value TestPoint_SMD_R (at 0 -0.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(pad 1 smd circle (at 0 -2.5) (size 1 1) (layers F.Cu F.Paste F.Mask))
)

View File

@@ -1,43 +0,0 @@
(module USB_Micro_B_Female (layer F.Cu) (tedit 602ED58C)
(descr https://cdn.amphenol-icc.com/media/wysiwyg/files/drawing/10103594.pdf)
(attr smd)
(fp_text reference J2 (at 0 -5.13 180) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value USB_B_Micro (at 0 2.79 180) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start 4.68 1.75) (end 4.68 -4.22) (layer F.CrtYd) (width 0.05))
(fp_line (start -4.68 -4.22) (end 4.68 -4.22) (layer F.CrtYd) (width 0.05))
(fp_line (start -4.68 1.75) (end 4.68 1.75) (layer F.CrtYd) (width 0.05))
(fp_line (start -4.68 1.75) (end -4.68 -4.22) (layer F.CrtYd) (width 0.05))
(fp_line (start -1.6 -3.6) (end -1.6 -2) (layer F.SilkS) (width 0.1))
(fp_line (start 0 -4.1) (end 0.3 -4.1) (layer F.SilkS) (width 0.1))
(fp_line (start 0 -4.1) (end -0.3 -4.1) (layer F.SilkS) (width 0.1))
(fp_line (start 3.9 1.4) (end 3.9 1.1) (layer F.SilkS) (width 0.1))
(fp_line (start 3.9 1.4) (end 3.6 1.4) (layer F.SilkS) (width 0.1))
(fp_line (start -3.9 1.4) (end -3.9 1.1) (layer F.SilkS) (width 0.1))
(fp_line (start -3.9 1.4) (end -3.6 1.4) (layer F.SilkS) (width 0.1))
(fp_line (start -3.9 -4.1) (end -3.6 -4.1) (layer F.SilkS) (width 0.1))
(fp_line (start -3.9 -4.1) (end -3.9 -3.8) (layer F.SilkS) (width 0.1))
(fp_line (start 3.9 -4.1) (end 3.6 -4.1) (layer F.SilkS) (width 0.1))
(fp_line (start 3.9 -4.1) (end 3.9 -3.8) (layer F.SilkS) (width 0.1))
(fp_line (start -3.75 1.29) (end 3.75 1.29) (layer F.Fab) (width 0.1))
(fp_line (start 3.75 -3.97) (end 3.75 1.29) (layer F.Fab) (width 0.1))
(fp_line (start -3.75 -3.97) (end 3.75 -3.97) (layer F.Fab) (width 0.1))
(fp_line (start -3.75 -3.97) (end -3.75 1.29) (layer F.Fab) (width 0.1))
(fp_line (start 3.75 2.15) (end -3.75 2.15) (layer F.SilkS) (width 0.12))
(pad SH smd rect (at -1.5 1.15) (size 1 1) (layers F.Cu F.Paste F.Mask))
(pad 1 smd rect (at -1.3 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
(pad SH thru_hole rect (at -3.6 -3.16) (size 2 1.8) (drill oval 0.7 1.3 (offset -0.2 0)) (layers *.Cu *.Mask))
(pad SH thru_hole oval (at -3.6 0) (size 1.3 2.15) (drill oval 0.7 1.3) (layers *.Cu *.Mask))
(pad SH thru_hole rect (at 3.6 -3.16 180) (size 2 1.8) (drill oval 0.7 1.3 (offset -0.2 0)) (layers *.Cu *.Mask))
(pad SH thru_hole oval (at 3.6 0) (size 1.3 2.15) (drill oval 0.7 1.3) (layers *.Cu *.Mask))
(pad "" np_thru_hole circle (at -2 -2.15) (size 0.6 0.6) (drill 0.6) (layers *.Cu *.Mask))
(pad "" np_thru_hole circle (at 2 -2.15) (size 0.6 0.6) (drill 0.6) (layers *.Cu *.Mask))
(pad SH smd rect (at 1.5 1.15) (size 1 1) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at -0.65 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
(pad 3 smd rect (at 0 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
(pad 4 smd rect (at 0.65 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
(pad 5 smd rect (at 1.3 -3.16) (size 0.4 2.15) (layers F.Cu F.Paste F.Mask))
)

View File

@@ -1,20 +0,0 @@
(module slids_switch_spdt (layer F.Cu) (tedit 6027F33B)
(fp_text reference REF** (at 0.5 -3.5) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value slids_switch_spdt (at 0.5 3.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -6.5 -2.85) (end -6.5 2.85) (layer F.SilkS) (width 0.12))
(fp_line (start -6.5 2.85) (end 6.5 2.85) (layer F.SilkS) (width 0.12))
(fp_line (start 6.5 -2.85) (end 6.5 2.85) (layer F.SilkS) (width 0.12))
(fp_line (start 6.5 -2.85) (end -6.5 -2.85) (layer F.SilkS) (width 0.12))
(fp_line (start -3 2.85) (end -3 6.85) (layer F.SilkS) (width 0.12))
(fp_line (start -3 6.85) (end 0 6.85) (layer F.SilkS) (width 0.12))
(fp_line (start 0 2.85) (end 0 6.85) (layer F.SilkS) (width 0.12))
(pad 1 thru_hole circle (at -3 0) (size 1.4 1.4) (drill 0.85) (layers *.Cu *.Mask))
(pad 2 thru_hole circle (at 0 0) (size 1.4 1.4) (drill 0.85) (layers *.Cu *.Mask))
(pad 3 thru_hole circle (at 3 0) (size 1.4 1.4) (drill 0.85) (layers *.Cu *.Mask))
(pad 4 thru_hole oval (at -6.3 0) (size 0.8 1.8) (drill oval 0.4 1.4) (layers *.Cu *.Mask))
(pad 5 thru_hole oval (at 6.3 0) (size 0.8 1.8) (drill oval 0.4 1.4) (layers *.Cu *.Mask))
)

Binary file not shown.

View File

@@ -0,0 +1,5 @@
9473475;150
9491902;100
2911026;150
4480181;150
1003213;50
1 9473475 150
2 9491902 100
3 2911026 150
4 4480181 150
5 1003213 50

View File

@@ -1,8 +1,15 @@
8067501134943 24274158777943
MySymbols MySymbols
3,5mm_straight_circular 3,5mm_straight_circular
0
3
3
MySymbols
3,5mm_straight_square
0 0
3 3
3 3
@@ -14,6 +21,55 @@ MySymbols
2 2
2 2
MySymbols MySymbols
BKA30D-R05
0
8
8
MySymbols
OLED_I2C_128x32
0
4
4
MySymbols
RS5808_PRO_OSD_CASTELATED
0
10
10
MySymbols
RX5808
0
14
13
MySymbols
R_1206_3216Metric_REVERSED
Resistor SMD 1206 (3216 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator
resistor
0
2
2
MySymbols
SOP65P637X110-28N
0
29
29
MySymbols
SWD_Programming_pads
Through hole straight pin header, 1x04, 2.54mm pitch, single row
Through hole pin header THT 1x04 2.54mm single row
0
4
4
MySymbols
TestPoint_SMD_R TestPoint_SMD_R
@@ -21,6 +77,13 @@ TestPoint_SMD_R
1 1
1 1
MySymbols MySymbols
Toggle_Switch_100SP1T1B4M2QE
http://spec_sheets.e-switch.com/specs/T111597.pdf
0
3
3
MySymbols
USB_Micro_B_Female USB_Micro_B_Female
https://cdn.amphenol-icc.com/media/wysiwyg/files/drawing/10103594.pdf https://cdn.amphenol-icc.com/media/wysiwyg/files/drawing/10103594.pdf
@@ -28,9 +91,16 @@ https://cdn.amphenol-icc.com/media/wysiwyg/files/drawing/10103594.pdf
11 11
6 6
MySymbols MySymbols
X40_Stepper
0
8
8
MySymbols
slids_switch_spdt slids_switch_spdt
0 0
5 5
5 4

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,137 +0,0 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Soldermask,Bot*%
%TF.FilePolarity,Negative*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10C,0.600000*%
%ADD11O,2.150000X1.300000*%
%ADD12R,1.800000X2.000000*%
%ADD13C,2.850000*%
%ADD14R,2.850000X2.850000*%
%ADD15C,2.020000*%
%ADD16O,1.700000X2.000000*%
%ADD17O,3.200000X1.400000*%
%ADD18O,1.400000X3.200000*%
%ADD19C,0.400000*%
%ADD20C,1.400000*%
%ADD21O,1.800000X0.800000*%
G04 APERTURE END LIST*
D10*
%TO.C,J2*%
X111116000Y-98012000D03*
X111116000Y-94012000D03*
D11*
X108966000Y-99612000D03*
D12*
X112126000Y-99812000D03*
D11*
X108966000Y-92412000D03*
D12*
X112126000Y-92212000D03*
%TD*%
D13*
%TO.C,SW3*%
X170034000Y-76612000D03*
X170034000Y-81312000D03*
D14*
X170034000Y-86012000D03*
%TD*%
D13*
%TO.C,SW2*%
X145034000Y-76612000D03*
X145034000Y-81312000D03*
D14*
X145034000Y-86012000D03*
%TD*%
D13*
%TO.C,SW1*%
X120034000Y-76612000D03*
X120034000Y-81312000D03*
D14*
X120034000Y-86012000D03*
%TD*%
D15*
%TO.C,J3*%
X180594000Y-91186000D03*
X180594000Y-93726000D03*
X180594000Y-96266000D03*
X180594000Y-98806000D03*
%TD*%
D16*
%TO.C,J1*%
X180034000Y-78012000D03*
G36*
G01*
X176684000Y-78762000D02*
X176684000Y-77262000D01*
G75*
G02*
X176934000Y-77012000I250000J0D01*
G01*
X178134000Y-77012000D01*
G75*
G02*
X178384000Y-77262000I0J-250000D01*
G01*
X178384000Y-78762000D01*
G75*
G02*
X178134000Y-79012000I-250000J0D01*
G01*
X176934000Y-79012000D01*
G75*
G02*
X176684000Y-78762000I0J250000D01*
G01*
G37*
%TD*%
D17*
%TO.C,CON1*%
X120034000Y-107012000D03*
D18*
X117534000Y-109512000D03*
X122534000Y-109512000D03*
%TD*%
D17*
%TO.C,CON2*%
X145034000Y-107012000D03*
D18*
X142534000Y-109512000D03*
X147534000Y-109512000D03*
%TD*%
%TO.C,CON3*%
X172534000Y-109512000D03*
X167534000Y-109512000D03*
D17*
X170034000Y-107012000D03*
%TD*%
D19*
%TO.C,U1*%
X153190000Y-85962000D03*
X153190000Y-84962000D03*
X153190000Y-83962000D03*
X154190000Y-85962000D03*
X154190000Y-84962000D03*
X154190000Y-83962000D03*
X155190000Y-85962000D03*
X155190000Y-84962000D03*
X155190000Y-83962000D03*
%TD*%
D20*
%TO.C,S1*%
X111034000Y-79512000D03*
X111034000Y-82512000D03*
X111034000Y-85512000D03*
D21*
X111034000Y-76212000D03*
X111034000Y-88812000D03*
%TD*%
M02*

View File

@@ -0,0 +1,135 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*
G04 #@! TF.CreationDate,2021-04-21T20:11:12+02:00*
G04 #@! TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,1.1*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Soldermask,Bot*
G04 #@! TF.FilePolarity,Negative*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-04-21 20:11:12*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10O,1.700000X1.700000*%
%ADD11R,1.700000X1.700000*%
%ADD12O,4.500000X2.500000*%
%ADD13O,2.500000X4.000000*%
%ADD14O,4.000000X2.500000*%
%ADD15C,1.000000*%
%ADD16C,2.100000*%
%ADD17C,1.750000*%
%ADD18R,1.500000X1.000000*%
%ADD19O,1.200000X1.750000*%
%ADD20C,0.400000*%
%ADD21R,1.800000X2.000000*%
%ADD22O,2.150000X1.300000*%
%ADD23C,0.550000*%
%ADD24R,3.200000X2.300000*%
%ADD25C,3.200000*%
G04 APERTURE END LIST*
D10*
X76586160Y-18671460D03*
X76586160Y-21211460D03*
X76586160Y-23751460D03*
D11*
X76586160Y-26291460D03*
D12*
X65000000Y-33200000D03*
D13*
X68550000Y-36400000D03*
D14*
X65000000Y-41300000D03*
D12*
X40000000Y-33200000D03*
D13*
X43550000Y-36400000D03*
D14*
X40000000Y-41300000D03*
D12*
X15000000Y-33200000D03*
D13*
X18550000Y-36400000D03*
D14*
X15000000Y-41300000D03*
D15*
X59385200Y-5232400D03*
X21056600Y-2286000D03*
X32512000Y-32131000D03*
X28702000Y-32131000D03*
X25146000Y-32131000D03*
X52197000Y-6985000D03*
X59232800Y-17322800D03*
D16*
X5490000Y-13250000D03*
D17*
X3000000Y-12000000D03*
X3000000Y-7500000D03*
D16*
X5490000Y-6240000D03*
D18*
X57653000Y-3912000D03*
X57653000Y-5212000D03*
D19*
X76544000Y-6228000D03*
G36*
G01*
X73944000Y-6853001D02*
X73944000Y-5602999D01*
G75*
G02*
X74193999Y-5353000I249999J0D01*
G01*
X74894001Y-5353000D01*
G75*
G02*
X75144000Y-5602999I0J-249999D01*
G01*
X75144000Y-6853001D01*
G75*
G02*
X74894001Y-7103000I-249999J0D01*
G01*
X74193999Y-7103000D01*
G75*
G02*
X73944000Y-6853001I0J249999D01*
G01*
G37*
D20*
X50156000Y-11450000D03*
X50156000Y-12450000D03*
X50156000Y-13450000D03*
X49156000Y-11450000D03*
X49156000Y-12450000D03*
X49156000Y-13450000D03*
X48156000Y-11450000D03*
X48156000Y-12450000D03*
X48156000Y-13450000D03*
D21*
X5047300Y-19692380D03*
D22*
X1887300Y-19892380D03*
D21*
X5047300Y-27292380D03*
D22*
X1887300Y-27092380D03*
D23*
X4037300Y-21492380D03*
X4037300Y-25492380D03*
D24*
X15000000Y-13500000D03*
D25*
X15000000Y-8800000D03*
X15000000Y-4100000D03*
D24*
X40000000Y-13500000D03*
D25*
X40000000Y-8800000D03*
X40000000Y-4100000D03*
D24*
X65000000Y-13500000D03*
D25*
X65000000Y-8800000D03*
X65000000Y-4100000D03*
M02*

View File

@@ -0,0 +1,24 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*
G04 #@! TF.CreationDate,2021-04-21T20:11:12+02:00*
G04 #@! TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,1.1*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Paste,Bot*
G04 #@! TF.FilePolarity,Positive*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-04-21 20:11:12*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10C,1.000000*%
G04 APERTURE END LIST*
D10*
X59385200Y-5232400D03*
X21056600Y-2286000D03*
X32512000Y-32131000D03*
X28702000Y-32131000D03*
X25146000Y-32131000D03*
X52197000Y-6985000D03*
X59232800Y-17322800D03*
M02*

View File

@@ -1,15 +0,0 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Paste,Bot*%
%TF.FilePolarity,Positive*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 APERTURE END LIST*
M02*

View File

@@ -0,0 +1,461 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*
G04 #@! TF.CreationDate,2021-04-21T20:11:12+02:00*
G04 #@! TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,1.1*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Legend,Bot*
G04 #@! TF.FilePolarity,Positive*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-04-21 20:11:12*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10C,0.120000*%
%ADD11C,0.150000*%
%ADD12O,1.700000X1.700000*%
%ADD13R,1.700000X1.700000*%
%ADD14O,4.500000X2.500000*%
%ADD15O,2.500000X4.000000*%
%ADD16O,4.000000X2.500000*%
%ADD17C,1.000000*%
%ADD18C,2.100000*%
%ADD19C,1.750000*%
%ADD20R,1.500000X1.000000*%
%ADD21O,1.200000X1.750000*%
%ADD22C,0.400000*%
%ADD23R,1.800000X2.000000*%
%ADD24O,2.150000X1.300000*%
%ADD25C,0.550000*%
%ADD26R,3.200000X2.300000*%
%ADD27C,3.200000*%
G04 APERTURE END LIST*
D10*
X60092307Y-5232400D02*
G75*
G03*
X60092307Y-5232400I-707107J0D01*
G01*
X21763707Y-2286000D02*
G75*
G03*
X21763707Y-2286000I-707107J0D01*
G01*
X33219107Y-32131000D02*
G75*
G03*
X33219107Y-32131000I-707107J0D01*
G01*
X29409107Y-32131000D02*
G75*
G03*
X29409107Y-32131000I-707107J0D01*
G01*
X25853107Y-32131000D02*
G75*
G03*
X25853107Y-32131000I-707107J0D01*
G01*
X52904107Y-6985000D02*
G75*
G03*
X52904107Y-6985000I-707107J0D01*
G01*
X59939907Y-17322800D02*
G75*
G03*
X59939907Y-17322800I-707107J0D01*
G01*
X58653000Y-3162000D02*
X56653000Y-3162000D01*
X58653000Y-5962000D02*
X58653000Y-3162000D01*
X56653000Y-5962000D02*
X58653000Y-5962000D01*
X56653000Y-3162000D02*
X56653000Y-5962000D01*
D11*
X61764704Y-6157980D02*
X61193276Y-6157980D01*
X61478990Y-7157980D02*
X61478990Y-6157980D01*
X60859942Y-7157980D02*
X60859942Y-6157980D01*
X60478990Y-6157980D01*
X60383752Y-6205600D01*
X60336133Y-6253219D01*
X60288514Y-6348457D01*
X60288514Y-6491314D01*
X60336133Y-6586552D01*
X60383752Y-6634171D01*
X60478990Y-6681790D01*
X60859942Y-6681790D01*
X59383752Y-6157980D02*
X59859942Y-6157980D01*
X59907561Y-6634171D01*
X59859942Y-6586552D01*
X59764704Y-6538933D01*
X59526609Y-6538933D01*
X59431371Y-6586552D01*
X59383752Y-6634171D01*
X59336133Y-6729409D01*
X59336133Y-6967504D01*
X59383752Y-7062742D01*
X59431371Y-7110361D01*
X59526609Y-7157980D01*
X59764704Y-7157980D01*
X59859942Y-7110361D01*
X59907561Y-7062742D01*
X22293104Y-3236980D02*
X21721676Y-3236980D01*
X22007390Y-4236980D02*
X22007390Y-3236980D01*
X21388342Y-4236980D02*
X21388342Y-3236980D01*
X21007390Y-3236980D01*
X20912152Y-3284600D01*
X20864533Y-3332219D01*
X20816914Y-3427457D01*
X20816914Y-3570314D01*
X20864533Y-3665552D01*
X20912152Y-3713171D01*
X21007390Y-3760790D01*
X21388342Y-3760790D01*
X19959771Y-3570314D02*
X19959771Y-4236980D01*
X20197866Y-3189361D02*
X20435961Y-3903647D01*
X19816914Y-3903647D01*
X33773904Y-30186380D02*
X33202476Y-30186380D01*
X33488190Y-31186380D02*
X33488190Y-30186380D01*
X32869142Y-31186380D02*
X32869142Y-30186380D01*
X32488190Y-30186380D01*
X32392952Y-30234000D01*
X32345333Y-30281619D01*
X32297714Y-30376857D01*
X32297714Y-30519714D01*
X32345333Y-30614952D01*
X32392952Y-30662571D01*
X32488190Y-30710190D01*
X32869142Y-30710190D01*
X31964380Y-30186380D02*
X31345333Y-30186380D01*
X31678666Y-30567333D01*
X31535809Y-30567333D01*
X31440571Y-30614952D01*
X31392952Y-30662571D01*
X31345333Y-30757809D01*
X31345333Y-30995904D01*
X31392952Y-31091142D01*
X31440571Y-31138761D01*
X31535809Y-31186380D01*
X31821523Y-31186380D01*
X31916761Y-31138761D01*
X31964380Y-31091142D01*
X30090904Y-30186380D02*
X29519476Y-30186380D01*
X29805190Y-31186380D02*
X29805190Y-30186380D01*
X29186142Y-31186380D02*
X29186142Y-30186380D01*
X28805190Y-30186380D01*
X28709952Y-30234000D01*
X28662333Y-30281619D01*
X28614714Y-30376857D01*
X28614714Y-30519714D01*
X28662333Y-30614952D01*
X28709952Y-30662571D01*
X28805190Y-30710190D01*
X29186142Y-30710190D01*
X28233761Y-30281619D02*
X28186142Y-30234000D01*
X28090904Y-30186380D01*
X27852809Y-30186380D01*
X27757571Y-30234000D01*
X27709952Y-30281619D01*
X27662333Y-30376857D01*
X27662333Y-30472095D01*
X27709952Y-30614952D01*
X28281380Y-31186380D01*
X27662333Y-31186380D01*
X26407904Y-30186380D02*
X25836476Y-30186380D01*
X26122190Y-31186380D02*
X26122190Y-30186380D01*
X25503142Y-31186380D02*
X25503142Y-30186380D01*
X25122190Y-30186380D01*
X25026952Y-30234000D01*
X24979333Y-30281619D01*
X24931714Y-30376857D01*
X24931714Y-30519714D01*
X24979333Y-30614952D01*
X25026952Y-30662571D01*
X25122190Y-30710190D01*
X25503142Y-30710190D01*
X23979333Y-31186380D02*
X24550761Y-31186380D01*
X24265047Y-31186380D02*
X24265047Y-30186380D01*
X24360285Y-30329238D01*
X24455523Y-30424476D01*
X24550761Y-30472095D01*
X51061809Y-6294380D02*
X51395142Y-5818190D01*
X51633238Y-6294380D02*
X51633238Y-5294380D01*
X51252285Y-5294380D01*
X51157047Y-5342000D01*
X51109428Y-5389619D01*
X51061809Y-5484857D01*
X51061809Y-5627714D01*
X51109428Y-5722952D01*
X51157047Y-5770571D01*
X51252285Y-5818190D01*
X51633238Y-5818190D01*
X50680857Y-6246761D02*
X50538000Y-6294380D01*
X50299904Y-6294380D01*
X50204666Y-6246761D01*
X50157047Y-6199142D01*
X50109428Y-6103904D01*
X50109428Y-6008666D01*
X50157047Y-5913428D01*
X50204666Y-5865809D01*
X50299904Y-5818190D01*
X50490380Y-5770571D01*
X50585619Y-5722952D01*
X50633238Y-5675333D01*
X50680857Y-5580095D01*
X50680857Y-5484857D01*
X50633238Y-5389619D01*
X50585619Y-5342000D01*
X50490380Y-5294380D01*
X50252285Y-5294380D01*
X50109428Y-5342000D01*
X49823714Y-5294380D02*
X49252285Y-5294380D01*
X49538000Y-6294380D02*
X49538000Y-5294380D01*
X48395142Y-6294380D02*
X48966571Y-6294380D01*
X48680857Y-6294380D02*
X48680857Y-5294380D01*
X48776095Y-5437238D01*
X48871333Y-5532476D01*
X48966571Y-5580095D01*
X58150133Y-16235371D02*
X58007276Y-16282990D01*
X57959657Y-16330609D01*
X57912038Y-16425847D01*
X57912038Y-16568704D01*
X57959657Y-16663942D01*
X58007276Y-16711561D01*
X58102514Y-16759180D01*
X58483466Y-16759180D01*
X58483466Y-15759180D01*
X58150133Y-15759180D01*
X58054895Y-15806800D01*
X58007276Y-15854419D01*
X57959657Y-15949657D01*
X57959657Y-16044895D01*
X58007276Y-16140133D01*
X58054895Y-16187752D01*
X58150133Y-16235371D01*
X58483466Y-16235371D01*
X57292990Y-15759180D02*
X57102514Y-15759180D01*
X57007276Y-15806800D01*
X56912038Y-15902038D01*
X56864419Y-16092514D01*
X56864419Y-16425847D01*
X56912038Y-16616323D01*
X57007276Y-16711561D01*
X57102514Y-16759180D01*
X57292990Y-16759180D01*
X57388228Y-16711561D01*
X57483466Y-16616323D01*
X57531085Y-16425847D01*
X57531085Y-16092514D01*
X57483466Y-15902038D01*
X57388228Y-15806800D01*
X57292990Y-15759180D01*
X56245371Y-15759180D02*
X56054895Y-15759180D01*
X55959657Y-15806800D01*
X55864419Y-15902038D01*
X55816800Y-16092514D01*
X55816800Y-16425847D01*
X55864419Y-16616323D01*
X55959657Y-16711561D01*
X56054895Y-16759180D01*
X56245371Y-16759180D01*
X56340609Y-16711561D01*
X56435847Y-16616323D01*
X56483466Y-16425847D01*
X56483466Y-16092514D01*
X56435847Y-15902038D01*
X56340609Y-15806800D01*
X56245371Y-15759180D01*
X55531085Y-15759180D02*
X54959657Y-15759180D01*
X55245371Y-16759180D02*
X55245371Y-15759180D01*
X54435847Y-15759180D02*
X54340609Y-15759180D01*
X54245371Y-15806800D01*
X54197752Y-15854419D01*
X54150133Y-15949657D01*
X54102514Y-16140133D01*
X54102514Y-16378228D01*
X54150133Y-16568704D01*
X54197752Y-16663942D01*
X54245371Y-16711561D01*
X54340609Y-16759180D01*
X54435847Y-16759180D01*
X54531085Y-16711561D01*
X54578704Y-16663942D01*
X54626323Y-16568704D01*
X54673942Y-16378228D01*
X54673942Y-16140133D01*
X54626323Y-15949657D01*
X54578704Y-15854419D01*
X54531085Y-15806800D01*
X54435847Y-15759180D01*
X58440533Y-1738380D02*
X58440533Y-2452666D01*
X58488152Y-2595523D01*
X58583390Y-2690761D01*
X58726247Y-2738380D01*
X58821485Y-2738380D01*
X57964342Y-2738380D02*
X57964342Y-1738380D01*
X57583390Y-1738380D01*
X57488152Y-1786000D01*
X57440533Y-1833619D01*
X57392914Y-1928857D01*
X57392914Y-2071714D01*
X57440533Y-2166952D01*
X57488152Y-2214571D01*
X57583390Y-2262190D01*
X57964342Y-2262190D01*
X57011961Y-1833619D02*
X56964342Y-1786000D01*
X56869104Y-1738380D01*
X56631009Y-1738380D01*
X56535771Y-1786000D01*
X56488152Y-1833619D01*
X56440533Y-1928857D01*
X56440533Y-2024095D01*
X56488152Y-2166952D01*
X57059580Y-2738380D01*
X56440533Y-2738380D01*
%LPC*%
D12*
X76586160Y-18671460D03*
X76586160Y-21211460D03*
X76586160Y-23751460D03*
D13*
X76586160Y-26291460D03*
D14*
X65000000Y-33200000D03*
D15*
X68550000Y-36400000D03*
D16*
X65000000Y-41300000D03*
D14*
X40000000Y-33200000D03*
D15*
X43550000Y-36400000D03*
D16*
X40000000Y-41300000D03*
D14*
X15000000Y-33200000D03*
D15*
X18550000Y-36400000D03*
D16*
X15000000Y-41300000D03*
D17*
X59385200Y-5232400D03*
X21056600Y-2286000D03*
X32512000Y-32131000D03*
X28702000Y-32131000D03*
X25146000Y-32131000D03*
X52197000Y-6985000D03*
X59232800Y-17322800D03*
D18*
X5490000Y-13250000D03*
D19*
X3000000Y-12000000D03*
X3000000Y-7500000D03*
D18*
X5490000Y-6240000D03*
D20*
X57653000Y-3912000D03*
X57653000Y-5212000D03*
D21*
X76544000Y-6228000D03*
G36*
G01*
X73944000Y-6853001D02*
X73944000Y-5602999D01*
G75*
G02*
X74193999Y-5353000I249999J0D01*
G01*
X74894001Y-5353000D01*
G75*
G02*
X75144000Y-5602999I0J-249999D01*
G01*
X75144000Y-6853001D01*
G75*
G02*
X74894001Y-7103000I-249999J0D01*
G01*
X74193999Y-7103000D01*
G75*
G02*
X73944000Y-6853001I0J249999D01*
G01*
G37*
D22*
X50156000Y-11450000D03*
X50156000Y-12450000D03*
X50156000Y-13450000D03*
X49156000Y-11450000D03*
X49156000Y-12450000D03*
X49156000Y-13450000D03*
X48156000Y-11450000D03*
X48156000Y-12450000D03*
X48156000Y-13450000D03*
D23*
X5047300Y-19692380D03*
D24*
X1887300Y-19892380D03*
D23*
X5047300Y-27292380D03*
D24*
X1887300Y-27092380D03*
D25*
X4037300Y-21492380D03*
X4037300Y-25492380D03*
D26*
X15000000Y-13500000D03*
D27*
X15000000Y-8800000D03*
X15000000Y-4100000D03*
D26*
X40000000Y-13500000D03*
D27*
X40000000Y-8800000D03*
X40000000Y-4100000D03*
D26*
X65000000Y-13500000D03*
D27*
X65000000Y-8800000D03*
X65000000Y-4100000D03*
M02*

View File

@@ -1,15 +0,0 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Legend,Bot*%
%TF.FilePolarity,Positive*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 APERTURE END LIST*
M02*

View File

@@ -0,0 +1,578 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*
G04 #@! TF.CreationDate,2021-04-21T20:11:12+02:00*
G04 #@! TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,1.1*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,OtherDrawing,Comment*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-04-21 20:11:12*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10C,0.150000*%
%ADD11C,0.120000*%
%ADD12C,0.100000*%
G04 APERTURE END LIST*
D10*
X80Y80D02*
X79999920Y80D01*
X80Y-46997540D02*
X80Y80D01*
X79999920Y-46997540D02*
X80Y-46997540D01*
X79999920Y-2460D02*
X79999920Y-46997540D01*
X-15847476Y-36430142D02*
X-15895095Y-36477761D01*
X-16037952Y-36525380D01*
X-16133190Y-36525380D01*
X-16276047Y-36477761D01*
X-16371285Y-36382523D01*
X-16418904Y-36287285D01*
X-16466523Y-36096809D01*
X-16466523Y-35953952D01*
X-16418904Y-35763476D01*
X-16371285Y-35668238D01*
X-16276047Y-35573000D01*
X-16133190Y-35525380D01*
X-16037952Y-35525380D01*
X-15895095Y-35573000D01*
X-15847476Y-35620619D01*
X-15418904Y-36525380D02*
X-15418904Y-35525380D01*
X-14990333Y-36525380D02*
X-14990333Y-36001571D01*
X-15037952Y-35906333D01*
X-15133190Y-35858714D01*
X-15276047Y-35858714D01*
X-15371285Y-35906333D01*
X-15418904Y-35953952D01*
X-14085571Y-36525380D02*
X-14085571Y-36001571D01*
X-14133190Y-35906333D01*
X-14228428Y-35858714D01*
X-14418904Y-35858714D01*
X-14514142Y-35906333D01*
X-14085571Y-36477761D02*
X-14180809Y-36525380D01*
X-14418904Y-36525380D01*
X-14514142Y-36477761D01*
X-14561761Y-36382523D01*
X-14561761Y-36287285D01*
X-14514142Y-36192047D01*
X-14418904Y-36144428D01*
X-14180809Y-36144428D01*
X-14085571Y-36096809D01*
X-13609380Y-36525380D02*
X-13609380Y-35858714D01*
X-13609380Y-36049190D02*
X-13561761Y-35953952D01*
X-13514142Y-35906333D01*
X-13418904Y-35858714D01*
X-13323666Y-35858714D01*
X-12561761Y-35858714D02*
X-12561761Y-36668238D01*
X-12609380Y-36763476D01*
X-12657000Y-36811095D01*
X-12752238Y-36858714D01*
X-12895095Y-36858714D01*
X-12990333Y-36811095D01*
X-12561761Y-36477761D02*
X-12657000Y-36525380D01*
X-12847476Y-36525380D01*
X-12942714Y-36477761D01*
X-12990333Y-36430142D01*
X-13037952Y-36334904D01*
X-13037952Y-36049190D01*
X-12990333Y-35953952D01*
X-12942714Y-35906333D01*
X-12847476Y-35858714D01*
X-12657000Y-35858714D01*
X-12561761Y-35906333D01*
X-11704619Y-36477761D02*
X-11799857Y-36525380D01*
X-11990333Y-36525380D01*
X-12085571Y-36477761D01*
X-12133190Y-36382523D01*
X-12133190Y-36001571D01*
X-12085571Y-35906333D01*
X-11990333Y-35858714D01*
X-11799857Y-35858714D01*
X-11704619Y-35906333D01*
X-11657000Y-36001571D01*
X-11657000Y-36096809D01*
X-12133190Y-36192047D01*
X-10514142Y-36477761D02*
X-10418904Y-36525380D01*
X-10228428Y-36525380D01*
X-10133190Y-36477761D01*
X-10085571Y-36382523D01*
X-10085571Y-36334904D01*
X-10133190Y-36239666D01*
X-10228428Y-36192047D01*
X-10371285Y-36192047D01*
X-10466523Y-36144428D01*
X-10514142Y-36049190D01*
X-10514142Y-36001571D01*
X-10466523Y-35906333D01*
X-10371285Y-35858714D01*
X-10228428Y-35858714D01*
X-10133190Y-35906333D01*
X-9799857Y-35858714D02*
X-9418904Y-35858714D01*
X-9657000Y-35525380D02*
X-9657000Y-36382523D01*
X-9609380Y-36477761D01*
X-9514142Y-36525380D01*
X-9418904Y-36525380D01*
X-8657000Y-36525380D02*
X-8657000Y-36001571D01*
X-8704619Y-35906333D01*
X-8799857Y-35858714D01*
X-8990333Y-35858714D01*
X-9085571Y-35906333D01*
X-8657000Y-36477761D02*
X-8752238Y-36525380D01*
X-8990333Y-36525380D01*
X-9085571Y-36477761D01*
X-9133190Y-36382523D01*
X-9133190Y-36287285D01*
X-9085571Y-36192047D01*
X-8990333Y-36144428D01*
X-8752238Y-36144428D01*
X-8657000Y-36096809D01*
X-8323666Y-35858714D02*
X-7942714Y-35858714D01*
X-8180809Y-35525380D02*
X-8180809Y-36382523D01*
X-8133190Y-36477761D01*
X-8037952Y-36525380D01*
X-7942714Y-36525380D01*
X-7180809Y-35858714D02*
X-7180809Y-36525380D01*
X-7609380Y-35858714D02*
X-7609380Y-36382523D01*
X-7561761Y-36477761D01*
X-7466523Y-36525380D01*
X-7323666Y-36525380D01*
X-7228428Y-36477761D01*
X-7180809Y-36430142D01*
X-6752238Y-36477761D02*
X-6657000Y-36525380D01*
X-6466523Y-36525380D01*
X-6371285Y-36477761D01*
X-6323666Y-36382523D01*
X-6323666Y-36334904D01*
X-6371285Y-36239666D01*
X-6466523Y-36192047D01*
X-6609380Y-36192047D01*
X-6704619Y-36144428D01*
X-6752238Y-36049190D01*
X-6752238Y-36001571D01*
X-6704619Y-35906333D01*
X-6609380Y-35858714D01*
X-6466523Y-35858714D01*
X-6371285Y-35906333D01*
X-4657000Y-36525380D02*
X-5133190Y-36525380D01*
X-5133190Y-35525380D01*
X-4323666Y-36001571D02*
X-3990333Y-36001571D01*
X-3847476Y-36525380D02*
X-4323666Y-36525380D01*
X-4323666Y-35525380D01*
X-3847476Y-35525380D01*
X-3418904Y-36525380D02*
X-3418904Y-35525380D01*
X-3180809Y-35525380D01*
X-3037952Y-35573000D01*
X-2942714Y-35668238D01*
X-2895095Y-35763476D01*
X-2847476Y-35953952D01*
X-2847476Y-36096809D01*
X-2895095Y-36287285D01*
X-2942714Y-36382523D01*
X-3037952Y-36477761D01*
X-3180809Y-36525380D01*
X-3418904Y-36525380D01*
X-14061619Y-31080380D02*
X-14061619Y-31889904D01*
X-14014000Y-31985142D01*
X-13966380Y-32032761D01*
X-13871142Y-32080380D01*
X-13680666Y-32080380D01*
X-13585428Y-32032761D01*
X-13537809Y-31985142D01*
X-13490190Y-31889904D01*
X-13490190Y-31080380D01*
X-13061619Y-32032761D02*
X-12918761Y-32080380D01*
X-12680666Y-32080380D01*
X-12585428Y-32032761D01*
X-12537809Y-31985142D01*
X-12490190Y-31889904D01*
X-12490190Y-31794666D01*
X-12537809Y-31699428D01*
X-12585428Y-31651809D01*
X-12680666Y-31604190D01*
X-12871142Y-31556571D01*
X-12966380Y-31508952D01*
X-13014000Y-31461333D01*
X-13061619Y-31366095D01*
X-13061619Y-31270857D01*
X-13014000Y-31175619D01*
X-12966380Y-31128000D01*
X-12871142Y-31080380D01*
X-12633047Y-31080380D01*
X-12490190Y-31128000D01*
X-11728285Y-31556571D02*
X-11585428Y-31604190D01*
X-11537809Y-31651809D01*
X-11490190Y-31747047D01*
X-11490190Y-31889904D01*
X-11537809Y-31985142D01*
X-11585428Y-32032761D01*
X-11680666Y-32080380D01*
X-12061619Y-32080380D01*
X-12061619Y-31080380D01*
X-11728285Y-31080380D01*
X-11633047Y-31128000D01*
X-11585428Y-31175619D01*
X-11537809Y-31270857D01*
X-11537809Y-31366095D01*
X-11585428Y-31461333D01*
X-11633047Y-31508952D01*
X-11728285Y-31556571D01*
X-12061619Y-31556571D01*
X-10299714Y-31413714D02*
X-10299714Y-32413714D01*
X-10299714Y-31461333D02*
X-10204476Y-31413714D01*
X-10014000Y-31413714D01*
X-9918761Y-31461333D01*
X-9871142Y-31508952D01*
X-9823523Y-31604190D01*
X-9823523Y-31889904D01*
X-9871142Y-31985142D01*
X-9918761Y-32032761D01*
X-10014000Y-32080380D01*
X-10204476Y-32080380D01*
X-10299714Y-32032761D01*
X-9252095Y-32080380D02*
X-9347333Y-32032761D01*
X-9394952Y-31985142D01*
X-9442571Y-31889904D01*
X-9442571Y-31604190D01*
X-9394952Y-31508952D01*
X-9347333Y-31461333D01*
X-9252095Y-31413714D01*
X-9109238Y-31413714D01*
X-9014000Y-31461333D01*
X-8966380Y-31508952D01*
X-8918761Y-31604190D01*
X-8918761Y-31889904D01*
X-8966380Y-31985142D01*
X-9014000Y-32032761D01*
X-9109238Y-32080380D01*
X-9252095Y-32080380D01*
X-8585428Y-31413714D02*
X-8394952Y-32080380D01*
X-8204476Y-31604190D01*
X-8014000Y-32080380D01*
X-7823523Y-31413714D01*
X-7061619Y-32032761D02*
X-7156857Y-32080380D01*
X-7347333Y-32080380D01*
X-7442571Y-32032761D01*
X-7490190Y-31937523D01*
X-7490190Y-31556571D01*
X-7442571Y-31461333D01*
X-7347333Y-31413714D01*
X-7156857Y-31413714D01*
X-7061619Y-31461333D01*
X-7014000Y-31556571D01*
X-7014000Y-31651809D01*
X-7490190Y-31747047D01*
X-6585428Y-32080380D02*
X-6585428Y-31413714D01*
X-6585428Y-31604190D02*
X-6537809Y-31508952D01*
X-6490190Y-31461333D01*
X-6394952Y-31413714D01*
X-6299714Y-31413714D01*
X-4728285Y-32080380D02*
X-5204476Y-32080380D01*
X-5204476Y-31080380D01*
X-4394952Y-31556571D02*
X-4061619Y-31556571D01*
X-3918761Y-32080380D02*
X-4394952Y-32080380D01*
X-4394952Y-31080380D01*
X-3918761Y-31080380D01*
X-3490190Y-32080380D02*
X-3490190Y-31080380D01*
X-3252095Y-31080380D01*
X-3109238Y-31128000D01*
X-3014000Y-31223238D01*
X-2966380Y-31318476D01*
X-2918761Y-31508952D01*
X-2918761Y-31651809D01*
X-2966380Y-31842285D01*
X-3014000Y-31937523D01*
X-3109238Y-32032761D01*
X-3252095Y-32080380D01*
X-3490190Y-32080380D01*
X-17506285Y-23444380D02*
X-17506285Y-22444380D01*
X-17172952Y-23158666D01*
X-16839619Y-22444380D01*
X-16839619Y-23444380D01*
X-16363428Y-23444380D02*
X-16363428Y-22777714D01*
X-16363428Y-22444380D02*
X-16411047Y-22492000D01*
X-16363428Y-22539619D01*
X-16315809Y-22492000D01*
X-16363428Y-22444380D01*
X-16363428Y-22539619D01*
X-15458666Y-23396761D02*
X-15553904Y-23444380D01*
X-15744380Y-23444380D01*
X-15839619Y-23396761D01*
X-15887238Y-23349142D01*
X-15934857Y-23253904D01*
X-15934857Y-22968190D01*
X-15887238Y-22872952D01*
X-15839619Y-22825333D01*
X-15744380Y-22777714D01*
X-15553904Y-22777714D01*
X-15458666Y-22825333D01*
X-15030095Y-23444380D02*
X-15030095Y-22777714D01*
X-15030095Y-22968190D02*
X-14982476Y-22872952D01*
X-14934857Y-22825333D01*
X-14839619Y-22777714D01*
X-14744380Y-22777714D01*
X-14268190Y-23444380D02*
X-14363428Y-23396761D01*
X-14411047Y-23349142D01*
X-14458666Y-23253904D01*
X-14458666Y-22968190D01*
X-14411047Y-22872952D01*
X-14363428Y-22825333D01*
X-14268190Y-22777714D01*
X-14125333Y-22777714D01*
X-14030095Y-22825333D01*
X-13982476Y-22872952D01*
X-13934857Y-22968190D01*
X-13934857Y-23253904D01*
X-13982476Y-23349142D01*
X-14030095Y-23396761D01*
X-14125333Y-23444380D01*
X-14268190Y-23444380D01*
X-12744380Y-22444380D02*
X-12744380Y-23253904D01*
X-12696761Y-23349142D01*
X-12649142Y-23396761D01*
X-12553904Y-23444380D01*
X-12363428Y-23444380D01*
X-12268190Y-23396761D01*
X-12220571Y-23349142D01*
X-12172952Y-23253904D01*
X-12172952Y-22444380D01*
X-11744380Y-23396761D02*
X-11601523Y-23444380D01*
X-11363428Y-23444380D01*
X-11268190Y-23396761D01*
X-11220571Y-23349142D01*
X-11172952Y-23253904D01*
X-11172952Y-23158666D01*
X-11220571Y-23063428D01*
X-11268190Y-23015809D01*
X-11363428Y-22968190D01*
X-11553904Y-22920571D01*
X-11649142Y-22872952D01*
X-11696761Y-22825333D01*
X-11744380Y-22730095D01*
X-11744380Y-22634857D01*
X-11696761Y-22539619D01*
X-11649142Y-22492000D01*
X-11553904Y-22444380D01*
X-11315809Y-22444380D01*
X-11172952Y-22492000D01*
X-10411047Y-22920571D02*
X-10268190Y-22968190D01*
X-10220571Y-23015809D01*
X-10172952Y-23111047D01*
X-10172952Y-23253904D01*
X-10220571Y-23349142D01*
X-10268190Y-23396761D01*
X-10363428Y-23444380D01*
X-10744380Y-23444380D01*
X-10744380Y-22444380D01*
X-10411047Y-22444380D01*
X-10315809Y-22492000D01*
X-10268190Y-22539619D01*
X-10220571Y-22634857D01*
X-10220571Y-22730095D01*
X-10268190Y-22825333D01*
X-10315809Y-22872952D01*
X-10411047Y-22920571D01*
X-10744380Y-22920571D01*
X-8696761Y-23825333D02*
X-8744380Y-23777714D01*
X-8839619Y-23634857D01*
X-8887238Y-23539619D01*
X-8934857Y-23396761D01*
X-8982476Y-23158666D01*
X-8982476Y-22968190D01*
X-8934857Y-22730095D01*
X-8887238Y-22587238D01*
X-8839619Y-22492000D01*
X-8744380Y-22349142D01*
X-8696761Y-22301523D01*
X-7887238Y-23396761D02*
X-7982476Y-23444380D01*
X-8172952Y-23444380D01*
X-8268190Y-23396761D01*
X-8315809Y-23349142D01*
X-8363428Y-23253904D01*
X-8363428Y-22968190D01*
X-8315809Y-22872952D01*
X-8268190Y-22825333D01*
X-8172952Y-22777714D01*
X-7982476Y-22777714D01*
X-7887238Y-22825333D01*
X-7458666Y-23444380D02*
X-7458666Y-22444380D01*
X-7030095Y-23444380D02*
X-7030095Y-22920571D01*
X-7077714Y-22825333D01*
X-7172952Y-22777714D01*
X-7315809Y-22777714D01*
X-7411047Y-22825333D01*
X-7458666Y-22872952D01*
X-6125333Y-23444380D02*
X-6125333Y-22920571D01*
X-6172952Y-22825333D01*
X-6268190Y-22777714D01*
X-6458666Y-22777714D01*
X-6553904Y-22825333D01*
X-6125333Y-23396761D02*
X-6220571Y-23444380D01*
X-6458666Y-23444380D01*
X-6553904Y-23396761D01*
X-6601523Y-23301523D01*
X-6601523Y-23206285D01*
X-6553904Y-23111047D01*
X-6458666Y-23063428D01*
X-6220571Y-23063428D01*
X-6125333Y-23015809D01*
X-5649142Y-23444380D02*
X-5649142Y-22777714D01*
X-5649142Y-22968190D02*
X-5601523Y-22872952D01*
X-5553904Y-22825333D01*
X-5458666Y-22777714D01*
X-5363428Y-22777714D01*
X-4601523Y-22777714D02*
X-4601523Y-23587238D01*
X-4649142Y-23682476D01*
X-4696761Y-23730095D01*
X-4792000Y-23777714D01*
X-4934857Y-23777714D01*
X-5030095Y-23730095D01*
X-4601523Y-23396761D02*
X-4696761Y-23444380D01*
X-4887238Y-23444380D01*
X-4982476Y-23396761D01*
X-5030095Y-23349142D01*
X-5077714Y-23253904D01*
X-5077714Y-22968190D01*
X-5030095Y-22872952D01*
X-4982476Y-22825333D01*
X-4887238Y-22777714D01*
X-4696761Y-22777714D01*
X-4601523Y-22825333D01*
X-3744380Y-23396761D02*
X-3839619Y-23444380D01*
X-4030095Y-23444380D01*
X-4125333Y-23396761D01*
X-4172952Y-23301523D01*
X-4172952Y-22920571D01*
X-4125333Y-22825333D01*
X-4030095Y-22777714D01*
X-3839619Y-22777714D01*
X-3744380Y-22825333D01*
X-3696761Y-22920571D01*
X-3696761Y-23015809D01*
X-4172952Y-23111047D01*
X-3363428Y-23825333D02*
X-3315809Y-23777714D01*
X-3220571Y-23634857D01*
X-3172952Y-23539619D01*
X-3125333Y-23396761D01*
X-3077714Y-23158666D01*
X-3077714Y-22968190D01*
X-3125333Y-22730095D01*
X-3172952Y-22587238D01*
X-3220571Y-22492000D01*
X-3315809Y-22349142D01*
X-3363428Y-22301523D01*
X-513000Y-36073000D02*
X4313000Y-36073000D01*
X-513000Y-31501000D02*
X4313000Y-31501000D01*
D11*
X60800000Y-37000000D02*
X69200000Y-37000000D01*
X65000000Y-32800000D02*
X65000000Y-41200000D01*
X69200000Y-37000000D02*
G75*
G03*
X69200000Y-37000000I-4200000J0D01*
G01*
X35800000Y-37000000D02*
X44200000Y-37000000D01*
X40000000Y-32800000D02*
X40000000Y-41200000D01*
X44200000Y-37000000D02*
G75*
G03*
X44200000Y-37000000I-4200000J0D01*
G01*
X10800000Y-37000000D02*
X19200000Y-37000000D01*
X15000000Y-32800000D02*
X15000000Y-41200000D01*
X19200000Y-37000000D02*
G75*
G03*
X19200000Y-37000000I-4200000J0D01*
G01*
X-612700Y-27992380D02*
X587300Y-27992380D01*
X-612700Y-18992380D02*
X-612700Y-27992380D01*
X587300Y-18992380D02*
X-612700Y-18992380D01*
D12*
X18400000Y-8800000D02*
G75*
G03*
X18400000Y-8800000I-3400000J0D01*
G01*
X43400000Y-8800000D02*
G75*
G03*
X43400000Y-8800000I-3400000J0D01*
G01*
X68400000Y-8800000D02*
G75*
G03*
X68400000Y-8800000I-3400000J0D01*
G01*
M02*

View File

@@ -1,26 +0,0 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Profile,NP*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%TA.AperFunction,Profile*%
%ADD10C,0.050000*%
%TD*%
G04 APERTURE END LIST*
D10*
X107034000Y-118012000D02*
X107034000Y-74012000D01*
X107034000Y-118012000D02*
X183034000Y-118012000D01*
X183034000Y-74012000D02*
X183034000Y-118012000D01*
X107034000Y-74012000D02*
X183034000Y-74012000D01*
M02*

View File

@@ -0,0 +1,26 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*
G04 #@! TF.CreationDate,2021-04-21T20:11:12+02:00*
G04 #@! TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,1.1*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Profile,NP*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-04-21 20:11:12*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 #@! TA.AperFunction,Profile*
%ADD10C,0.050000*%
G04 #@! TD*
G04 APERTURE END LIST*
D10*
X0Y-47000000D02*
X0Y0D01*
X0Y-47000000D02*
X80000000Y-47000000D01*
X80000000Y0D02*
X80000000Y-47000000D01*
X0Y0D02*
X80000000Y0D01*
M02*

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,221 +0,0 @@
%TF.GenerationSoftware,KiCad,Pcbnew,(5.1.9-0-10_14)*%
%TF.CreationDate,2021-02-18T22:12:25+01:00*%
%TF.ProjectId,ledTruck,6c656454-7275-4636-9b2e-6b696361645f,rev?*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Paste,Top*%
%TF.FilePolarity,Positive*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.1.9-0-10_14)) date 2021-02-18 22:12:25*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10R,1.800000X1.000000*%
%ADD11R,2.150000X0.400000*%
%ADD12R,1.000000X1.000000*%
%ADD13C,1.000000*%
%ADD14R,1.200000X1.200000*%
%ADD15R,0.600000X1.050000*%
%ADD16R,0.600000X0.800000*%
%ADD17R,0.800000X0.600000*%
%ADD18R,0.280000X0.850000*%
%ADD19R,0.850000X0.280000*%
%ADD20R,3.450000X3.450000*%
G04 APERTURE END LIST*
D10*
%TO.C,Y1*%
X161544000Y-83078000D03*
X161544000Y-85578000D03*
%TD*%
D11*
%TO.C,J2*%
X112126000Y-97312000D03*
X112126000Y-96662000D03*
X112126000Y-96012000D03*
X112126000Y-95362000D03*
D12*
X107816000Y-97512000D03*
D11*
X112126000Y-94712000D03*
D12*
X107816000Y-94512000D03*
%TD*%
D13*
%TO.C,BOOT0*%
X156718000Y-89194000D03*
%TD*%
%TO.C,RST1*%
X155956000Y-77470000D03*
%TD*%
D14*
%TO.C,C9*%
X126204000Y-87122000D03*
X128304000Y-87122000D03*
%TD*%
%TO.C,C7*%
X134586000Y-83566000D03*
X136686000Y-83566000D03*
%TD*%
%TO.C,C4*%
X126204000Y-83566000D03*
X128304000Y-83566000D03*
%TD*%
%TO.C,C1*%
X134586000Y-87122000D03*
X136686000Y-87122000D03*
%TD*%
D15*
%TO.C,U2*%
X135316000Y-75358000D03*
X134366000Y-75358000D03*
X133416000Y-75358000D03*
X133416000Y-78058000D03*
X135316000Y-78058000D03*
%TD*%
D16*
%TO.C,R13*%
X160844000Y-78486000D03*
X162244000Y-78486000D03*
%TD*%
%TO.C,R12*%
X160844000Y-76962000D03*
X162244000Y-76962000D03*
%TD*%
%TO.C,R11*%
X108834000Y-114012000D03*
X110234000Y-114012000D03*
%TD*%
%TO.C,R10*%
X108834000Y-115512000D03*
X110234000Y-115512000D03*
%TD*%
%TO.C,R9*%
X151446000Y-80010000D03*
X152846000Y-80010000D03*
%TD*%
D17*
%TO.C,R8*%
X163830000Y-84774000D03*
X163830000Y-83374000D03*
%TD*%
D16*
%TO.C,R7*%
X137222000Y-78232000D03*
X138622000Y-78232000D03*
%TD*%
%TO.C,R6*%
X157672000Y-109728000D03*
X156272000Y-109728000D03*
%TD*%
%TO.C,R5*%
X156272000Y-106426000D03*
X157672000Y-106426000D03*
%TD*%
%TO.C,R4*%
X132142000Y-113284000D03*
X133542000Y-113284000D03*
%TD*%
%TO.C,R3*%
X157672000Y-108204000D03*
X156272000Y-108204000D03*
%TD*%
%TO.C,R2*%
X157672000Y-104902000D03*
X156272000Y-104902000D03*
%TD*%
%TO.C,R1*%
X132128000Y-111760000D03*
X133528000Y-111760000D03*
%TD*%
D14*
%TO.C,L1*%
X128338000Y-80264000D03*
X126238000Y-80264000D03*
%TD*%
%TO.C,D2*%
X109034000Y-107462000D03*
X109034000Y-109562000D03*
%TD*%
%TO.C,D1*%
X109034000Y-102912000D03*
X109034000Y-105012000D03*
%TD*%
D16*
%TO.C,C8*%
X152846000Y-78486000D03*
X151446000Y-78486000D03*
%TD*%
%TO.C,C6*%
X152846000Y-76962000D03*
X151446000Y-76962000D03*
%TD*%
%TO.C,C5*%
X152846000Y-75464000D03*
X151446000Y-75464000D03*
%TD*%
%TO.C,C3*%
X160844000Y-80010000D03*
X162244000Y-80010000D03*
%TD*%
%TO.C,C2*%
X160844000Y-88138000D03*
X162244000Y-88138000D03*
%TD*%
D18*
%TO.C,U1*%
X152440000Y-87437000D03*
D19*
X151715000Y-83212000D03*
D18*
X155940000Y-82487000D03*
D20*
X154190000Y-84962000D03*
D19*
X156665000Y-86712000D03*
X156665000Y-86212000D03*
X156665000Y-85712000D03*
X156665000Y-85212000D03*
X156665000Y-84712000D03*
X156665000Y-84212000D03*
X156665000Y-83712000D03*
X156665000Y-83212000D03*
D18*
X155440000Y-82487000D03*
X154940000Y-82487000D03*
X154440000Y-82487000D03*
X153940000Y-82487000D03*
X153440000Y-82487000D03*
X152940000Y-82487000D03*
X152440000Y-82487000D03*
D19*
X151715000Y-83712000D03*
X151715000Y-84212000D03*
X151715000Y-84712000D03*
X151715000Y-85212000D03*
X151715000Y-85712000D03*
X151715000Y-86212000D03*
X151715000Y-86712000D03*
D18*
X152940000Y-87437000D03*
X153440000Y-87437000D03*
X153940000Y-87437000D03*
X154440000Y-87437000D03*
X154940000Y-87437000D03*
X155440000Y-87437000D03*
X155940000Y-87437000D03*
%TD*%
D17*
%TO.C,R14*%
X115062000Y-80964000D03*
X115062000Y-79564000D03*
%TD*%
D15*
%TO.C,U3*%
X128204000Y-78058000D03*
X126304000Y-78058000D03*
X126304000Y-75358000D03*
X127254000Y-75358000D03*
X128204000Y-75358000D03*
%TD*%
M02*

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,17 +1,17 @@
M48 M48
; DRILL file {KiCad (5.1.9-0-10_14)} date Thursday, February 18, 2021 at 10:12:30 PM ; DRILL file {KiCad (5.1.9-0-10_14)} date Wednesday, April 21, 2021 at 08:12:03 PM
; FORMAT={-:-/ absolute / inch / decimal} ; FORMAT={-:-/ absolute / metric / decimal}
; #@! TF.CreationDate,2021-02-18T22:12:30+01:00 ; #@! TF.CreationDate,2021-04-21T20:12:03+02:00
; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.1.9-0-10_14) ; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.1.9-0-10_14)
; #@! TF.FileFunction,NonPlated,1,2,NPTH ; #@! TF.FileFunction,NonPlated,1,2,NPTH
FMAT,2 FMAT,2
INCH METRIC
T1C0.0236 T1C0.550
% %
G90 G90
G05 G05
T1 T1
X4.3746Y-3.7013 X4.037Y-21.492
X4.3746Y-3.8587 X4.037Y-25.492
T0 T0
M30 M30

View File

@@ -1,232 +1,278 @@
M48 M48
; DRILL file {KiCad (5.1.9-0-10_14)} date Thursday, February 18, 2021 at 10:12:30 PM ; DRILL file {KiCad (5.1.9-0-10_14)} date Wednesday, April 21, 2021 at 08:12:03 PM
; FORMAT={-:-/ absolute / inch / decimal} ; FORMAT={-:-/ absolute / metric / decimal}
; #@! TF.CreationDate,2021-02-18T22:12:30+01:00 ; #@! TF.CreationDate,2021-04-21T20:12:03+02:00
; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.1.9-0-10_14) ; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.1.9-0-10_14)
; #@! TF.FileFunction,Plated,1,2,PTH ; #@! TF.FileFunction,Plated,1,2,PTH
FMAT,2 FMAT,2
INCH METRIC
T1C0.0079 T1C0.200
T2C0.0157 T2C0.406
T3C0.0276 T3C0.700
T4C0.0315 T4C0.750
T5C0.0335 T5C0.990
T6C0.0394 T6C1.000
T7C0.0402 T7C1.300
T8C0.0728
% %
G90 G90
G05 G05
T1 T1
X6.0311Y-3.3056 X48.156Y-11.45
X6.0311Y-3.345 X48.156Y-12.45
X6.0311Y-3.3843 X48.156Y-13.45
X6.0705Y-3.3056 X49.156Y-11.45
X6.0705Y-3.345 X49.156Y-12.45
X6.0705Y-3.3843 X49.156Y-13.45
X6.1098Y-3.3056 X50.156Y-11.45
X6.1098Y-3.345 X50.156Y-12.45
X6.1098Y-3.3843 X50.156Y-13.45
T2 T2
X4.46Y-4.14 X1.27Y-2.032
X4.46Y-4.37 X1.27Y-3.302
X4.5034Y-3.3666 X1.519Y-43.566
X4.52Y-2.97 X1.519Y-44.836
X4.53Y-3.77 X2.281Y-23.373
X4.59Y-3.19 X2.54Y-2.032
X4.61Y-3.94 X2.916Y-44.836
X4.6312Y-3.7288 X7.615Y-10.038
X4.64Y-3.65 X7.62Y-25.349
X4.75Y-3.6857 X7.645Y-20.574
X4.78Y-3.85 X7.645Y-30.582
X4.83Y-3.9 X8.25Y-38.486
X4.8398Y-2.9702 X9.398Y-17.15
X4.8398Y-3.2702 X10.028Y-10.038
X4.89Y-3.16 X10.541Y-20.447
X4.89Y-3.29 X11.43Y-18.288
X4.89Y-3.43 X12.06Y-27.564
X4.91Y-4.41 X12.06Y-44.836
X4.99Y-4.34 X12.681Y-16.085
X5.02Y-3.55 X12.827Y-23.241
X5.02Y-3.83 X14.981Y-20.879
X5.02Y-4.0 X16.129Y-17.399
X5.08Y-4.26 X16.129Y-19.812
X5.1487Y-3.2013 X18.796Y-19.812
X5.15Y-3.02 X18.847Y-17.399
X5.15Y-3.29 X18.918Y-2.037
X5.15Y-3.43 X19.863Y-5.486
X5.16Y-4.55 X20.066Y-9.779
X5.2Y-2.96 X20.066Y-32.766
X5.2Y-3.07 X20.95Y-44.836
X5.2188Y-3.7288 X21.209Y-19.812
X5.22Y-3.43 X21.209Y-22.987
X5.26Y-4.06 X21.285Y-17.399
X5.26Y-4.34 X22.479Y-2.286
X5.28Y-3.21 X22.479Y-39.98
X5.28Y-3.77 X22.504Y-42.418
X5.3Y-4.02 X22.809Y-14.503
X5.3Y-4.46 X22.809Y-28.677
X5.33Y-4.58 X23.368Y-4.75
X5.41Y-2.96 X23.368Y-6.35
X5.41Y-4.49 X23.597Y-11.684
X5.46Y-3.14 X23.876Y-19.812
X5.46Y-3.29 X23.876Y-22.987
X5.46Y-3.43 X23.927Y-8.738
X5.54Y-2.97 X23.927Y-17.374
X5.54Y-3.54 X23.998Y-35.692
X5.54Y-4.17 X25.146Y-21.742
X5.63Y-3.83 X25.146Y-35.052
X5.71Y-3.6 X25.395Y-2.037
X5.72Y-4.58 X25.781Y-36.957
X5.8084Y-3.9016 X26.416Y-17.399
X5.8643Y-3.6857 X26.416Y-19.812
X5.89Y-3.83 X26.416Y-29.591
X5.92Y-3.09 X27.28Y-9.957
X5.97Y-3.24 X27.366Y-12.941
X5.99Y-3.2 X27.381Y-26.873
X6.0115Y-4.0661 X28.448Y-17.399
X6.0615Y-3.1267 X28.448Y-19.812
X6.07Y-3.01 X28.702Y-28.702
X6.09Y-3.09 X28.702Y-33.782
X6.09Y-3.52 X29.464Y-5.766
X6.09Y-4.26 X29.464Y-14.478
X6.12Y-4.02 X29.464Y-25.349
X6.14Y-3.17 X29.718Y-36.957
X6.17Y-3.24 X29.723Y-26.873
X6.17Y-4.58 X30.094Y-3.434
X6.18Y-3.08 X30.475Y-44.836
X6.1885Y-3.66 X30.729Y-30.612
X6.2Y-4.07 X30.734Y-38.862
X6.21Y-4.01 X31.11Y-13.081
X6.21Y-2.94 X31.115Y-23.762
X6.23Y-3.09 X32.126Y-2.037
X6.24Y-3.47 X32.512Y-36.068
X6.26Y-3.33 X32.532Y-17.348
X6.26Y-4.36 X34.412Y-3.434
X6.2675Y-3.0174 X34.544Y-43.942
X6.27Y-2.95 X36.068Y-17.526
X6.2793Y-3.16 X36.068Y-19.939
X6.28Y-3.09 X36.068Y-22.479
X6.2934Y-3.2809 X36.271Y-13.564
X6.33Y-3.42 X36.297Y-8.839
X6.3438Y-2.96 X36.347Y-4.166
X6.37Y-3.65 X37.206Y-2.037
X6.41Y-3.9 X38.857Y-25.024
X6.44Y-3.09 X38.857Y-27.945
X6.54Y-3.06 X38.984Y-44.836
X6.56Y-3.15 X40.0Y-19.944
X6.56Y-3.47 X41.275Y-22.606
X6.62Y-4.58 X42.286Y-11.308
X6.66Y-3.69 X43.028Y-20.879
X6.66Y-3.84 X43.048Y-8.006
X6.79Y-3.9 X43.429Y-6.101
X6.84Y-3.55 X43.917Y-30.658
X6.99Y-3.77 X43.942Y-9.398
X7.12Y-3.31 X44.907Y-7.752
X7.12Y-3.44 X44.907Y-4.47
X7.12Y-4.03 X44.908Y-10.609
X7.12Y-4.19 X46.096Y-15.118
X7.12Y-4.37 X46.223Y-22.484
X7.12Y-4.58 X46.223Y-25.024
T5 X46.355Y-9.906
X4.3714Y-3.1304 X46.858Y-17.658
X4.3714Y-3.2485 X47.366Y-31.12
X4.3714Y-3.3666 X47.366Y-34.168
T6 X47.366Y-38.74
X6.9895Y-3.0713 X47.366Y-44.836
X7.088Y-3.0713 X48.255Y-36.962
T7 X48.382Y-5.085
X7.11Y-3.59 X48.509Y-3.561
X7.11Y-3.69 X48.594Y-6.858
X7.11Y-3.79 X49.708Y-17.043
X7.11Y-3.89 X49.779Y-1.783
T8 X49.784Y-6.896
X4.7257Y-3.0162 X50.043Y-34.93
X4.7257Y-3.2013 X50.109Y-4.45
X4.7257Y-3.3863 X50.186Y-8.192
X5.71Y-3.0162 X50.8Y-17.043
X5.71Y-3.2013 X50.813Y-31.14
X5.71Y-3.3863 X50.952Y-6.909
X6.6943Y-3.0162 X51.67Y-15.742
X6.6943Y-3.2013 X52.172Y-6.096
X6.6943Y-3.3863 X52.446Y-25.024
T2 X52.476Y-21.742
G00X4.3911Y-3.0005 X52.527Y-10.439
M15 X52.984Y-29.616
G01X4.3517Y-3.0005 X53.716Y-5.847
M16 X53.758Y-7.419
G05 X54.097Y-3.688
G00X4.3911Y-3.4965 X54.859Y-38.994
M15 X55.24Y-44.836
G01X4.3517Y-3.4965 X55.644Y-10.534
M16 X55.677Y-7.188
G05 X55.748Y-20.579
T3 X55.748Y-22.484
G00X4.3018Y-3.6383 X55.748Y-25.024
M15 X55.753Y-33.909
G01X4.2782Y-3.6383 X55.88Y-35.966
M16 X55.88Y-37.978
G05 X56.134Y-4.877
G00X4.3018Y-3.9217 X56.764Y-40.518
M15 X56.785Y-1.651
G01X4.2782Y-3.9217 X56.828Y-34.93
M16 X56.845Y-16.764
G05 X56.845Y-26.314
G00X4.4262Y-3.6383 X57.81Y-17.323
M15 X57.81Y-30.785
G01X4.4026Y-3.6383 X58.796Y-25.024
M16 X58.796Y-28.707
G05 X58.859Y-21.468
G00X4.4026Y-3.9217 X59.304Y-37.978
M15 X59.431Y-6.355
G01X4.4262Y-3.9217 X59.558Y-15.626
M16 X59.893Y-7.976
G05 X59.919Y-9.677
X60.376Y-2.87
X60.808Y-5.563
X61.59Y-15.626
X62.941Y-1.676
X63.241Y-44.836
X63.957Y-17.018
X65.019Y-21.468
X65.019Y-25.024
X65.019Y-28.707
X66.015Y-17.602
X67.208Y-15.85
X68.702Y-17.658
X70.206Y-18.161
X71.115Y-1.783
X71.115Y-11.308
X71.115Y-16.134
X71.115Y-21.468
X71.115Y-25.024
X71.115Y-28.707
X74.493Y-23.754
X75.56Y-11.308
X75.56Y-16.134
X75.814Y-29.85
X75.814Y-33.914
X75.814Y-38.486
X76.708Y-44.958
X76.957Y-1.783
X78.486Y-43.434
X78.486Y-44.958
X78.588Y-25.019
X78.608Y-1.783
X78.608Y-3.434
T4 T4
G00X4.6273Y-4.3469 X74.544Y-6.228
M15 X76.544Y-6.228
G01X4.6273Y-4.2761 T5
M16 X3.0Y-7.5
X3.0Y-12.0
T6
X76.586Y-18.671
X76.586Y-21.211
X76.586Y-23.751
X76.586Y-26.291
T7
X5.49Y-6.24
X5.49Y-13.25
T3
X2.187Y-19.892G85X1.587Y-19.892
G05 G05
G00X4.6903Y-4.2131 X2.187Y-27.092G85X1.587Y-27.092
M15
G01X4.7612Y-4.2131
M16
G05 G05
G00X4.8242Y-4.3469 X5.347Y-19.892G85X4.747Y-19.892
M15
G01X4.8242Y-4.2761
M16
G05 G05
G00X5.6116Y-4.3469 X4.747Y-27.092G85X5.347Y-27.092
M15
G01X5.6116Y-4.2761
M16
G05 G05
G00X5.6746Y-4.2131 T6
M15 X14.0Y-33.2G85X16.0Y-33.2
G01X5.7454Y-4.2131
M16
G05 G05
G00X5.8084Y-4.3469 X14.25Y-41.3G85X15.75Y-41.3
M15
G01X5.8084Y-4.2761
M16
G05 G05
G00X6.5958Y-4.3469 X18.55Y-37.15G85X18.55Y-35.65
M15
G01X6.5958Y-4.2761
M16
G05 G05
G00X6.6588Y-4.2131 X39.0Y-33.2G85X41.0Y-33.2
M15
G01X6.7297Y-4.2131
M16
G05 G05
G00X6.7927Y-4.3469 X39.25Y-41.3G85X40.75Y-41.3
M15 G05
G01X6.7927Y-4.2761 X43.55Y-37.15G85X43.55Y-35.65
M16 G05
X64.0Y-33.2G85X66.0Y-33.2
G05
X64.25Y-41.3G85X65.75Y-41.3
G05
X68.55Y-37.15G85X68.55Y-35.65
G05
T7
X14.4Y-4.1G85X15.6Y-4.1
G05
X14.4Y-8.8G85X15.6Y-8.8
G05
X14.4Y-13.5G85X15.6Y-13.5
G05
X39.4Y-4.1G85X40.6Y-4.1
G05
X39.4Y-8.8G85X40.6Y-8.8
G05
X39.4Y-13.5G85X40.6Y-13.5
G05
X64.4Y-4.1G85X65.6Y-4.1
G05
X64.4Y-8.8G85X65.6Y-8.8
G05
X64.4Y-13.5G85X65.6Y-13.5
G05 G05
T0 T0
M30 M30

View File

@@ -1,128 +0,0 @@
{
"Header":
{
"GenerationSoftware":
{
"Vendor": "KiCad",
"Application": "Pcbnew",
"Version": "(5.1.9-0-10_14)"
},
"CreationDate": "2021-02-18T22:12:25+01:00"
},
"GeneralSpecs":
{
"ProjectId":
{
"Name": "ledTruck",
"GUID": "6c656454-7275-4636-9b2e-6b696361645f",
"Revision": "rev?"
},
"Size":
{
"X": 76.050,
"Y": 44.050
},
"LayerNumber": 2,
"BoardThickness": 1.600
},
"DesignRules":
[
{
"Layers": "Outer",
"PadToPad": 0.200,
"PadToTrack": 0.200,
"TrackToTrack": 0.200,
"MinLineWidth": 0.250,
"TrackToRegion": 0.508,
"RegionToRegion": 0.508
}
],
"FilesAttributes":
[
{
"Path": "ledTruck-F_Cu.gbr",
"FileFunction": "Copper,L1,Top",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-B_Cu.gbr",
"FileFunction": "Copper,L2,Bot",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-F_Paste.gbr",
"FileFunction": "SolderPaste,Top",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-B_Paste.gbr",
"FileFunction": "SolderPaste,Bot",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-F_SilkS.gbr",
"FileFunction": "Legend,Top",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-B_SilkS.gbr",
"FileFunction": "Legend,Bot",
"FilePolarity": "Positive"
},
{
"Path": "ledTruck-F_Mask.gbr",
"FileFunction": "SolderMask,Top",
"FilePolarity": "Negative"
},
{
"Path": "ledTruck-B_Mask.gbr",
"FileFunction": "SolderMask,Bot",
"FilePolarity": "Negative"
},
{
"Path": "ledTruck-Edge_Cuts.gbr",
"FileFunction": "Profile",
"FilePolarity": "Positive"
}
],
"MaterialStackup":
[
{
"Type": "Legend",
"Notes": "Layer F.SilkS"
},
{
"Type": "SolderPaste",
"Notes": "Layer F.Paste"
},
{
"Type": "SolderMask",
"Notes": "Layer F.Mask"
},
{
"Type": "Copper",
"Notes": "Layer F.Cu"
},
{
"Type": "Dielectric",
"Material": "FR4",
"Notes": "Layers L1/L2"
},
{
"Type": "Copper",
"Notes": "Layer B.Cu"
},
{
"Type": "SolderMask",
"Notes": "Layer B.Mask"
},
{
"Type": "SolderPaste",
"Notes": "Layer B.Paste"
},
{
"Type": "Legend",
"Notes": "Layer B.SilkS"
}
]
}

Some files were not shown because too many files have changed in this diff Show More