1
0
forked from me/IronOS
Commit Graph

102 Commits

Author SHA1 Message Date
Ben V. Brown
6389c00e1d Fix simple mode crash / lockup from buffer overflow 2019-01-01 17:49:11 +11:00
Ben V. Brown
f023761545 Rebalance ram 2019-01-01 15:15:52 +11:00
Ben V. Brown
873eb2a1e9 Move to latest HAL release trying to get I2C DMA to be more reliable, and known good point.
Cleans up some redundant calls as well to make some flash room.
2018-12-16 18:13:59 +11:00
Ben V. Brown
b744f51e2d Fix normal solder screen issues, disable I2C DMA pending some testing 2018-12-16 16:16:31 +11:00
Ben V. Brown
8320252eab Merge branch 'master' of https://github.com/Ralim/ts100 2018-11-20 20:28:32 +11:00
Ben V. Brown
fff0ed7581 add vSense lockout 2018-11-20 20:28:30 +11:00
David Hilton
0fb402a857 adjust watts for PWM duty cycle 2018-11-14 08:40:05 -07:00
Ben V. Brown
6a1572de81 Slow PWM drive to reduce some handle heating, Improve PWM power for ts80, add ts80 pulse for keep awake 2018-11-11 20:43:35 +11:00
Ben V. Brown
5b882c819c Merge branch 'master' of https://github.com/Ralim/ts100 2018-11-11 09:28:13 +11:00
Ben V. Brown
d5beab76bb TS80 Tuning fairly well now 2018-11-11 09:26:30 +11:00
David P Hilton
ad4569fc4b improve comments in PID tuning 2018-11-09 07:53:06 -07:00
Ben V. Brown
f4e2de4608 Fix not resetting average calculation
Should help with #366
2018-11-09 14:13:28 +11:00
Ben V. Brown
c83174862a Tweak pwm timings, improve Voltage init for more stable startup 2018-11-09 13:14:20 +11:00
David P Hilton
ddf3e4f7d3 fix overflow in tempError 2018-10-29 23:05:12 -06:00
David P Hilton
766073e208 fix negative rawC 2018-10-29 23:04:59 -06:00
David P Hilton
73f07489fe PID works with max PWM of 255 2018-10-29 08:19:44 -06:00
David P Hilton
43d11fa8f8 Merge remote-tracking branch 'upstream/master' into watts 2018-10-29 07:34:22 -06:00
Ben V. Brown
02bdf450b2 Increase PWM output range to 0-255
For #358
Also fixes #394
2018-10-29 20:55:40 +11:00
David P Hilton
6a3ca96815 moved debugNumber into OLED class 2018-10-28 21:51:49 -06:00
David P Hilton
76b460cd77 PID rework - use watts 2018-10-28 21:47:58 -06:00
David Hilton
81e87c86d0 remove hardcoded MODEL_TS80 (#393)
* remove hardcoded MODEL_TS80

* #define MODEL_TS100 in sw4stm32/atollic config

* whitespace fix

* use sum of 'defined' instead of logic

* only print handle temp, not PCBVersion

* whitespace fix
2018-10-29 08:48:04 +11:00
Ben V. Brown
d442a1d185 Fix: Ts80 Divisor links 2018-10-18 14:20:27 +11:00
Ben V. Brown
60a951f56f Fix temperature getting bumped off screen
This fixes the temp gettting bumped because I forgot to reset OLED::cursor_y after writing.

Fixes #376 (hopefully)
2018-10-17 08:22:04 +11:00
Ben V. Brown
b2e52bcb15 Fix build on linux 2018-10-11 15:18:27 +11:00
Ben V. Brown
be414d36e3 Fix QC3 for Ts80 vDiv 2018-10-11 14:59:23 +11:00
Ben V. Brown
7d0af3fc4c TS80 Support Stage 1 (#365)
* Estimated pinout into the ioc file

* Fix Atollic paths to be somewhat more portable

* Add make command

* Add rough calls to ADC2 [untested]

* Using dual ADC injected modes

* Start both ADCs

* Move some IRQ's to ram exec

* Stabilize PID a bit more

* Add in ideas for tip type selection

* Update peripheral setup to support TS80

* Add tiptype formula / settings struct

* Add function ids to the settings menu

* Rough tip selection

* Rough out new cal routine for simple tips

* Hardware test is fairly close for first pass

* Add Simple calibration case [UNTESTED]

This adds the calibration option that uses boiling water to the calibration menu.

This is untested, and may need gain adjustments before use.

* [Feat] Add some QC testing code

* Typo fix

* Add double button press handler for different rising times

* Add hook for jump to sleep mode

* QC for 9V Works!

* Rough out QC handler, trim out old menu help text thats useless

* QC 9V working... Static all the things (Low on ROM)!

* Static all I2C to save space

* Move QC negotiation into background task so it doesnt block the UI

* Input V display works, tune ADC

* QC 3 steps working

* Start tip R measurements

* Impliment tip resistance

* Fix up the accel position, link in auto QC stages

* Fix tip title

* Tip type settings, Static OLED

* Revert I2C callbacks

* Misc Cleanup

* Better Gain value, need to investiate offset

* Add model warning

* Add TS80 Boot Logo (#367)

* Add TS80 Boot Logo

* Refined

* Moved down by 1px

* Add in power selection 18/24W

* Clean up accelerometer, fix TS100 builds, Fix voltage div cal
2018-10-11 14:44:56 +11:00
Ben V. Brown
056353ed6a Adding adc2 & new temperature calibration proceedures. [WiP] (#361)
* Add rough calls to ADC2 [untested]

* Using dual ADC injected modes

* Start both ADCs

* Move some IRQ's to ram exec

* Stabilize PID a bit more

* Add in ideas for tip type selection

* Add tiptype formula / settings struct

* Add function ids to the settings menu

* Rough tip selection

* Rough out new cal routine for simple tips

* Hardware test is fairly close for first pass

* Add Simple calibration case [UNTESTED]

This adds the calibration option that uses boiling water to the calibration menu.

This is untested, and may need gain adjustments before use.

* Simple Cal Roughly working

* Rough out advanced cal
2018-09-17 22:18:39 +10:00
Ben V. Brown
f716578138 Stop adjust buttons auto-rotating
Closes #270
2018-07-29 11:57:24 +10:00
Yuri Schaeffer
9127802acc Display seconds until sleep in soldering mode. (#311)
Adds a number indicator to the detailed soldering mode that shows the pending time until the iron goes to sleep.
2018-07-29 11:35:25 +10:00
Ben V. Brown
3d1d47acee Long overdue additions
Closes #329
Closes #324
Closes #331
Should Close #321
Should Close #301
2018-07-27 19:21:12 +10:00
Alessandro Gatti
030a714ff2 Initialise variables before usage / Cleanup (#315) 2018-06-17 09:41:53 +10:00
Alessandro Gatti
50fe2bcff1 Shrink GUI code and simplify LCD rotation. (#300)
* Inline more methods in FRToSI2C.

* Shrink down GUI code.

* Simplify LCD rotation handling.

* Extract version headers.
2018-05-26 14:21:42 +10:00
Ben V. Brown
48cc1ff8cc Add auto-repeat to temp adjust
Fixes #285
2018-05-11 13:06:10 +10:00
Ben V. Brown
c9a56392a0 Bring back cooling blink
Fixes #289
2018-05-11 13:01:21 +10:00
Ben V. Brown
b6b207568c Delay I2C DMA thread on oled slightly
The flickering on the LCD screen was caused by the OLED DMA taking slightly longer than the delays, so the tail end would flicker if the buffer was cleared before it finished writing.

In future may want to double buffer the LCD.

Fixes #290
2018-05-11 12:54:55 +10:00
Alessandro Gatti
215fe8e9e8 Reduce code size for accelerometer support (#288)
* Reduce the LIS2DH12 driver's code size.
* Reduce the MMA8652FC driver's code size.
* Make orientation detection smaller.


* Inlined C++ class constructor.
* De-unroll I2C register writes.
* Removed unused setSensitivity method.
2018-05-10 10:02:29 +10:00
Ben V. Brown
4718efe79b 2.04 bugfixes
Should help with UI lockups
2018-05-07 21:24:29 +10:00
Ben V. Brown
771f0a1b9e Cleanup LCD on/off commands into buffer 2018-05-06 20:06:16 +10:00
Ben V. Brown
1fef2fb53a Move OLED LCD update to be DMA'ed
Start Cleaning up I2C HAL
2018-05-06 18:56:38 +10:00
Ben V. Brown
bf1fa74d72 Update debug info
Change pin configs
Clean up some code
2018-05-06 18:01:34 +10:00
Ben V. Brown
dd2fdbcb8e Fix button lockout
Fixes #278
2018-04-28 11:46:07 +10:00
Ben V. Brown
42db57da25 Update power indicator
Fixes and closes #211
Final 2.04 release coming up :)
2018-04-27 15:25:58 +10:00
Ben V. Brown
b6351f9696 Add showing the tip temp on idle (#226)
This shows the tip temp on the simple home screen if the temp is > 50C.

This removes the tip temp warning for all users, as now everyone can see the tip temp.

#187
2018-04-27 14:46:59 +10:00
Ben V. Brown
311d5182eb Cleanup formatting 2018-04-14 17:58:28 +10:00
Ben V. Brown
576575d7ba More FRToS I2C cleanup 2018-04-14 16:33:16 +10:00
Ben V. Brown
7c1937b412 Adding FreeRToS constructs to I2C driver 2018-04-14 15:05:46 +10:00
Ben V. Brown
f599624b6f I2C into nicer wrapper for FreeRToS 2018-04-14 13:37:42 +10:00
Ben V. Brown
cc09157106 Fix UK -> UA for Ukrainian
#261
2018-04-13 17:27:22 +10:00
Ben V. Brown
586267f586 PID retune, ADC Blocks PID properly 2018-04-13 16:19:05 +10:00
Ben V. Brown
f2f20111b6 Force settings reset for 2.04
Also updates FI to #267 but wont be built in releases until string lengths fit.
2018-04-13 10:11:50 +10:00