Re: Heart rate sensor MAX30102
The breadboarding....i think is clear as schematic, if you like schematic i could also make one
not really , i looked at 3 modules the mikroe one is 3.3v only .the one mouser/e14 sell is 3.3 or 5v and has a logic level converter on board
another provides no schematic and only vague spec no schema, i cannot identify your module
by the look of your cro traces you are belting 5v in on the scl,sda pins , better hope its 5v tolerant
TRISC = %10000100 ' portc.7 and portc.2 set as input.
is wrong both must be input , the routine will switch tris as req
if the module have 3.3 v pull ups might be better to use the open collector/drain method for i2c command
[edit] forget that ,its open collecter by default.
all other unused ports are configured as output and set to low.
unnecessary
SDA var portc.1
SCL var portc.2
conflicts with your tris statement anyway
Now regarding the FIFO_WR_PTR it is not clear to me in the manual what data to write to it.
me either but it will do something if everything else is correct
Last edited by richard; - 21st August 2020 at 10:20.
Warning I'm not a teacher
Bookmarks