The code is uploaded with no problems or memory warning messages.īut the red LED on the sensor never comes on, and there is a message showing that the sensor might not be connected. So, i tried using an Arduino DUE which has much more space and should work way better (at least for this project) than the UNO. When visualizing the data (Heart rate and SPO2 values), those are a little out of my expectations (heart rate values of 200 or even values with no finger on the sensor). When that example is loaded into an Arduino UNO, it shows a message that the memory is almost full and that stabality problems may occur. The library that works is the one from Sparkfun (example #8). Serial.I've seen projects using an Arduino UNO and a MAX 30102 (or 30100). Serial.println("# Adafruit PCF8591 found") Serial.println("# Adafruit PCF8591 not found!") Serial.println("# Adafruit PCF8591 demo") Make sure that this is set to the value in volts of VCCĪdafruit_PCF8591 pcf = Adafruit_PCF8591() LiquidCrystal_I2C lcd(0x27,20,4) // set the LCD address to 0x27 for a 16 chars and 2 line display I have connected the PFC to SDA 20 SCL 21 So i have to make an op amp with a gain of ~3 to make it course it does not work I heard that unsoldering one Resistor makes it work to full values. Please help me to get it to work, everything on due is co complicated, wish I have bought mega.ĭownloaded all possible libraries and the Adafruit one works at 3.3 Vref.īut still the vmax is like 2.8V but that is just the case of the board. But I tried also to disconect the screen and use the 20/21 pins - still nothing helps. I connected the SDA/SCL to PIN SDA1 and SCL1 ( I am using also the i2c screen). In file included from C:\Users\Sebastian\Documents\Arduino\libraries\PCF8591_library\PCF8591.h:31:0,įrom C:\Users\Sebastian\Documents\Arduino\libraries\PCF8591_library\PCF8591.cpp:28:Ĭ:\Users\Sebastian\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:38:7: note: void TwoWire::begin()Ĭ:\Users\Sebastian\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:38:7: note: candidate expects 0 arguments, 2 providedĬ:\Users\Sebastian\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:39:7: note: void TwoWire::begin(uint8_t)Ĭ:\Users\Sebastian\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:39:7: note: candidate expects 1 argument, 2 providedĬ:\Users\Sebastian\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:40:7: note: void TwoWire::begin(int)Ĭ:\Users\Sebastian\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:40:7: note: candidate expects 1 argument, 2 providedīłąd kompilacji dla płytki Arduino Due (Programming Port). * Read all analog pins and write value on analog ouputĬ:\Users\Sebastian\Documents\Arduino\libraries\PCF8591_library\PCF8591.cpp: In member function 'void PCF8591::begin()':Ĭ:\Users\Sebastian\Documents\Arduino\libraries\PCF8591_library\PCF8591.cpp:88:26: error: no matching function for call to 'TwoWire::begin(uint8_t&, uint8_t&)'Ĭ:\Users\Sebastian\Documents\Arduino\libraries\PCF8591_library\PCF8591.cpp:88:26: note: candidates are: When i connected it to DUE and run the i2c scanner it finds the module at 0x48.Īfter i upload the same example sketch I have an error all the time: the example sketch modified to just analog.write:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |