Same code works arduino but not esp32
Posted: Fri Aug 21, 2020 9:12 pm
Hello,
I have a excelitas tpis 1256 thermopile sensor which uses direct link digital protocol as communication. Sensor gives us a 31 bit data from a single cable. We need to send low-high in order to read one bit. We need to repeat that 31 times to get all bits. First 17 bit for object and last 14 bit for ambient temperature. Anyway, I found a sample code here: https://github.com/ral93/DigiPile_TPiS- ... 32f4b295bf
This code runs on arduino and very stable datas coming. But when I just convert this code for my wroom32d, it gives object temp counts stable but ambient temp count is very unstable. Every reading returns different results for ambient.
I thing its about timing or communication issue. Any idea about that ?
Thanks
I have a excelitas tpis 1256 thermopile sensor which uses direct link digital protocol as communication. Sensor gives us a 31 bit data from a single cable. We need to send low-high in order to read one bit. We need to repeat that 31 times to get all bits. First 17 bit for object and last 14 bit for ambient temperature. Anyway, I found a sample code here: https://github.com/ral93/DigiPile_TPiS- ... 32f4b295bf
This code runs on arduino and very stable datas coming. But when I just convert this code for my wroom32d, it gives object temp counts stable but ambient temp count is very unstable. Every reading returns different results for ambient.
I thing its about timing or communication issue. Any idea about that ?
Thanks