danialhbma / ITP-SE12-Power-Monitoring

ICT3111 Integrative Team Project
1 stars 0 forks source link

Implementation: Water Flow Sensor (+ ADC) #18

Closed yucan-yu closed 1 year ago

yucan-yu commented 1 year ago

Complete configuring the water flow sensor (with ADC).

yucan-yu commented 1 year ago

Data successfully read (as 0 and 1) by M5StickC from water flow sensor, currently implemented using interrupt.

yucan-yu commented 1 year ago

Analogue values successfully read using the built-in ADC (G36) of the M5StickC.

Things to look into:

  1. To read analogue vs digital data.
  2. Reason why data read is consistently 1 (digital) or 4095 (analogue) - currently suspecting either improper wiring or wrong configuration settings.
yucan-yu commented 1 year ago

Addressed above 2 "Things to look into":

  1. Decided on analogue data.
  2. Resolved.

TODO: Debug memory allocation error.

yucan-yu commented 1 year ago

Memory allocation error resolved.