gab-k
0380b398fc
modify gitignore
2024-11-25 22:41:54 +01:00
gab-k
201d521be8
add auto generate .svg python scripts
2024-11-25 20:52:21 +01:00
gab-k
dc53d98fda
Moving some components on the schematic
2024-11-25 20:46:09 +01:00
gab-k
a9c3c60b81
Changed 'LCSC Part Number' Field to 'LCSC Part #'
2024-11-24 23:23:50 +01:00
gab-k
78187ec19f
Add LCSC Part numbers
2024-11-24 22:59:27 +01:00
gab-k
9240e5b1a7
New 4-Layer Board with USB; Update gitignore; Change Speed Table Comment;
2024-11-24 19:45:49 +01:00
gab-k
d417235df5
remove measure_base_pwm; add comments
2024-01-09 21:30:32 +01:00
gab-k
c1564feb4b
Mostly renaming, remove control_parameter_t.output, add control_parameter_t.startup.level, ...
2024-01-06 22:56:31 +01:00
gab-k
f3ffb73b62
Copy code from flash to ram in order to not use XIP allowing writing to flash memory while both cores are running;
...
Motor control now operates with two states/modes;
Extended Default CV Range to 1024 - refers to NMRA/RCN standards
2024-01-05 00:37:21 +01:00
gab-k
577bc5dd5c
Merge branch 'main' into dev
2024-01-03 12:05:45 +01:00
gab-k
9b8906f476
Replace '≙' with '='
2024-01-03 09:44:56 +01:00
gab-k
baf9ea6081
Update .gitignore
2024-01-02 22:15:45 +01:00
gab-k
9ee13b67e7
Merge local branch 'changes' into main.
2024-01-01 22:01:17 +01:00
gab-k
df9b0ba633
Reformatting and renaming some functions; replaced get_direction() with get_direction_of_speed_step() in order to simplify handling of direction; additional explanation comment in CV.h; add doxygen config file;
2024-01-01 19:21:47 +01:00
gab-k
d7f4621b96
Completly remove .idea files and update .gitignore accordingly
2023-12-30 17:48:24 +01:00
gab-k
3364793a6f
Completly remove .idea files and update .gitignore accordingly
2023-12-30 17:46:43 +01:00
gab-k
6df051019d
Modified .gitignore
2023-12-30 16:09:45 +01:00
gab-k
9cf7301af7
Update .gitignore
2023-12-30 16:01:01 +01:00
gab-k
5ec8f953b4
Merge branch 'main' into dev
2023-12-30 15:37:54 +01:00
gab-k
52ec79105d
Revert changes to LOG macro
2023-12-30 15:37:38 +01:00
gab-k
4b125c3488
Merge branch 'main' into dev
2023-12-30 15:25:10 +01:00
gab-k
12e54994a8
PCB routing
2023-12-30 15:23:39 +01:00
gab-k
c8b75ee71f
Fix missing Bitmask in F0-F4 function evaluation, Handle NULL-pointer in get_direction(), CMakelists.txt disable optimizing, Upload CLion config
2023-12-26 18:59:58 +01:00
gab-k
721e5d5a65
PCB Routing
2023-12-20 18:35:24 +01:00
gab-k
f28e594051
USB PCB routing, minor changes to schematic
2023-12-14 21:41:58 +01:00
gab-k
4c1be24278
added pcb constraints, changed designators, updated footprints and 3d-models, created board outline
2023-12-05 23:27:29 +01:00
gab-k
1ce384943e
Changes to schematic, Created PCB
2023-12-04 21:00:05 +01:00
gab-k
07b792ac13
created USB and non-USB folders; added USB schematic
2023-12-04 19:54:08 +01:00
gab-k
f0a23c208e
corrected .gitignore
2023-12-04 19:18:19 +01:00
gab-k
570401489b
fixed wrong parameter in measure() function call
2023-10-15 14:46:59 +02:00
1nct
8f1f5cf915
- added/changed files for documentation
...
- added comment regarding CV array addresses
2022-08-06 13:54:26 +02:00
1nct
15a46b9dee
- added files for documentation
...
- fixed undesired behaviour for direction change while decelerating
- adjusted default value for CV_54 & CV_55
2022-08-06 11:01:29 +02:00
1nct
0219963dd7
- Minor changes to variable names, comments & formatting
...
- Removed obsolete parameter previously used in program_mode
- Added correction constant regarding base pwm measurement
- Revised GPIO definitions (shared.h)
2022-08-03 19:19:14 +02:00
1nct
bae6fff659
- Added GPIO svg
2022-08-02 20:51:29 +02:00
1nct
1cb5ddbae0
- Added long address svg
...
- Direction is now preserved on packet timeout
- Address > 127 can no longer be written to flash as it is not valid
2022-08-02 15:02:45 +02:00
1nct
64561d622b
- Updated svg files (transparent bg)
2022-08-02 00:24:58 +02:00
1nct
c8eece795f
- Added and updated svg files used in docs
...
- minor change in speed_table calculation
2022-08-01 21:28:06 +02:00
1nct
fd017ea685
- added shared.c file containing functions that can be accessed from both cores
...
- revised CV programming especially writing
- Core 1 is only started when valid package with correct address is received
- Extended addresses are now correctly verified and implemented
- Base PWM measurement is now done on core0 and checked for automatically in cv_setup_check()
- Moved Motor PWM, GPIO, ADC to core0
- Implemented inverted direction mode (CV_29) according to DCC-Standards
- Limited feed-forward parameters y_2 to max_output/y_1
- k_p gain slopes are now calculated on initialization
- k_p gain parameters are also in pid parameter struct now
- Revised init_pid()
- Implemented Packet timeout check (CV_11)
- 16Bit and 32Bit CVs now always have the highest bytes as the lowest array index to accommodate get_XXbit_CV() functions
2022-08-01 17:20:05 +02:00
1nct
f09c4ff136
- Reduced amount of global variables. Many variables are now initialized in main() and core1_entry() respectively and then passed as pointer.
...
- Updates in speed steps are passed via multicore fifo.
- Pointer to direction variable is also passed from core1 to core0 via multicore fifo
- PID parameter struct definition moved to core1.h
- Implemented variable Proportional gain function
- Implemented function to determine base pwm level
- Minor changes regarding variable names
- Added more comments to roughly describe functionality of functions
2022-07-28 14:33:48 +02:00
1nct
15f67f6c8c
Change to Pin assignements in shared.h
2022-07-18 13:33:42 +02:00
unknown
9e68c5b3ec
AUX GPIO are now 24-27, ADC GPIO are now 28 and 29 DCC_IN is now 21 - Board Revision is now "0.3" - Omitted Rev. in Kicad filenames
2022-05-02 20:39:42 +02:00
1nct
ad570fba35
- remove m_pwm_offset_adjustment;
...
- offset now adjusted in pid_control loop;
- pid sampling time depends on speed step;
- speed table implemented & and init function;
2022-03-12 10:23:51 +01:00
1nct
330d42a17e
- changes to ADC offset adjustment; - changes to output set function; - cv_setup_check() now waits for core1 to launch also after programming
2022-03-06 01:03:17 +01:00
1nct
65250846f9
- improved PIN_MASK definitions; -implemented adc offset adjustment; - implemented startup checks for: factory flash setting, adc offset adjustment, motor offset adjustment; - implemented adc_offset CVs; - implemented CV_65 as indication for flash factory condition; -fixed core0.h
2022-03-05 14:46:48 +01:00
1nct
a6fa9ef249
-updated readme, -modified F0-F31 handling, - implemented pwm for F0-F31
2022-03-05 01:41:40 +01:00
1nct
4f5283521d
readme update & docs/png update (PCB Front png)
2022-03-02 09:12:17 +01:00
1nct
47d1543109
-updated docs/png
2022-03-02 08:53:32 +01:00
1nct
efa3622e80
-updated docs/png -slight change to f.silkscreen
2022-03-02 08:49:10 +01:00
1nct
9f9b7f74d5
updated svg
2022-03-01 22:02:48 +01:00
1nct
3a8e075f97
small changes to schematic and update to docs/svg
2022-03-01 18:27:33 +01:00
1nct
5211e3f40f
small changes to B.Silkscreen and B.Fab
2022-03-01 10:03:46 +01:00
1nct
a31b3061fc
Finished Board
2022-03-01 00:19:48 +01:00
1nct
2cad01370c
- implemented linear approximation for pwm duty cycle offset (feed forward)
...
- changed pid params and variables in measure() from float to integers
- implemented Motor PWM Frequency CV
- improved acknowledge() function ( 3ms forward / 3ms reverse )
- moved automatic offset setup to speed step evaluation
- removed zener diode correction
- some minor changes regarding naming of constants
2022-02-23 02:15:12 +01:00
1nct
cdb68b84da
added startup offset to establish a baseline duty cycle at which the motor starts to spin
2022-02-20 11:32:03 +01:00
1nct
1334f9c540
-Added Multiplier to lengthen XOSC startup delay
2022-02-17 00:28:44 +01:00
1nct
4d073dd7f7
- Changes to sorting in measure() function
...
- Changes to Zener Voltage Correction / measure now returns value in volts
- Changes to Motor control
- Resistor values changed
- Created BOM
2022-02-16 10:45:30 +01:00
1nct
57af1b67a4
removed 47k resistor
2022-02-07 23:41:35 +01:00
GabrielKoppenstein
c6790c6653
Slight changes to schematic & progress on PCB design
2022-02-01 02:00:59 +01:00
GabrielKoppenstein
9d53676da3
Deleted unnecessary Files (KiCad)
2022-01-31 12:19:19 +01:00
GabrielKoppenstein
ce0b3b4d18
-changes to gitignore regarding KiCad files
...
-changes to svg Files & Schematic ( Missing Net (GPIO) @ Input Stage)
2022-01-31 12:12:02 +01:00
GabrielKoppenstein
dbe7cf42d1
PCB & svg
2022-01-31 01:42:13 +01:00
GabrielKoppenstein
63fdbed912
PCB and Schematic
2022-01-30 01:37:36 +01:00
GabrielKoppenstein
4fd00bf930
git commit -a
2022-01-29 12:12:46 +01:00
GabrielKoppenstein
08459e2ea8
Changed directories
2022-01-29 11:52:00 +01:00
1nct
69f5b63d53
Merge remote-tracking branch 'origin/main'
2022-01-27 01:09:27 +01:00
1nct
594f693b9f
- Correction for Zener Diode Voltage
...
- Changes to Header Files
2022-01-27 01:09:06 +01:00
1nct
ebdc57e90a
- divided decoder.c in core0.c & core1.c
...
- improvements on set_outputs()
2022-01-09 11:30:32 +01:00
GabrielKoppenstein
f81cf7fb0b
- renamed multicore.c to decoder.c and header files respectively
...
- several changes to pid_control and speed_helper
- measurements are now being "filtered" (x smallest and y biggest values will be discarded to counteract noisy measurements)
- irq priority for core1 adjusted (pid_control irq now has highest priority)
2022-01-06 20:34:44 +01:00
GabrielKoppenstein
6070af4b10
Deprecated files, not needed anymore
2022-01-04 21:47:38 +01:00
GabrielKoppenstein
54e4c3661d
mainly changes in ACK, CV read/write, they should be reliable now (Core1 shutdown during read & write Acknowledge due to conflict of PWM functions)
2022-01-04 21:35:27 +01:00
GabrielKoppenstein
a642642285
Merge remote-tracking branch 'origin/main'
2022-01-03 02:33:59 +01:00
GabrielKoppenstein
81c99ce227
fixed acknowledge bit/byte read routine, many small fixes and improvements
2022-01-03 02:33:35 +01:00
GabrielKoppenstein
66f4eea593
.
2021-10-09 23:18:30 +02:00
GabrielKoppenstein
af105ebc45
changed init_speed_helper function & implemented a function to calculate end_v_emf_target
2021-09-30 19:10:46 +02:00
GabrielKoppenstein
d6ecb8e2b2
implemented repeating timers for pid_control and speed_helper + some minor changes.
2021-09-30 01:36:53 +02:00
GabrielKoppenstein
5a045b5fcf
Implemented Basic Programming features, changed speed control (speed_helper function with timed interrupt)
2021-09-28 00:06:31 +02:00
GabrielKoppenstein
df9a1848e4
Updated CV_ARRAY, added save to Flash function, changed various small things
2021-09-24 12:56:28 +02:00
GabrielKoppenstein
072f380b1d
Removede FIFO Irq, Addded function for measuring and controlling motor speed
2021-09-22 17:04:16 +02:00
GabrielKoppenstein
fc639b765e
Removede FIFO Irq, Addded function for measuring and controlling motor speed
2021-09-19 10:17:45 +02:00
GabrielKoppenstein
1994f194ae
Not many changes, mainly backup...
2021-09-16 00:02:39 +02:00
GabrielKoppenstein
705ddcfde7
PWM-Period adjustable, Vmin Vmax implemented, fixed alarm_callback, fixed FIFO IRQ
2021-09-03 23:12:18 +02:00
GabrielKoppenstein
0bb1ce71f9
Multicore IRQ + Timer for speed control
2021-09-03 00:10:32 +02:00
GabrielKoppenstein
0860162c4f
Motor-PWM, code formatting
2021-09-01 00:24:50 +02:00
GabrielKoppenstein
2d50676a5e
Idle Package, Broadcast Package, small improvements
2021-08-30 00:31:01 +02:00
GabrielKoppenstein
710692f40d
unnecessary functions removed & improved names
2021-08-28 23:17:20 +02:00
GabrielKoppenstein
dfbf100be2
functions supported
2021-08-28 15:04:08 +02:00
GabrielKoppenstein
e3111cfe73
Function Matrix & Output Set function
2021-08-27 20:12:45 +02:00
GabrielKoppenstein
47101afbf8
function evaluation & CV & ...
2021-08-27 18:00:16 +02:00
GabrielKoppenstein
7e487f38cf
error detection + address & command evaluation
2021-08-25 17:28:37 +02:00