Read A, B, and C, and store the data in c, d, and e. Why so slow? double c = thermocouple.readCelsius() When you don't use arrays, add a suffix to EVERY item in the set, not just some of them. Serial.println(thermocouple.readFarenheit()) SensorValueC = thermocoupleC.readCelsius() SensorValueB = thermocoupleB.readCelsius() SensorValueA = thermocouple.readCelsius() Serial.println("Something wrong with thermocouple C!") Serial.println("Something wrong with thermocouple B!") Serial.println("Something wrong with thermocouple!") Serial.println(thermocoupleC.readInternal()) Serial.println(thermocoupleB.readInternal()) Serial.println(thermocouple.readInternal()) basic readout test, just print the current temp While (!Serial) // wait for Serial on Leonardo/Zero, etc Example creating a thermocouple instance with hardware SPI Example creating a thermocouple instance with software SPI on any threeĪdafruit_MAX31855 thermocouple(MAXCLK, MAXCS, MAXDO) Īdafruit_MAX31855 thermocoupleB(BMAXCLK, BMAXCS, BMAXDO) Īdafruit_MAX31855 thermocoupleC(CMAXCLK, CMAXCS, CMAXDO) the two examples below to switch between software SPI and hardware SPI: Default connection is using software SPI, but comment and uncomment one of Here is the code, modified for my purpose. I am planning on some data logging capacity but for now I just want to focus on fixing these 3 parts up. If I want to add some function to start and stop the data/timer remotely how can I start with this? I am only testing a limited temperature range, when I reach the set temperature, I want to reset and start the test again. I if there is a txt file, I could just read it into a spreadsheet and work it based on the measurement timing, but was hoping for something more automatic. Quite literally a timer that just counts from start time of 0 upwards. How can I add a simple time counter to the information that is then sent in the data to help work out the timing of each measurement. Also, some real-time monitoring remotely in real time is needed so I know when to stop, and restart the test. Don't want to wait 3 minutes to see what is happening. Is there a way to shorten the buffer packet length before the module sends the data, or the data is received and displayed via the bluetooth app. The thermocouples are working (same numbers are because temperature wasn't changing over short periods of time). In the Serial monitor I get the measured output repeated, depending on the clock time: My goal is have the thermocouples, HC-05 and arduino board inside a room as the temperature is raised, and transmit the data to either a smartphone or computer, with either device recording the incoming data into a file and perhaps displaying real-time on the screen as well (would like to see what the current temperature is during the test). I have k-type thermocouples connected to Uno R3 at the moment and a HC-05 Bluetooth on digital 10,11. Putting this here, because at the moment the question is more a programming one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |