Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. fsgraz
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    fsgraz

    @fsgraz

    25
    Reputation
    7
    Posts
    6
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    fsgraz Follow

    Best posts made by fsgraz

    • RE: What did you build today (Pictures) ?

      the display node for my camper, based on a Arduino Mega clone
      IMG_20210704_080638.jpg

      posted in General Discussion
      fsgraz
      fsgraz
    • A few sensors for my camper (pandemic lockdown edition ...)

      IMG_20210306_181941.jpg IMG_20210306_181934.jpg IMG_20210306_181903.jpg

      Charge Monitors
      Batteries Monitor
      Controller and Mobile Router
      IMG_20210306_112850.jpg
      Fresh Water Level Monitor
      IMG_20210313_153635 (2).jpg IMG_20210313_153612 (2).jpg
      Fridge Fan Controller
      IMG_20210305_161539__01.jpg IMG_20210305_161353__01.jpg
      Display

      posted in General Discussion
      fsgraz
      fsgraz
    • RE: What did you build today (Pictures) ?

      A collection of the sensors and actuators I buit for my camper in the past year

      the power supply system under the dinette seat
      IMG_20210306_181846.jpg IMG_20200308_151728.jpg
      the battery management system (purchased) data are read via wifi by an ESP32, which reports the info to the GW via nRF24L01+.

      a closed look at 2 sensors.
      the one on the left reads voltage and current from the solar PV panel and to the battery management system
      IMG_20210306_181903.jpg
      the one on the right reads voltage and current from/to the start and service batteriers
      both sensors report instant power and energy.

      Fresh water sensor reads the water level, flow and temperature.
      has 4 optcoupled outputs to send the information to the 4 LEDs of the original control panel of the camper
      IMG_20210306_112850.jpg IMG_20210306_112844.jpg

      gray water tank sensor reports water level with an ultrasound sensor. has an optocoupled output to the "full" LED of the original control panel
      IMG_20210316_175523.jpg IMG_20210316_175427.jpg

      bettry supplied temperature and humidity sensor.
      I use it in the fridge but also at home, where I have also one with BME280.
      IMG_20210414_081625.jpg IMG_20210414_081617.jpg

      A fan controller to help the fridge to work better, controlling the condenser temperature using an optical thermometer sensor.
      I have 3 other units, one in the power supply system, one in the closet and one on the roof.
      They are all with a PID controller.
      IMG_20210503_095913.jpg IMG_20210313_153635 (2).jpg IMG_20210313_153612 (2).jpg

      posted in General Discussion
      fsgraz
      fsgraz
    • RE: What did you build today (Pictures) ?

      Some updates in almost one year.

      I moved all the gateways and controller part in a most suitable locationIMG_20220305_110252.jpg

      I've created a dual current sensor for the fuse box and the inverter. Each Current sensors can withstand 90A max, so I used both channels in parallel. The sensors are defined for both Channel 1, 2 and Sum(Ch1+Ch2) to handle this case easily
      IMG_20210824_172723__01.jpg
      Recently I made an updated version of my Photovoltaic monitor since the 20A that the old one could withstand are not enough now, so the new version is capable of 50A max. Still waiting the Hall sensors though...
      IMG_20220526_175957.jpg
      Finally, I cleaned up a bit the deployment under the bench
      IMG_20220527_161849.jpg but I am not done yet

      posted in General Discussion
      fsgraz
      fsgraz
    • ESP WiFi hung solution

      This is how I solved the issue of ESP32 GW hanging when WiFi connection is lost or not established. It is not 100% my original work, it has been put together using bits and pieces, but it works.

      I simply use a watchdog timer:

      #include "esp_system.h" // added for WDT
      hw_timer_t* timer = NULL;
      
      // WDT related
      void IRAM_ATTR resetModule() {
      	Serial.println("reboot\n");
      	ESP.restart();
      }
      
      void WdtReset()
      {
          timerWrite(timer, 0); //reset timer (feed watchdog)
      }
      
      void StartWatchDog()
      {
          timer = timerBegin(0, 240, true); //timer 0, div 80
          timerAttachInterrupt(timer, &resetModule, true);
          timerAlarmWrite(timer, 5000000, false); //set time in us
          timerAlarmEnable(timer); //enable interrupt
      }
      
      IPAddress ConnectWiFi()
      {
          Serial.println();
          Serial.println();
          Serial.print("Connecting to ");
          Serial.println(MY_WIFI_SSID);
      
          /* Explicitly set the ESP to be a WiFi-client, otherwise, it by default,
             would try to act as both a client and an access-point and could cause
             network-issues with your other WiFi-devices on your WiFi-network. */
      #ifdef ESP32
          WiFi.persistent(false);
          WiFi.mode(WIFI_STA);
      #endif // ESP32
      
          WiFi.begin(MY_WIFI_SSID, MY_WIFI_PASSWORD);
      
      
          while (WiFi.status() != WL_CONNECTED) {
              digitalWrite(LED_BUILTIN, LED_ON);
              wait(500);
              Serial.print(".");
              digitalWrite(LED_BUILTIN, LED_OFF);
              wait(500);
          }
      
      #ifdef ESP32
          WiFi.setAutoReconnect(true);
      #endif // ESP32
      
          return WiFi.localIP();
          
      }
      void before()
      {
      
          StartWatchDog();
      
          // We start by connecting to a WiFi network
          localIP = ConnectWiFi();
          myHostname = WiFi.getHostname();
      
          WdtReset();
      
          Serial.println("");
          Serial.println("WiFi connected");
          Serial.println("IP address: ");
          Serial.println(localIP);
          Serial.println(myHostname);
      
      // do other stuff ...
      
      }
      
      void loop()
      {
         
      
          // check WiFi connection
          if (WiFi.status() != WL_CONNECTED) return; // the WDT is not reset
          WdtReset();
      
      // do other stuff ...
      }
      

      Hope it helps

      posted in Development
      fsgraz
      fsgraz
    • RE: Project enclosures

      This is my temperature-humidity-pressure sensor in a 1151v3wh enclosure.
      IMG_20210228_171133.jpg

      posted in Hardware
      fsgraz
      fsgraz
    • RE: RF Nano = Nano + NRF24, for just $3,50 on Aliexpress

      Hello,

      I use the RF-NANO widely in my sensors. At the beginning of the year I reordered 10 pcs and I got the new version.
      I discovered that between V1 (bought in 2019) and V2 (bought in 2020) D9 and D10 are reversed between the 2 versions.

      V1

      345a0528-8275-4ea3-897c-aab1acaea237-image.png

      V2
      48866489-e593-400c-8bf4-b2cdd5615bd6-image.png

      links:
      https://github.com/emakefun/emakefun-nano-plus/blob/master/RF-Nano/Schematic/RF-Nano-Schematic.pdf
      https://github.com/emakefun/rf-nano/blob/master/RF-Nano-Schematic.pdf

      Hope it helps.
      Franco

      posted in Hardware
      fsgraz
      fsgraz

    Latest posts made by fsgraz

    • ESP WiFi hung solution

      This is how I solved the issue of ESP32 GW hanging when WiFi connection is lost or not established. It is not 100% my original work, it has been put together using bits and pieces, but it works.

      I simply use a watchdog timer:

      #include "esp_system.h" // added for WDT
      hw_timer_t* timer = NULL;
      
      // WDT related
      void IRAM_ATTR resetModule() {
      	Serial.println("reboot\n");
      	ESP.restart();
      }
      
      void WdtReset()
      {
          timerWrite(timer, 0); //reset timer (feed watchdog)
      }
      
      void StartWatchDog()
      {
          timer = timerBegin(0, 240, true); //timer 0, div 80
          timerAttachInterrupt(timer, &resetModule, true);
          timerAlarmWrite(timer, 5000000, false); //set time in us
          timerAlarmEnable(timer); //enable interrupt
      }
      
      IPAddress ConnectWiFi()
      {
          Serial.println();
          Serial.println();
          Serial.print("Connecting to ");
          Serial.println(MY_WIFI_SSID);
      
          /* Explicitly set the ESP to be a WiFi-client, otherwise, it by default,
             would try to act as both a client and an access-point and could cause
             network-issues with your other WiFi-devices on your WiFi-network. */
      #ifdef ESP32
          WiFi.persistent(false);
          WiFi.mode(WIFI_STA);
      #endif // ESP32
      
          WiFi.begin(MY_WIFI_SSID, MY_WIFI_PASSWORD);
      
      
          while (WiFi.status() != WL_CONNECTED) {
              digitalWrite(LED_BUILTIN, LED_ON);
              wait(500);
              Serial.print(".");
              digitalWrite(LED_BUILTIN, LED_OFF);
              wait(500);
          }
      
      #ifdef ESP32
          WiFi.setAutoReconnect(true);
      #endif // ESP32
      
          return WiFi.localIP();
          
      }
      void before()
      {
      
          StartWatchDog();
      
          // We start by connecting to a WiFi network
          localIP = ConnectWiFi();
          myHostname = WiFi.getHostname();
      
          WdtReset();
      
          Serial.println("");
          Serial.println("WiFi connected");
          Serial.println("IP address: ");
          Serial.println(localIP);
          Serial.println(myHostname);
      
      // do other stuff ...
      
      }
      
      void loop()
      {
         
      
          // check WiFi connection
          if (WiFi.status() != WL_CONNECTED) return; // the WDT is not reset
          WdtReset();
      
      // do other stuff ...
      }
      

      Hope it helps

      posted in Development
      fsgraz
      fsgraz
    • RE: What did you build today (Pictures) ?

      Some updates in almost one year.

      I moved all the gateways and controller part in a most suitable locationIMG_20220305_110252.jpg

      I've created a dual current sensor for the fuse box and the inverter. Each Current sensors can withstand 90A max, so I used both channels in parallel. The sensors are defined for both Channel 1, 2 and Sum(Ch1+Ch2) to handle this case easily
      IMG_20210824_172723__01.jpg
      Recently I made an updated version of my Photovoltaic monitor since the 20A that the old one could withstand are not enough now, so the new version is capable of 50A max. Still waiting the Hall sensors though...
      IMG_20220526_175957.jpg
      Finally, I cleaned up a bit the deployment under the bench
      IMG_20220527_161849.jpg but I am not done yet

      posted in General Discussion
      fsgraz
      fsgraz
    • RE: What did you build today (Pictures) ?

      the display node for my camper, based on a Arduino Mega clone
      IMG_20210704_080638.jpg

      posted in General Discussion
      fsgraz
      fsgraz
    • RE: What did you build today (Pictures) ?

      A collection of the sensors and actuators I buit for my camper in the past year

      the power supply system under the dinette seat
      IMG_20210306_181846.jpg IMG_20200308_151728.jpg
      the battery management system (purchased) data are read via wifi by an ESP32, which reports the info to the GW via nRF24L01+.

      a closed look at 2 sensors.
      the one on the left reads voltage and current from the solar PV panel and to the battery management system
      IMG_20210306_181903.jpg
      the one on the right reads voltage and current from/to the start and service batteriers
      both sensors report instant power and energy.

      Fresh water sensor reads the water level, flow and temperature.
      has 4 optcoupled outputs to send the information to the 4 LEDs of the original control panel of the camper
      IMG_20210306_112850.jpg IMG_20210306_112844.jpg

      gray water tank sensor reports water level with an ultrasound sensor. has an optocoupled output to the "full" LED of the original control panel
      IMG_20210316_175523.jpg IMG_20210316_175427.jpg

      bettry supplied temperature and humidity sensor.
      I use it in the fridge but also at home, where I have also one with BME280.
      IMG_20210414_081625.jpg IMG_20210414_081617.jpg

      A fan controller to help the fridge to work better, controlling the condenser temperature using an optical thermometer sensor.
      I have 3 other units, one in the power supply system, one in the closet and one on the roof.
      They are all with a PID controller.
      IMG_20210503_095913.jpg IMG_20210313_153635 (2).jpg IMG_20210313_153612 (2).jpg

      posted in General Discussion
      fsgraz
      fsgraz
    • A few sensors for my camper (pandemic lockdown edition ...)

      IMG_20210306_181941.jpg IMG_20210306_181934.jpg IMG_20210306_181903.jpg

      Charge Monitors
      Batteries Monitor
      Controller and Mobile Router
      IMG_20210306_112850.jpg
      Fresh Water Level Monitor
      IMG_20210313_153635 (2).jpg IMG_20210313_153612 (2).jpg
      Fridge Fan Controller
      IMG_20210305_161539__01.jpg IMG_20210305_161353__01.jpg
      Display

      posted in General Discussion
      fsgraz
      fsgraz
    • RE: RF Nano = Nano + NRF24, for just $3,50 on Aliexpress

      Hello,

      I use the RF-NANO widely in my sensors. At the beginning of the year I reordered 10 pcs and I got the new version.
      I discovered that between V1 (bought in 2019) and V2 (bought in 2020) D9 and D10 are reversed between the 2 versions.

      V1

      345a0528-8275-4ea3-897c-aab1acaea237-image.png

      V2
      48866489-e593-400c-8bf4-b2cdd5615bd6-image.png

      links:
      https://github.com/emakefun/emakefun-nano-plus/blob/master/RF-Nano/Schematic/RF-Nano-Schematic.pdf
      https://github.com/emakefun/rf-nano/blob/master/RF-Nano-Schematic.pdf

      Hope it helps.
      Franco

      posted in Hardware
      fsgraz
      fsgraz
    • RE: Project enclosures

      This is my temperature-humidity-pressure sensor in a 1151v3wh enclosure.
      IMG_20210228_171133.jpg

      posted in Hardware
      fsgraz
      fsgraz