I am trying to build a project in which the stm32 reads serial data from a electronic scale and sends to a thermal printer on button press. Initially, I used arduino IDE to create and execute code, but it was too difficult for me. I managed to receive and print weight on serial monitor, but printing only current weight data on button press is headache. I failed it, as more than 1 weight data is printing. So I’m trying to achieve it on cubemx.
I have stm32 connected to pc via ftdi, Weighing scale is connected to a Max232 and then connected to PA9 and PA10 of stm32.
I hope Someone may help me to solve this program. loads of thanks in advance. Pardon my bad English.