Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. grelm
    3. Best
    • Continue chat with grelm
    • Start new chat with grelm
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by grelm

    • RE: WIFI-Problem because of bended 3D-Antenna?

      @ajb2k3 said in WIFI-Problem because of bended 3D-Antenna?:

      > Can you switch on the iphones hotspot mode and check that way?
      I did tests with various devices and M5Fire at 2.4 GHz.
      The router 7590 is able to display the signal intensity of the connected devices.
      With all devices and M5Fire the signal intensity is very comparable between -75 dBm and -80 dBm (at the location where the signal is weak).
      With the M5Fire next to the router, the signal intensity is about -45 dBm (also comparably equal to other devices).
      Therefore I think, everything is ok with the hardware.

      > Other devices arn't a great way to test as they all act different.
      see above

      > Not heard of M5Alarm, the default UIFlow (beginners) firmware for M5Stack and stick is 1.2.3.
      I loaded UIFlow Firmware 1.2.3. Everything works fine - immidiate Wifi connections every time I start it and load and run various software.
      So I think, the WIFI-sensitivity-problem has to do with the software M5Alarm and/or with the setup of the WLAN-network.
      As I have now received the source code of M5Alarm, i will be able to look into that - but I am not very experienced in that area.
      As soon as know more about a cause and/or solution, I'll let you know.

      @ajb2k3: Thank you for your support!

      posted in Cores
      grelm
    • RE: DS18B20 @ Grove Connector

      Adress-Issue: Extract from data sheet:
      Each DS18B20 has a unique 64-bit serial code, which
      allows multiple DS18B20s to function on the same 1-Wire
      bus. Thus, it is simple to use one microprocessor to
      control many DS18B20s distributed over a large area.

      So I think, I can really run 6 Sensors on ONE GOVE-Port (B)!

      Power Supply:
      According to data sheet, a single DS18B20 draws 1,5 mA max. during conversion.
      In addition to that there is the current thru the necessary 4,7 kOhm resistor = 1 mA.
      In total there will be abut 10 mA (incl. some reserve) needed from the 5V-pin of the GROVE.port.
      How high is the maximum recomended current which a GROVE-Port can deliver?

      Cable-length:
      I think, I will have to do some testing.
      As soon as I am done with it, I am going to post the results on that in this forum.

      posted in M5 Stick/StickC
      grelm
    • RE: Problem when connecting more than 3 DS18B20 temperature sensors! - solved!

      @ajb2k3 Sorry, up to now I do not know how to to create a "github" and a "project" - I will need to do some "learning" on that.

      In the meantime I am giving you some information in this forum:

      The planned project:
      Logging of data of the house heating system for "years" for diagnostical and statistical purposes

      Functions needed in detail:

      • measuring of about 10 temprature sensors, environmant data, oil burner run time, +++
      • getting date and time from webserver via WLAN
      • use buttons for start/stop of measurement, single measurement, +++
      • show actual data on Lcd of M5Stack and monitor (if connected)
      • write all data to SD-card
      • use LED's of M5Stack-Fire for heartbeat, measurement in progress, waiting for next measurement slot, WLAN connection, +++
      • optional: sending data to PC via WLAN to import them into Excel for analysis (or transfering the data from SD-card to PC via a card-reader)
      • optional:Webserver for live-data and SD-card-data
      • +++, tbd

      ... puh..., I fear, this will be long way to go (at least for me...).

      The software (up to now, this is all I have so far - I wanted to start with testing and building up some experiences of using the DS18B20 sensors connected to a M5Stack-Fire):

      0_1560694018093_DS18B20 test 2019-06-16 vs.jpg

      /*
       * Software for basic tests of temperature measurement on M5Stack-FIRE with several DS18B20 temperature sensors
       * 1-wire-pull-up resistor = 2 kohm  (did not not work with 4,7 kohm !!!!
       * modified by GRELM; 2019-06-16
       */
      
        #include <M5Stack.h>
        #include <OneWire.h>
        #include <DallasTemperature.h>
      
        #define ONE_WIRE_BUS 26  //DS18B20 on Grove B corresponds to GPIO26 on ESP32
      
        OneWire oneWire(ONE_WIRE_BUS);
        DallasTemperature DS18B20(&oneWire);
      
      /*  Resolution of DS18B20 temperatur measurement = power-on-default = 12 bit = 0.0625 C
         *9-bit resolution --> 93.75 ms
         *10-bit resolution --> 187.5 ms
         *11-bit resolution --> 375 ms
         *12-bit resolution --> 750 ms
      */ 
        String monitorstring = "";  
      
        void setup() {
          M5.begin();
          M5.Lcd.setTextColor(TFT_WHITE,TFT_BLACK);  
          M5.Lcd.setTextSize(2);
          M5.Lcd.clear();  //just to make sure...
      
          Serial.println(); // to separate data from booting output
          monitorstring = "Date;Time;A;B;C;D;E;F;G;H;I;J;"; // up to 10 data-colums fpr up to 10 sensors
          Serial.println(monitorstring);  // Monitor Headline for Excel Headline
        }
        
        void loop() {
          float celsius;
          float fahrenheit;
      
          monitorstring = "Date;Time";  // change to realtime date and time of M5Stack (later)
          
          DS18B20.begin();
          int count = DS18B20.getDS18Count();  //check for number of connected sensors
      
      //    M5.Lcd.clear();    //clearing causes flickering of Lcd-display, looks nicer without
          M5.Lcd.setCursor(0,0);
          M5.Lcd.print("Devices found: ");
          M5.Lcd.print(count);
          M5.Lcd.println(" DS18B20");
      
          if (count > 0) {
          DS18B20.requestTemperatures();
          for (int i=0; i < count; i++) {
            String m5stackstring = "Sensor ";
       
            celsius = DS18B20.getTempCByIndex(i);
      
            m5stackstring = m5stackstring + String(i) + String(": ") + String(celsius,4) + String(" C     ");  
            M5.Lcd.println(m5stackstring);  // 1 line per sensor on M5Stack Lcd
          
            monitorstring = monitorstring + String(";") + String(celsius,4);  // ";" is Excel compatibel separator
       
          }
          Serial.println(monitorstring);  // 1 line for all measurements on serial monitor
          }
          delay(500); //Measuremnt interval
        }
      posted in PROJECTS
      grelm
    • RE: Problem when connecting more than 3 DS18B20 temperature sensors! - solved!

      Measuremnts of supply-voltage and signal-shape:

      • Voltage of +5V-line: +5,07 V at Grove-connector and at end of 20m-cable = ok = no voltage drop (measured with DMM)
      • Signal-shape of 1-wire-signal-line: see attached photo below = ok, but seee comments in photo (measured with oscilloscope Sony/Tektronix 335)

      0_1560931390809_1-wire-signal_20m_2019-06-19_s.jpg

      posted in PROJECTS
      grelm
    • RE: M5Stack Capacitive TouchScreen

      @ajb2k3 said in M5Stack Capacitive TouchScreen:

      shock you don't know our Jimmy?shock

      I'm sorry I didn't know Jimmy Lai before! 😒
      However, now, after watching https://www.youtube.com/watch?v=FLcXPGfMqbM I do! πŸ‘
      It is never to late to learn! πŸ˜‰

      posted in SOFTWARE
      grelm
    • RE: M5StickC Nixie tube Clock

      Without wanting to anticipate @ajb2k3 :

      Your first screenshot says "Fehler beim Kompilieren fΓΌr das Board ESP32 Pico Kit" and this board is also listed in the lower right corner of the screenshot.
      I think, that you should first change the board-Type in the Arduino IDE under 'Tools/Werkzeuge' - 'Board/???' - .... to: 'M5Stick-C' and than try to compile again.
      May be (and I hope) it helps ...

      posted in PROJECTS
      grelm
    • RE: M5Stack Capacitive TouchScreen

      Water resistant version with touchscreen ?!?! πŸ‘
      When and where will it be available?
      Technical data already available?
      I definitely want it!

      posted in SOFTWARE
      grelm