simulation file + gitignore update
This commit is contained in:
parent
d424d3a7d3
commit
01d3627683
|
@ -2,6 +2,35 @@
|
|||
Manual/*
|
||||
Datenblätter/*
|
||||
|
||||
# ---> KiCad
|
||||
# For PCBs designed using KiCad: https://www.kicad.org/
|
||||
# Format documentation: https://kicad.org/help/file-formats/
|
||||
|
||||
# Temporary files
|
||||
*.000
|
||||
*.bak
|
||||
*.bck
|
||||
*.kicad_pcb-bak
|
||||
*.kicad_sch-bak
|
||||
*-backups
|
||||
*.kicad_prl
|
||||
*.sch-bak
|
||||
*~
|
||||
_autosave-*
|
||||
*.tmp
|
||||
*-save.pro
|
||||
*-save.kicad_pcb
|
||||
fp-info-cache
|
||||
|
||||
# Netlist files (exported from Eeschema)
|
||||
*.net
|
||||
|
||||
# Autorouter files (exported from Pcbnew)
|
||||
*.dsn
|
||||
*.ses
|
||||
|
||||
FT24-SLS/*.log
|
||||
|
||||
Software/.vscode/
|
||||
Software/build/
|
||||
Software/Debug
|
||||
|
@ -13,4 +42,5 @@ Software/.metadata/
|
|||
Software/openocd.cfg
|
||||
|
||||
Simulation/*
|
||||
!Simulation/SLS_Sim.asc
|
||||
!Simulation/*.asc
|
||||
|
||||
|
|
|
@ -1,83 +0,0 @@
|
|||
{
|
||||
"board": {
|
||||
"active_layer": 0,
|
||||
"active_layer_preset": "",
|
||||
"auto_track_width": true,
|
||||
"hidden_netclasses": [],
|
||||
"hidden_nets": [],
|
||||
"high_contrast_mode": 0,
|
||||
"net_color_mode": 1,
|
||||
"opacity": {
|
||||
"images": 0.6,
|
||||
"pads": 1.0,
|
||||
"tracks": 1.0,
|
||||
"vias": 1.0,
|
||||
"zones": 0.5
|
||||
},
|
||||
"selection_filter": {
|
||||
"dimensions": true,
|
||||
"footprints": true,
|
||||
"graphics": true,
|
||||
"keepouts": true,
|
||||
"lockedItems": false,
|
||||
"otherItems": true,
|
||||
"pads": true,
|
||||
"text": true,
|
||||
"tracks": true,
|
||||
"vias": true,
|
||||
"zones": true
|
||||
},
|
||||
"visible_items": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
24,
|
||||
25,
|
||||
26,
|
||||
27,
|
||||
28,
|
||||
29,
|
||||
30,
|
||||
32,
|
||||
33,
|
||||
34,
|
||||
35,
|
||||
36,
|
||||
39,
|
||||
40
|
||||
],
|
||||
"visible_layers": "ffcfeff_ffffffff",
|
||||
"zone_display_mode": 1
|
||||
},
|
||||
"git": {
|
||||
"repo_password": "",
|
||||
"repo_type": "",
|
||||
"repo_username": "",
|
||||
"ssh_key": ""
|
||||
},
|
||||
"meta": {
|
||||
"filename": "FT24-SLS.kicad_prl",
|
||||
"version": 3
|
||||
},
|
||||
"project": {
|
||||
"files": []
|
||||
}
|
||||
}
|
|
@ -8043,6 +8043,17 @@
|
|||
)
|
||||
(uuid "c6693333-4f12-47eb-9ae1-2c7c2632fa40")
|
||||
)
|
||||
(text "<- these are crap\nthe voltage output with the new circuit between V2,V1 is -2.115mV\n\na gain with 1001 could be used -> 100 Ohm resistor for AD623"
|
||||
(exclude_from_sim no)
|
||||
(at 56.515 221.615 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
)
|
||||
(uuid "e098887d-b6cb-409c-8a1a-7c08783eaa92")
|
||||
)
|
||||
(text "CAN"
|
||||
(exclude_from_sim no)
|
||||
(at 179.832 13.97 0)
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
Default True 2.0 3
|
||||
False True False
|
|
@ -1,72 +0,0 @@
|
|||
(kicad_symbol_lib (version 20211014) (generator SamacSys_ECAD_Model)
|
||||
(symbol "TLV9002IDDFR" (in_bom yes) (on_board yes)
|
||||
(property "Reference" "IC" (at 24.13 7.62 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top))
|
||||
)
|
||||
(property "Value" "TLV9002IDDFR" (at 24.13 5.08 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top))
|
||||
)
|
||||
(property "Footprint" "SOT65P280X110-8N" (at 24.13 -94.92 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top) hide)
|
||||
)
|
||||
(property "Datasheet" "https://www.ti.com/lit/gpn/TLV9002" (at 24.13 -194.92 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top) hide)
|
||||
)
|
||||
(property "ki_description" "Operational Amplifiers - Op Amps 2-Channel, 1MHz, RRIO, 1.8V to 5.5V Operational Amplifier for Cost-Optimized Systems 8-SOT-23-THIN -40 to 125" (at 24.13 -294.92 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top) hide)
|
||||
)
|
||||
(property "Height" "1.1" (at 24.13 -394.92 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top) hide)
|
||||
)
|
||||
(property "Mouser Part Number" "595-TLV9002IDDFR" (at 24.13 -494.92 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top) hide)
|
||||
)
|
||||
(property "Mouser Price/Stock" "https://www.mouser.co.uk/ProductDetail/Texas-Instruments/TLV9002IDDFR?qs=mAH9sUMRCtuVJ6NmNV%252Bgrw%3D%3D" (at 24.13 -594.92 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top) hide)
|
||||
)
|
||||
(property "Manufacturer_Name" "Texas Instruments" (at 24.13 -694.92 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top) hide)
|
||||
)
|
||||
(property "Manufacturer_Part_Number" "TLV9002IDDFR" (at 24.13 -794.92 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left top) hide)
|
||||
)
|
||||
(rectangle
|
||||
(start 5.08 2.54)
|
||||
(end 22.86 -10.16)
|
||||
(stroke (width 0.254) (type default))
|
||||
(fill (type background))
|
||||
)
|
||||
(pin passive line (at 0 0 0) (length 5.08)
|
||||
(name "OUT1" (effects (font (size 1.27 1.27))))
|
||||
(number "1" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 0 -2.54 0) (length 5.08)
|
||||
(name "IN1-" (effects (font (size 1.27 1.27))))
|
||||
(number "2" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 0 -5.08 0) (length 5.08)
|
||||
(name "IN1+" (effects (font (size 1.27 1.27))))
|
||||
(number "3" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 0 -7.62 0) (length 5.08)
|
||||
(name "V-" (effects (font (size 1.27 1.27))))
|
||||
(number "4" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 27.94 0 180) (length 5.08)
|
||||
(name "IN2+" (effects (font (size 1.27 1.27))))
|
||||
(number "5" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 27.94 -2.54 180) (length 5.08)
|
||||
(name "IN2-" (effects (font (size 1.27 1.27))))
|
||||
(number "6" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 27.94 -5.08 180) (length 5.08)
|
||||
(name "OUT2" (effects (font (size 1.27 1.27))))
|
||||
(number "7" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 27.94 -7.62 180) (length 5.08)
|
||||
(name "V+" (effects (font (size 1.27 1.27))))
|
||||
(number "8" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
)
|
||||
)
|
95565
FT24-SLS/fp-info-cache
95565
FT24-SLS/fp-info-cache
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +0,0 @@
|
|||
10-09 17:16:28 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 392:Plugin executed on: 'linux'
|
||||
10-09 17:16:28 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 393:Plugin executed with python version: '3.12.6 (main, Sep 9 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)]'
|
||||
10-09 17:16:28 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 394:KiCad build version: 8.0.5-1.fc40
|
||||
10-09 17:16:28 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 395:Plugin version: 3.0.3
|
||||
10-09 17:16:28 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 396:Frame repr: <wx._core.Frame object at 0x7f5ea35c00e0>
|
|
@ -1 +0,0 @@
|
|||
{"hostname":"eggyhitsrock-fedora","username":"chiangni"}
|
|
@ -1 +0,0 @@
|
|||
{"hostname":"eggyhitsrock-fedora","username":"chiangni"}
|
|
@ -0,0 +1,2 @@
|
|||
Version 4
|
||||
SHEET 1 880 680
|
|
@ -0,0 +1,91 @@
|
|||
Version 4
|
||||
SHEET 1 976 680
|
||||
WIRE 208 -176 80 -176
|
||||
WIRE 432 -176 288 -176
|
||||
WIRE -640 -128 -640 -176
|
||||
WIRE -528 -128 -528 -176
|
||||
WIRE -176 -80 -176 -112
|
||||
WIRE -176 -80 -272 -80
|
||||
WIRE -96 -80 -176 -80
|
||||
WIRE -272 -64 -272 -80
|
||||
WIRE -96 -64 -96 -80
|
||||
WIRE 80 -32 80 -176
|
||||
WIRE 128 -32 80 -32
|
||||
WIRE 432 -32 432 -176
|
||||
WIRE 432 -32 384 -32
|
||||
WIRE -640 16 -640 -48
|
||||
WIRE -528 16 -528 -48
|
||||
WIRE 128 32 80 32
|
||||
WIRE 480 32 480 -16
|
||||
WIRE 480 32 384 32
|
||||
WIRE -272 48 -272 16
|
||||
WIRE -272 48 -304 48
|
||||
WIRE -96 48 -96 16
|
||||
WIRE -64 48 -96 48
|
||||
WIRE -272 80 -272 48
|
||||
WIRE -96 80 -96 48
|
||||
WIRE 128 96 80 96
|
||||
WIRE 480 96 384 96
|
||||
WIRE 128 160 80 160
|
||||
WIRE 480 160 384 160
|
||||
WIRE -272 192 -272 160
|
||||
WIRE -176 192 -272 192
|
||||
WIRE -96 192 -96 160
|
||||
WIRE -96 192 -176 192
|
||||
WIRE -176 208 -176 192
|
||||
WIRE -176 336 -176 288
|
||||
FLAG -528 -176 V_ref
|
||||
FLAG -640 -176 Vcc
|
||||
IOPIN -640 -176 Out
|
||||
FLAG -640 16 0
|
||||
FLAG -528 16 0
|
||||
FLAG -176 -192 Vcc
|
||||
IOPIN -176 -192 Out
|
||||
FLAG -176 336 0
|
||||
FLAG -64 48 V+
|
||||
FLAG -304 48 V-
|
||||
FLAG 80 96 V+
|
||||
FLAG 80 32 V-
|
||||
FLAG 480 -16 Vcc
|
||||
IOPIN 480 -16 Out
|
||||
FLAG 480 160 V_ref
|
||||
FLAG 80 160 0
|
||||
FLAG 480 96 out
|
||||
SYMBOL res -192 -208 R0
|
||||
SYMATTR InstName R1
|
||||
SYMATTR Value 330
|
||||
SYMBOL res -288 -80 R0
|
||||
SYMATTR InstName R2
|
||||
SYMATTR Value 120
|
||||
SYMBOL res -112 -80 R0
|
||||
SYMATTR InstName R3
|
||||
SYMATTR Value {-X}
|
||||
SYMBOL res -288 64 R0
|
||||
SYMATTR InstName R4
|
||||
SYMATTR Value 120
|
||||
SYMBOL res -112 64 R0
|
||||
SYMATTR InstName R5
|
||||
SYMATTR Value {X}
|
||||
SYMBOL res -192 192 R0
|
||||
SYMATTR InstName R6
|
||||
SYMATTR Value 330
|
||||
SYMBOL voltage -640 -144 R0
|
||||
WINDOW 123 0 0 Left 0
|
||||
WINDOW 39 0 0 Left 0
|
||||
SYMATTR InstName V1
|
||||
SYMATTR Value 3.3
|
||||
SYMBOL voltage -528 -144 R0
|
||||
WINDOW 123 0 0 Left 0
|
||||
WINDOW 39 0 0 Left 0
|
||||
SYMATTR InstName V2
|
||||
SYMATTR Value 1.5
|
||||
SYMBOL res 304 -192 R90
|
||||
WINDOW 0 0 56 VBottom 2
|
||||
WINDOW 3 32 56 VTop 2
|
||||
SYMATTR InstName R7
|
||||
SYMATTR Value 1000
|
||||
SYMBOL OpAmps\\LT1920 256 64 R0
|
||||
SYMATTR InstName U2
|
||||
TEXT 216 280 Left 2 !*.step param X 110 130 1\n*.op
|
||||
TEXT 576 112 Left 2 !.save V(out)\n.step param X 119 121 0.1\n.measure VoutAvg AVG V(out)\n.option plotwinsize=0 numdgt=15
|
||||
TEXT 584 240 Left 2 !.tran 0 510m 500m
|
|
@ -105,7 +105,7 @@ int main(void)
|
|||
led_init(&htim2);
|
||||
ftcan_init(&hcan);
|
||||
/* USER CODE END 2 */
|
||||
|
||||
|
||||
/* Infinite loop */
|
||||
/* USER CODE BEGIN WHILE */
|
||||
while (1)
|
||||
|
@ -114,7 +114,6 @@ int main(void)
|
|||
|
||||
/* USER CODE BEGIN 3 */
|
||||
adc_loop(&hadc);
|
||||
|
||||
}
|
||||
/* USER CODE END 3 */
|
||||
}
|
||||
|
@ -206,14 +205,6 @@ static void MX_ADC_Init(void)
|
|||
{
|
||||
Error_Handler();
|
||||
}
|
||||
|
||||
/** Configure for the selected ADC regular channel to be converted.
|
||||
*/
|
||||
sConfig.Channel = ADC_CHANNEL_1;
|
||||
if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
|
||||
{
|
||||
Error_Handler();
|
||||
}
|
||||
/* USER CODE BEGIN ADC_Init 2 */
|
||||
|
||||
/* USER CODE END ADC_Init 2 */
|
||||
|
|
|
@ -99,9 +99,8 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
|
|||
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||
/**ADC GPIO Configuration
|
||||
PA0 ------> ADC_IN0
|
||||
PA1 ------> ADC_IN1
|
||||
*/
|
||||
GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
|
||||
GPIO_InitStruct.Pin = GPIO_PIN_0;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
|
||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||
|
@ -134,9 +133,8 @@ void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc)
|
|||
|
||||
/**ADC GPIO Configuration
|
||||
PA0 ------> ADC_IN0
|
||||
PA1 ------> ADC_IN1
|
||||
*/
|
||||
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_0|GPIO_PIN_1);
|
||||
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_0);
|
||||
|
||||
/* ADC1 interrupt DeInit */
|
||||
HAL_NVIC_DisableIRQ(ADC1_IRQn);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
##########################################################################################################################
|
||||
# File automatically-generated by tool: [projectgenerator] version: [4.3.0-B58] date: [Sat Nov 09 19:46:36 CET 2024]
|
||||
# File automatically-generated by tool: [projectgenerator] version: [4.3.0-B58] date: [Sun Nov 10 15:38:57 CET 2024]
|
||||
##########################################################################################################################
|
||||
|
||||
# ------------------------------------------------
|
||||
|
|
|
@ -27,18 +27,17 @@ Mcu.Name=STM32F042K(4-6)Tx
|
|||
Mcu.Package=LQFP32
|
||||
Mcu.Pin0=PF0-OSC_IN
|
||||
Mcu.Pin1=PF1-OSC_OUT
|
||||
Mcu.Pin10=PB3
|
||||
Mcu.Pin11=VP_SYS_VS_Systick
|
||||
Mcu.Pin12=VP_TIM2_VS_ClockSourceINT
|
||||
Mcu.Pin10=VP_SYS_VS_Systick
|
||||
Mcu.Pin11=VP_TIM2_VS_ClockSourceINT
|
||||
Mcu.Pin2=PA0
|
||||
Mcu.Pin3=PA1
|
||||
Mcu.Pin4=PA2
|
||||
Mcu.Pin5=PA5
|
||||
Mcu.Pin6=PA11
|
||||
Mcu.Pin7=PA12
|
||||
Mcu.Pin8=PA13
|
||||
Mcu.Pin9=PA14
|
||||
Mcu.PinsNb=13
|
||||
Mcu.Pin3=PA2
|
||||
Mcu.Pin4=PA5
|
||||
Mcu.Pin5=PA11
|
||||
Mcu.Pin6=PA12
|
||||
Mcu.Pin7=PA13
|
||||
Mcu.Pin8=PA14
|
||||
Mcu.Pin9=PB3
|
||||
Mcu.PinsNb=12
|
||||
Mcu.ThirdPartyNb=0
|
||||
Mcu.UserConstants=
|
||||
Mcu.UserName=STM32F042K6Tx
|
||||
|
@ -53,8 +52,6 @@ NVIC.SVC_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:true
|
|||
NVIC.SysTick_IRQn=true\:3\:0\:false\:false\:true\:false\:true\:false
|
||||
PA0.Mode=IN0
|
||||
PA0.Signal=ADC_IN0
|
||||
PA1.Mode=IN1
|
||||
PA1.Signal=ADC_IN1
|
||||
PA11.Mode=CAN_Activate
|
||||
PA11.Signal=CAN_RX
|
||||
PA12.Mode=CAN_Activate
|
||||
|
|
Loading…
Reference in New Issue