ATC_MiThermometer icon indicating copy to clipboard operation
ATC_MiThermometer copied to clipboard

PCB pinout / GPIO control

Open vortigont opened this issue 4 years ago • 18 comments

Hi! Maybe someone already poked through the P-pads on PCB, is there any pinout available? Wonder if this tiny could do more than just sending temp/humi? Something like gpio control, door/window sensor, attaching some other i2c sensors maybe? The SDK is quite brief with not much of the examples/libs available to play with.

vortigont avatar Dec 10 '20 13:12 vortigont

Hey.

Yes i have a paper at home with most of the pinout. I can post it later if i not forget it

It is definitely possible to add aditional hardware.

Just as info not much pins are free. 3 or 4 i think

atc1441 avatar Dec 10 '20 13:12 atc1441

Thanks, @atc1441! Would be nice to have pinout available in repo. Have an idea to use it as water volume counter, all it need is an interrupt-driven event for a single pin open/close.

vortigont avatar Dec 10 '20 14:12 vortigont

Add to the description that the Sensirion SHTC3 sensor is used. https://www.sensirion.com/en/environmental-sensors/humidity-sensors/digital-humidity-sensor-shtc3-our-new-standard-for-consumer-electronics/

pvvx avatar Dec 16 '20 15:12 pvvx

It is unclear how to connect to the board for UART flashing; there seems to be a wire missing from the Mi_SWS_Connection.jpg image. A pinout would be helpful!

agmlego avatar Dec 16 '20 22:12 agmlego

marking PCB image Only pins PB6, PC2, PC3 are used

pvvx avatar Dec 18 '20 03:12 pvvx

Danke so much!

On Thu, Dec 17, 2020, 22:15 Victor [email protected] wrote:

marking PCB [image: image] https://user-images.githubusercontent.com/12629515/102570353-375f6d80-40f8-11eb-91c9-c885b08b1a65.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/atc1441/ATC_MiThermometer/issues/122#issuecomment-747841685, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAO7FJ4LDNQ7SBMAIVLZT3SVLCOTANCNFSM4UVAQE7A .

agmlego avatar Dec 18 '20 03:12 agmlego

Actually, no, now I am more confused. The image for flashing shows a wire connected to P14, which I guess is in the SWS position on the mux. Is there no RX needed for flashing?

agmlego avatar Dec 18 '20 03:12 agmlego

My image was for a non Transceive flasher but now the flasher is updated so it can also read from the TLSR8251 thanks to Victor

You can use this pinout https://github.com/pvvx/TlsrComSwireWriter

atc1441 avatar Dec 18 '20 03:12 atc1441

BoardPinout https://github.com/pvvx/ATC_MiThermometer/tree/master/BoardPinout

pvvx avatar Dec 18 '20 03:12 pvvx

@pvvx Victor to the sensor, inside of the Thermometer is actually an SHTV3 but the SHTC3 is very similar and can be used.

atc1441 avatar Dec 18 '20 03:12 atc1441

Oh! OK, thanks! I got it.

agmlego avatar Dec 18 '20 03:12 agmlego

Actually, no, now I am more confused. The image for flashing shows a wire connected to P14, which I guess is in the SWS position on the mux. Is there no RX needed for flashing?

There are two options. With and without reading. Only USB-COM PL-2303HX or CH340 is suitable for reading. Not FTDI! PL-2303HX is preferred.

pvvx avatar Dec 18 '20 03:12 pvvx

@pvvx Victor to the sensor, inside of the Thermometer is actually an SHTV3 but the SHTC3 is very similar and can be used.

Datasheet on SHTV3? SHTC3 completely matches, including timing and electrical specifications.

Datasheet:

  • Average current consumption while the sensor is measuring (Normal Mode) Typ. 430 uA (+Idd PullUp SCL/SDA)
  • Measurement duration (Normal Mode) Typ.10.8 ms

Current board and my test:

  • Time measurement 11..12 ms
  • Consumption measurement (3.3V with all board elements) PullUp1M - 0.5 mA , PullUp10K - 0.6 mA

pvvx avatar Dec 18 '20 04:12 pvvx

image image image Copy from https://www.pepper.pl/comments/permalink/4397657

pvvx avatar Dec 18 '20 04:12 pvvx

A datasheet is not available for the SHTV3 the sensor works exactly the same so as mentioned the SHTC3 datasheet can be used.

atc1441 avatar Dec 18 '20 05:12 atc1441

image

OnOff :)

pvvx avatar Jan 04 '21 21:01 pvvx

Love it!

atc1441 avatar Jan 05 '21 05:01 atc1441

Alarm button (TTP233D-HA6 TonTouchTM', at low power mode typical 2.5uA, maximum 5uA )? :) http://www.tontek.com.tw/uploads/product/120/TTP233D-HA6_V1.1_EN.pdf

pvvx avatar Jan 08 '21 01:01 pvvx