T962A Controller with 5" Touch TFT (using *STM32*)

T962A Controller Drop-In (using *STM32H7*)

This is a drop-in replacement controller board for the T962A reflow oven, using the STM32H7

Similar projects worth following
STM32H7 CPU @400Mhz, 2MB on-chip flash

5.0" 800x480 Capactive-touch TFT display
(optional 7.0" 800x480 Capactivie-touch TFT)

64MB external SDRAM (LCD frame buffers, etc)

4 Max31855 on-board TC Sensors (K-type)

MicroSD socket for FatFS MicroSD (storing images, profiles, etc)

built-in CPU temp for CPU fan control

PWM control of CPU fan (6Khz PWm)

120VAC Phase-cut control of COOLING FAN for true speed control
(via 8-bit cpu DAC and FL5160 AC Phase controller)

PWM control of heater/SSR (10Hz PWM)

USB & RS232 on-board interfaces

5v & 3.3v switching power supplies

Unused STM32 I/O pins brought out to debug pads

** board is fully grounded and can be screwed/grounded directly to oven case **

** AC is fused on board for short protection, etc **

** USB & RS232 Not yet coded up in software **


Just about complete with a first version of this project fully working, should have source code and a compiled binary up sometime this week... doing some code cleanup and gui improvements..

There of course is still much improvement to be done to the GUI, etc, but thankfully that can be an ever improving concept, as the ST 'ewWin' library allows you to design almost endless graphics ideas, so new ideas and things can always be added/changed!


Steps for programming the controller flash

Adobe Portable Document Format - 2.51 MB - 06/18/2019 at 22:12



Recommened steps for assembling components onto the PCB.

Adobe Portable Document Format - 4.27 MB - 06/18/2019 at 22:11



Eagle version 7.7.0 schematic file (NOTE: You can also get these files in the github repo link on this page)

sch - 2.03 MB - 06/09/2019 at 14:59



Eagle version 7.7.0 board file (NOTE: You can also get these files in the github repo link on this page)

brd - 682.94 kB - 06/09/2019 at 14:58



schematic in jpg format (NOTE: You can also get these files in the github repo link on this page)

JPEG Image - 4.37 MB - 06/09/2019 at 14:58


View all 9 files

  • 06/21/2019

    PhillyFlyers3 days ago 0 comments

    Finally got the 7.0" TFT working, wow does it look awesome, but it's big!  There was a discrepancy between the TFT datasheet and STMicro's datasheet, still not sure whom is right.. but whatever... it works..

    Since the 7.0" looks so good, and works the same, I decided to see how to best make the board easy to switch between one or the other, so I had to slide the connectors around a tiny bit... plus since I was making a change I added a socket for 'ML2032' (rechargable CR2032 battery), and changed out the RTC clock to a true low-power crystal like the STM32 eval boards use.

    This allows the board to have true battery backup for the Running Clock, so the thing can actually have a true time clock/calendar that doesn't lose it's settings :)

    Just a nice extra I wanted to make work.

    I'm cleaning up some more bugs and edge-cases that I identified, so will put up an initial software version prob. next week now, as I want to test it out some more, and possibly get that board revision back next week to test out..

  • 06/16/2019

    PhillyFlyers06/17/2019 at 00:54 0 comments

    I should be posting an initial version 1.0 of the code this week, as well as production hex/binaries for easy flashing.  The code is pretty good now, will have plenty to improve/work on as this moves forward, but it's at a nice spot now.

    I will work on updating the build instructions this week, to include pics/mods to the oven case, as well as installing the LCD itself.

    Also will put up a 'flashing instruction' doc, step by step on how to flash the board with the FTDI cable, using a production .bin/.hex file...

    Should have some goodies posted up this week..

    The 7.0" screen looks SO good on this oven, only bad part is the one I received may be bad, as I get ZERO picture on it, the lcd backlight works fine.  So I have to see if Newhaven can get me another, or if there is something else I'm missing..

    But wow does it make a much better look than the 5.0" as to how it fits...

  • 06/09/2019

    PhillyFlyers06/09/2019 at 15:13 0 comments

    Finished and published initial version of 2 'building instructions' for the procedure I recommend for assembling the board.  You certainly don't have to follow this approach, but it's how I've been building mine, and is the safest way to prevent you from blowing up the expensive processor.

    Also, I made a minor update to the PCB, now labelled version 3.1C (previous version was 3.0C).

    It's just a 1-wire addition for adding a second pin to receive the RTC clock signal.  I wanted to have a separate timer fed by the RTC clock so I could have a good 'seconds' counter and not have to keep resetting the real RTC clock.  AS I would like to at some point have a battery-backed-up RTC clock circuit so that the oven can retain a real time clock for however long the standard CR2022 or whatever battery can last!

    But currently there is no battery backup, so for now it will still lose real clock settings once you turn off power.

    ** Note: ** you do NOT have to do this mod if you already built this PCB, and don't feel like doing it.  I will provide a compile switch as well as two production '.hex' files:

    1) WITH the second RTC clock enabled (if you did the mod or built the latest 3.1 PCB)

    2) WITHOUT the second RTC clock

    I should have reflow running soon, I am working on this particular GUI's now and working the the graph display for it all..

  • 06/05/2019

    PhillyFlyers06/05/2019 at 13:26 0 comments

    Still making good progress on the GUIs, getting much closer now..

    I do have plans to write up some documents to post on here, to help with:

    1) Building instructions (some general instructions on best approaching to assembly the PCB)

    2) Programming the board through the UART with STM USB Flasher & FTDI cable

    3) How to add the 7.0" TFT instead of default 5.0" TFT

  • 05/29/2019

    PhillyFlyers05/29/2019 at 09:21 0 comments

    FYI, it is MUCH MUCH nicer when using the NON-BRACKETED LCD screen, you can just use super-sticky adhesive tape on the back of the screen, to stick it right to the oven front panel.

    I updated the pic in the project with how it looks, only a small bit of the lcd ribbon cable sticks out through the slot with it mounted in this fashion.

    Now the only bad part is my oven has 4 ugly drilled holes from my mounting experiments, LOL.. oh well, I'll fill them in with some gray caulk to try and make it not so ugly.

    i.e. definitely get this version of the TFT, ie without the mounting bracket:

    (it's also in the BOM)

    *** Also ****

    It looks like it would be fairly easy to drop in the 7.0" TFT versus the 5.0", same resolution 800x480, but gives you a bit larger display..

    I may indeed grab one of these and try it out, would require a simple change out of the two resistors that setup the voltage for the LCD display driver, as the 5.0" requires approx. 19.0VDC for the backlight, whereas the 7.0" only takes 9.6V..

    I'll give it a try after I get an initial version of code working for this project

  • 05/28/2019

    PhillyFlyers05/28/2019 at 09:28 0 comments

    I finished up the BOM and uploaded it here as well as the github repo.

    *FYI*:  For those wanting to build this, I put TWO variants of the 5.0" TFT in the BOM, in my attached pics I used the 5.0"  version that has 'mounting tabs' as you can see in the pic.  I kind of made a mess of my T962A cover as you can see in the pictures, moving the mounting holes around..

    I DO think it will look cleaner and simpler if you buy the 5.0" WITHOUT the mounting tabs, ie just buy the $61.50 version, and all you need to do is just dremel the 'slot' you see in my one picture... that's for the ribbon cable assembly to pass through to the board.

    This way you can just mount the flat TFT screen to the oven cover with sticky tape or whatever, no need to drill screw holes.

    I'm probably going to do that myself, and remove the screen from the mounting bracket and just stick it straight to the oven cover, also it won't be sticking out as much :)

  • 05/26/2019 - Continued

    PhillyFlyers05/27/2019 at 02:19 0 comments


    forgot to mention, you do NOT need to populate the JTAG header NOR do you need to buy a debugger OR install any IDEs if you only want to build the board and run the software.

    The STM32 processors are sweet in that you can download code to them with just a simple USB<->RS232 3.3V TTL adapter cable (I posted the link in the project).. ie simple FTDI cable about $15 from amazon..

    So once I have a good build going, you can simply download the compiled. hex binary, connect the cable to the RS232 header on the board, flip the jumper, and flash it with the free STM flasher tool, which I will post a link to eventually..

    but just an FYI for those not interested in actually playing with the software and doing any coding,, but just want to build and run the board... you don't need any JTAG gear or IDE tools...

  • 05/26/2019

    PhillyFlyers05/27/2019 at 02:14 0 comments

    Got the project ported over to Segger Embedded Studio, which turned out to be MUCH nicer (and faster) then using IAR EWARM, and also better then using TrueStudio (now called STMCUBE IDE).  The project will still build with all 3, but considering that Segger Embedded Studio is FREE for non-commerical use, I would highly recommend just going straight for that one!

    (plus it's actually a very nice IDE)

    I've been working on the BOM, should have it posted by tomorrow night, plus I populated up a 2nd board, as it is the board I will permanenty mount in my oven, and post pics of as I mount and connect it up, so you can see the slot and holes I drilled in the cover to mount the TFT screen.

    Also, still working on the LCD menus, all is good, just working through them, hopefully will have the BOM and some mounting pics posted tomorrow...

  • 05/14/2019

    PhillyFlyers05/15/2019 at 20:56 0 comments


    Schematic/Board design is finally complete.  I still have some notes/comments/etc to cleanup in the eagle schematic file, but wanted to post it so at least anyone interested can at least get an idea of the size... I haven't done the BOM yet, that will take some time.

    So EAGLE files are posted, along with a link to the initial Github repo, which currrently just has the eagle files, and a jpg of the schematic, and also the OshPark link for the board I had made.  I'm *SURE* you can get this board made cheaper somewhere else, I am just happy with Osh and their reliability, but $200 for this board is very very steep, i'm sure other places can do much much cheaper. 

    You'll notice the odd 'L-shaped' board, but that is so it can mount cleanly on the 6 mounting posts already there on the inside of that cover for the oven, and when the LCD is mounted on the outside, you dremel a slot where the LcD connectors pass through and connect up to the board.  (I'll post some pics shortly of how this looks)

    Just built the final version, using 64MB SDRAM, and all other fixes, and it's working without issues, everything looks great.

    I'm currently working on the touch screen menus and things using the STemWin Graphics IO package, which is working great.

    Hopefully within the next month or less I will have a first working version and will have the initial software repo to post... hoping that will happen!

    But definitely not too far away, that is for sure, as I have many of the LCD screens already working, just trying to design some decent first drafts, and then get an actual run going.

  • 04/27/2019

    PhillyFlyers05/15/2019 at 20:55 0 comments

    Alright, got FreeRTOS & StemWin integrated, and got some demo code working so I could see the LCD actually run some animation, widgets, etc.  Have to say, STemWin is an awesome library, almost endless possibilities of what you can create.  I wish I was a better artist.

    ** I'm really hoping others following this may be able to contribute someday and and some sweet graphics designs, I'm going to do what I can to make a nice thing working, but like I said, I don't have much artistic talent, so my graphics designs tend to be boring. lol **

    So, the SRAM I put in this current design was only 4MB, and couldn't really get higher than that.. BUT, I was such an idiot and didn't realize my pin restriction was because I was comparing to their eval board and assuming I had to go with 32-bit wide SDRAM, which is not the case, as the SRAM was only 16-bit wide.  No problem with using 16-bit wide SDRAM, and only had to move 1 pin to change the board to use a 64MB SDRAM, so we have plenty of room for multiple LCD Frame Buffers, and STemWin internal buffers, and whatever else cool we can use it for!

    So, one more board spin, to remove the SRAM and replace with the SDRAM... once I get that back and working, I'll finally put up the schematics, pcb, and oshpark link.... then after that I'll try to get a parts list together...this design obviously isn't going to be cheap, but I think it's worth it, considering the endless opportunites this provides, and also gives any enduser the opportunity to design almost anything custom they want.  

    Really the 3 most costly components are the LCD:

    1) 800x480 NewHaven display is about $65

    2) STM32H7 processor is about $22

    3) 64MB SDRAM is about $15

View all 18 project logs

Enjoy this project?



Nicolas Chaslot wrote 06/05/2019 at 17:03 point

Good to see all the work done here!
I have received the boards, still have to order the components. From a first "external quick fit" i think it should more or less fit in the T962 oven too. I'll try to open my oven and throw it in to see more precisely where it (if it)  hits :)

  Are you sure? yes | no

Nicolas Chaslot wrote 05/28/2019 at 20:08 point

Awesome thank you for the hard work!

I'll order the parts as soon as I get the boards from china! I will also be able to confirm the fit in the T962 oven as i have the small one :)

Did you do some reflow testing yet?

  Are you sure? yes | no

PhillyFlyers wrote 05/29/2019 at 09:24 point

Still working on the code/GUI, little by little getting all the menus tied I added an 'ini' parser code in, so I could put a 'config.ini' onto the microsd as well, this is what stores configuration LCD brightness, sensor enables, etc...

Hopefully in the next week or two I'll get to that point where I work on enabling the reflow, but I'm still working on the menus for the profiles, reading/writing profiles to the microsd, etc....

  Are you sure? yes | no

Nicolas Chaslot wrote 05/16/2019 at 08:08 point

Good Job!
I've had a look at the gerbers, it looks awesome! I just wanted to  know, did you confirm the fit on the T962 oven?

I'll order 5pcbs in china now (17$ for all of them) so if anyone needs one... :)


  Are you sure? yes | no

PhillyFlyers wrote 05/16/2019 at 09:31 point

Holy crap, $17?  What place did you order from?  that is insanely cheap, I can't believe the prices I pay on OshPark sometimes :)

I don't have a T962, I only have the T962A... someone recently on my other Pic32 project had mention that board would not fit in the T962, so I really doubt this one would either..

  Are you sure? yes | no

Nicolas Chaslot wrote 05/16/2019 at 09:40 point

I quoted for that price on JLCPCB in china. 16,XX for 5 pieces.

Ok. I'll figure out a way to make it work then haha

  Are you sure? yes | no


[this comment has been deleted]

Jarrett wrote 05/15/2019 at 02:29 point

You should post these as project logs :)

Makes it easier to follow

  Are you sure? yes | no

PhillyFlyers wrote 05/15/2019 at 20:57 point

Great Idea!  did not even notice that was there!  I moved all these updates into logs, going to try and clean these comments up..

  Are you sure? yes | no


[this comment has been deleted]

Nicolas Chaslot wrote 05/05/2019 at 09:50 point


Definitely not cheap but if that can make that little oven a little bit more suitable for work that's worth it!

  Are you sure? yes | no


[this comment has been deleted]

Nicolas Chaslot wrote 04/16/2019 at 08:12 point

Great news!
If hardware is validated i'll order and build it then :)

  Are you sure? yes | no

PhillyFlyers wrote 03/11/2019 at 00:48 point

...moved to project log...

  Are you sure? yes | no

Nicolas Chaslot wrote 03/22/2019 at 10:32 point

Awesome work as always!

Maybe the sd card could store the reflow profiles and user parameters too?

  Are you sure? yes | no

PhillyFlyers wrote 03/22/2019 at 14:05 point

Yes indeed, I was thinking this would be the way to go once things settle in, as we'll have almost endless space on a microSD card..

So I got the microSD card all working, just hacked up a socket on my current test board, since my newly spun board is showing up today (with the socket actually part of the board design :)

That was fun trying to figure out all the public microSD card code, using chan's FatFS lib (which is freakin bad-ass)... So got it all going, nice and clean running the SPI interface to it at 10Mhz using a 32gb microSD..

So once I start populating the new board this weekend, I'll test out that everything is up and working, and I didn't forget any of the many cuts/jumps I had to add to my current board.. lol... plus keeping my fingers crossed the SRAM works... in that case I can start testing displaying images from the SD card to the LCD...

  Are you sure? yes | no

Nicolas Chaslot wrote 03/22/2019 at 14:08 point

Sounds good!
Really looking forward to ugrading my oven !

  Are you sure? yes | no

PhillyFlyers wrote 02/21/2019 at 14:04 point

...moved to project log...

  Are you sure? yes | no

Nicolas Chaslot wrote 01/16/2019 at 09:21 point

I can see there have been some awesome work done here! Don't know why hackaday doesn't keep me notified...

Anyway glad to see the thing going along and can't wait to get my hands on one!

  Are you sure? yes | no

PhillyFlyers wrote 01/13/2019 at 21:20 point

...moved to project log...

  Are you sure? yes | no

Elasia Squishie wrote 01/09/2019 at 16:34 point

I mean just the circuit as is on figure 4 and powering from 120V the application circuit, that chip looks like it needs to float on the ac line to work proper and you get that by the ground which is really connected to hot via the fets diode and then VS is connected to neutral via a rectifier diode and related resistors/transistor

so then you use an isolator connected to the fl5160 ground and power pins to drive a pwm into a low pass or feed a dac chip that is powered by the fl5160 as well

i plan to build the above once my voltera shows up next week, this is right up its ally

  Are you sure? yes | no

PhillyFlyers wrote 01/09/2019 at 17:06 point

Yep, you got it... this is why it get's tricky, because you are dealing with AC neutral/gnd and then the digital gnd for the rest of the logic.  

It made more sense to me to just keep the AC section as isolated as possible, and just power everything from my DC supply.  So this way, everything including the 5160 is powered by the DC supply, AC remains on the FET side, and nothing else.

but yeah, you can do it whatever way you want really... just gets complicated as you power more things from the 5160, and then try to interface with other logic on earth ground.

  Are you sure? yes | no

Elasia Squishie wrote 01/09/2019 at 20:10 point

Yeah, ideally only need to bang the serial pins through an isolator and leave the entire rest of it as an isolated mains power circuit

I just got done baking the oven for almost a full day... even after removing all that ridiculous masking tape before hand is still had this nasty smell i couldn't quite place other than being some kind of organic voc

In manual mode on the chinese controller it leveled off nicely at around 160C or so with the fan and lamp on out of the box.. only thing i can figure is whatever garbage mineral wool they used must have had the chemical in it because i had it completely torn down to inspect for putting an internal air stiring fan too.. that or maybe the adhesive from the heat tape they used?

Either way can barely smell it now... i'll still be placing it by my window in the lab though

  Are you sure? yes | no

PhillyFlyers wrote 01/09/2019 at 14:17 point

...moved to project log...

  Are you sure? yes | no

PhillyFlyers wrote 01/05/2019 at 20:16 point

...moved to project log...

  Are you sure? yes | no

Elasia Squishie wrote 01/09/2019 at 05:54 point

This peaked my interest so i picked up some parts to build figure 4 in the datasheet and then feed the dim control doing

pic square wave -> isolator -> low pass -> dim control

have you done anything of the like? The FL5160 has even its own built in power regulator to supply 5v

  Are you sure? yes | no

PhillyFlyers wrote 01/09/2019 at 14:14 point

yeah, you can do that as well, the dim control in the chip has it's own internal ADC to determine what 'level' your output AC will be at... so whether you feed it a straight-up analog voltage level from a DAC (as I'm doing), or a smoothed out pwm signal, or whatever, it doesn't care... 

And yes, the 5160/5150 puts out a 5VDC supply from that pin, you can use that for other things if you want..

All of my issues with this chip were configuring as you were above (using figure 4 or similar), and getting the thing to run with the entire circuit connected, and proper 3-wire grounding, etc.  It was not working right in that scenario, so it made more sense to supply the chip from a more stable source.

  Are you sure? yes | no

Elasia Squishie wrote 01/09/2019 at 14:53 point

Did you use an isolated ground between the ground pin and in the middle of the fets?

  Are you sure? yes | no

PhillyFlyers wrote 01/09/2019 at 16:03 point

Yep,  I have an opto-isolator being driven by the FL5160 gate drive, which is in turn driving the FETs.  (gnd of FETs is gnd of opto)

You can look at the PIC32 project schematic to see how I set it up, as I'm using the same setup here, except for the extra boost circuit I'll be using in this version to drive a stable VS for the 5160..

In the PIC32 version I was driving VS from the 9VDC coming from the oven 9VAC transformer...but 9-10VDC is right on the borderline of POR margin for the VS, so for stable running, you need it to really be around 11-12VDC (at least).  5160 clamps it at 17VDC of course...

  Are you sure? yes | no

PhillyFlyers wrote 01/03/2019 at 01:26 point

...moved to project log...

  Are you sure? yes | no

Nicolas Chaslot wrote 01/03/2019 at 16:31 point

Yeah that's a pain when the datasheet schematics don't work as they should...
I'm sure having a 12v reg inside the oven on top of the ssr would not cause any problem to most of us wanting to go the custom pcb route.

It might simply be the simplest/quickest option to get the best results here, leaving time after to figure out what the problem is... Doesn't Fairchild have a forum or contact line for technical issues like this?

  Are you sure? yes | no

ghulands wrote 12/08/2018 at 07:09 point

Are you thinking of doing a kickstarter or small board runs for this board?

  Are you sure? yes | no

PhillyFlyers wrote 12/19/2018 at 00:24 point

...moved to project log...

  Are you sure? yes | no

ghulands wrote 12/19/2018 at 00:34 point

How's your progress going lately?

  Are you sure? yes | no

Nicolas Chaslot wrote 10/22/2018 at 08:02 point

Joining here to follow the progress of this version!
I'll try to be patient and not order the pic version for the moment haha :)

Keep up the good work :)

  Are you sure? yes | no

PhillyFlyers wrote 11/11/2018 at 20:33 point

...moved to project log...

  Are you sure? yes | no

Nicolas Chaslot wrote 11/12/2018 at 08:14 point

Haha yeah i know the feeeling of being overwelmed by projects ^^
Anyway, that's awesome!

  Are you sure? yes | no

PhillyFlyers wrote 12/19/2018 at 00:22 point

...moved to project log...

  Are you sure? yes | no

Nicolas Chaslot wrote 12/19/2018 at 08:35 point


No big deal, there's no rush, you're doing an awesome job :)
Good that all the magic smoke stayed where it belongs!

I'll probably just wait for the stm32 board anyway, i don't really see the point of making two successive updates, considering the oven kinda works already using some low-temp soldering paste and I didn't even have the time to run as many boards as i wanted to :)

I started looking at stm32 development too a few days ago and i must say that it's way more complicated than I initially thought, with a lot of different libs and files to gather from all around to make the thing to build!

  Are you sure? yes | no

PhillyFlyers wrote 10/09/2018 at 21:25 point

FYI, please see the *details*, I've only just started this project, I'm just populating my 1st revision of a PCB now, then will have to start testing the hardware to see how many screw ups I made on the PCB...

So gonna be quite some time before this is doing anything cool to show :)

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates