Miniam Weather Sensor / baro & temperature calibration - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: Miniam Weather Sensor / baro & temperature calibration (/showthread.php?tid=3716) |
Miniam Weather Sensor / baro & temperature calibration - damien - 2021-10-02 Hello All, The question is about the Minimal Weather Sensor from Sean's store : what is the procedure to calibrate the offsets for the barometer and temperature sensor (BMP280). The setup is as follows : the minimal weather sensor is pluged to USB on a linux box (openplotter) and identified as /dev/ttyUSB0 (cat /dev/ttyUSB0 shows the expected NMEA0183 output). It seems from looking at the arduino code (https://github.com/pypilot/pypilot/blob/master/arduino/weathersensors/weathersensors.ino) that sending "\r" character (carriage return) to /dev/ttyUSB0 is expected to lead to a configuration over serial but this seems to fail when I try (using the echo command or minicom). Would someone have a hint on the subject ? Best regards, Xavier. RE: Miniam Weather Sensor / baro & temperature calibration - guyh2 - 2021-10-02 I've not got one or used one, but I have had a quick look at the code. What do you get if you send config <CR> ? i.e. the word config followed by a carriage return RE: Miniam Weather Sensor / baro & temperature calibration - seandepagnier - 2021-10-02 type "config" and hit enter should but only if up manage to update the software this is recently added. RE: Miniam Weather Sensor / baro & temperature calibration - damien - 2021-10-02 Hi, Here follows the code used for testing: Code: #!/bin/bash Code: Sensor type:1 From Sean's answer and should the printf command be correct, I guess I must load the updated code to the arduino. Will dive into this and report. Best regards, Xavier. RE: Miniam Weather Sensor / baro & temperature calibration - seandepagnier - 2021-10-02 I use minicom.. the configuration here is interactive. RE: Miniam Weather Sensor / baro & temperature calibration - damien - 2021-10-02 (2021-10-02, 06:10 PM)seandepagnier Wrote: I use minicom.. the configuration here is interactive. Sean, I used minicom too ; the result is the same : ignoring when typing config followed by return. I tried to compile the last version of weathersensor.ino but run into troubles: Code: git clone https://github.com/pypilot/pypilot I edited the code to set LCD (the minimal weather sensor has no LCD) Code: #define LCD NONE And then make (note: compilation on debian) Code: make Code: cp weathersensors.ino obj/weathersensors.ino.cpp I look at the code and indeed coutn is declared two times as an int array and then as unsigned int. Not sure why. Sean, if you have some guidance, I'll take it. Best regards, Xavier. OK ; very bad hack : I have replaced count by count1 in lines 670, 678 and 680 and compiled via make with only warnings ; make upload worked as expected upolading to the arduino. minicom has been used and I now have access to config. Sean, could you comment on the count variable ? Best regards, Xavier. RE: Miniam Weather Sensor / baro & temperature calibration - seandepagnier - 2021-10-03 sorry, thanks for reporting it. I fixed it now. |