Emile666 / stc1000_stm8

STC1000p for the STM8 microcontroller (HW version WR-032)
GNU General Public License v3.0
45 stars 10 forks source link

Some question for external monitoring #11

Open vetsolution opened 3 years ago

vetsolution commented 3 years ago

Hello, First of all thank you for your work, especially for the inversion of electronic diagrams I would like to use an esp32, to monitor my fermentation chamber. I already have an esp32 with a ds18b20 sensor which sends me the temperature every 10sec.

I want to know the status of the cooling and heating relays. So I think there are two ways to handle it:

1. Use pins 5 and 6 which trigger the transistors of the relays?
2. Use the LED signal on the front panel, but I don't know where it is. I'm assuming there is some sort of multiplexing for display management (I2c?)? Can you describe the input of the 7-segment display DIS1?

What do you think is the best way to manage it? If I use the first choice I guess I can't pin this to esp32, the best way is to use a transistor or divider bridge (5v-> 3.3v)

Do you have the reference of the temperature sensor? Where is it on the diagram? Finally, do you have a quick explanation of what it is: SWIM_4, NTC1, NTC2, CC1, CC2, CC3, CC4, S3 SWIM_S4 is some kind of debugging channel? but why is it connected to the screen? CC1 and CC2 is an I2c bus to control the display? NTC1, NTC2 is the temperature sensor? Why is it also wired to the screen?

Thank you

lalo-uy commented 3 years ago

If you gone put an esp32 to the task, why no not program Brewpiless on it??? An option just to monitoring is to use a serial feed on the spare line used for the optional pwm.

El El mar, 1 de dic. de 2020 a la(s) 20:54, Patz Michel < notifications@github.com> escribió:

Hello, First of all thank you for your work, especially for the inversion of electronic diagrams I would like to use an esp32, to monitor my fermentation chamber. I already have an esp32 with a ds18b20 sensor which sends me the temperature every 10sec.

I want to know the status of the cooling and heating relays. So I think there are two ways to handle it:

  1. Use pins 5 and 6 which trigger the transistors of the relays?
  2. Use the LED signal on the front panel, but I don't know where it is. I'm assuming there is some sort of multiplexing for display management (I2c?)? Can you describe the input of the 7-segment display DIS1?

What do you think is the best way to manage it? If I use the first choice I guess I can't pin this to esp32, the best way is to use a transistor or divider bridge (5v-> 3.3v)

Do you have the reference of the temperature sensor? Where is it on the diagram? Finally, do you have a quick explanation of what it is: SWIM_4, NTC1, NTC2, CC1, CC2, CC3, CC4, S3 SWIM_S4 is some kind of debugging channel? but why is it connected to the screen? CC1 and CC2 is an I2c bus to control the display? NTC1, NTC2 is the temperature sensor? Why is it also wired to the screen?

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Emile666/stc1000_stm8/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBW4LSJVZKED5IN4INTPLSSV62BANCNFSM4UJXCY3A .

vetsolution commented 3 years ago

I do not want to flash the stock firmware. Just keep it as it is and monitor the relay and send result via mqtt to https://io.adafruit.com And better undestand the STC1000 ;) I will read mor about Brewpiless but I think that is a bit overkill for my need

Emile666 commented 3 years ago

@vetsolution If you want to know the status of the relays, simply attach something to the HEAT and COOL lines. They are direct outputs of the STM8 and go to the backplane to the transistors that switch the relays on and off. Best is if you solder some thin wires on the base resistors on the backplane.

The LEDs are integrated in the 7-segment display. The 3-digit 7-segment display is in fact a 4-digit display, the 4th digit is for all the individual leds, such as °C and the heating and cooling leds. Since this is multiplexed, you cannot access these directly.

What is more annoying is that the new versions of the STC-1000p switched to the N76E003AT20 microcontroller and the 7-segment displays have become common-anode instead of common-cathode. I used to reuse these displays on my front-panel PCBs. Now I have to design a PCB with standard 7-segment displays on it.

vetsolution commented 3 years ago

I see, thanks for the info about the display! I will try a setup like this but I am not sure about resistance values In red the addition I made image

lalo-uy commented 3 years ago

The values you placed are ok.