Ralim / IronOS

Open Source Soldering Iron firmware
https://ralim.github.io/IronOS/
GNU General Public License v3.0
7.08k stars 705 forks source link

data logging support #753

Open dhiltonp opened 3 years ago

dhiltonp commented 3 years ago

I know we can'tn do usb logging with the ts100 because the data lines don't go to the MCU.

Will it be possible to log data out of the usb-c port on the pinecil?

I'm thinking of ways to improve data collection for temp control validation, maybe making a test fixture with an Arduino logging temps and amps. Seeing exactly the same temp data as we're processing on the MCU would be really handy...

Maybe we can write values to some spare pins if nothing else.

Ralim commented 3 years ago

Ts100 does have them connected but nowhere near enough flash space for a USB stack.

The Pinecil has a bunch of gpio broken out on the usb-C and the USB port. So definitely can on the Pinecil. (And it has double the flash + no bootloader)

If you want to do a bunch of tuning I can possibly send you one?

dhiltonp commented 3 years ago

That would be great, yeah!

I could set up something to simultaneously record the internal thermocouple readings as well as read from an external thermocouple which would really help.

For general use, logging over USB-C seems most convenient, but in order to test at a variety of voltages it seems that it would be easiest to provide power via barrel jack and read from the breakout board. What do you think?

Ralim commented 3 years ago

My inital plan is to add support for sending state information out the uart as the unit is operating. Mostly as I dont really have time to setup the usb stack on the short term.

Other thought is that very few devices can output 20V over USB-C while also having the usb data lines connected. :/

My thought is uart on breakout and PD or DC in for power.

dhiltonp commented 3 years ago

Sounds good!

OndroNR commented 3 years ago

I am thinking of automated fume extractor fan triggering. This would require special "base station" with USB-C connector and some very careful high voltage power handling, so it would not fry random connected devices. I am even considering USB host counterpart, so fully connected cables would not be required.