Navigation

    M5Stack Community

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

    Best posts made by holofloh

    • RE: Webserver with UIFlow?

      EZData is just one of the possible data storages. With M5 products it is very easy to use. It is also possibe to use other cloud services. Cloud means "some storage somewhere on the internet". It requires a connection to the internet anyway.

      Some ideas:

      • Use a separate non interupted connection such as LoRa or mobile internet for your battery measurement. Depends on what is possible at your location and what/how you need to communicate.
      • log to a cloud like storage in the local network, powered by battery on mains loss. No access during power loss but all data saved
      • Detect the internet connection loss and log to SD card until the connection is back, then upload all missing.
      posted in UIFlow
      H
      holofloh
    • RE: What is the best Dupont cable size to use with ESP32 Core and Core 2 controllers?

      use GROVE cables for the sensors one comes with every sensor. The MBus interface at the bottom of the core2 is not intended to connect by Dupont lines. If you want to tinker additional hardware to M-Bus then one of the PROTO module might be useful. It adapts the Bus to 2.54mm (0.1") spaced solder points. You are free to use Dupont from there.

      posted in General
      H
      holofloh
    • RE: Limit to 2 Decimals in labels in UIFLOW

      in the section "Text" is a piece that calls "Reduce ... to ... decimal places"

      posted in SOFTWARE
      H
      holofloh
    • RE: m5go World Clock Problem

      Hi,
      your question reads like "my car will not start, what shall I do?". The standard answer to that question is "buy a new car" even if the solution would be as easy as "turn the key" or "fill some gasoline".
      From your description we know you want to have a world clock and you have a m5go. What is missing:

      • The environment you use to code your clock
      • Your code which seems to be the problem
      • the exact error message or a picture of what you call "overloaded"

      please read this post first: https://forum.m5stack.com/topic/535/forum-rules-read-this-first-before-posting

      posted in M5GO
      H
      holofloh
    • RE: Smart Applications of Holography and Robotic Arms myCobot 320 M5Stack-Basic

      Just my comment about the missuse of the words "hologram" and "holography":
      Displaying a stereoscopic or augmented reality image that seems to be floating in the room has nothing to do with holograms or holography. It is impressive YES, but it is NOT a hologram. Why do I know this? Look at my nickname! I have made my own REAL optical holograms for many years. They are made by interfering high-coherent wavefronts coming for a laser source and recording the resulting pattern in a 2D surface. There are different types of setup but all have in common the interference of a reference-beam with a object-beam. See https://en.wikipedia.org/wiki/Holography

      However, mounting a real hologram on a robot arm and move it around is also possible. In case of a hologram that changes its displayed content by the angle of the light source it can be very impressive!

      posted in PROJECTS
      H
      holofloh
    • RE: Atom Lite not connecting as local Access Point on WiFi

      If you compile the example WiFiAccessPoint then it means the Atom turns into a WiFiAccessPoint. If you entering the same SSID and PW as your home Wifi then it means you are creating an additional access point on the Atom with the same name as the existing one. This may be confusing. The IP Address of 192.168.4.1 is the local address of the Atom now. Change the SSID on the Atom to something else to avoid the confusing.
      To connect your Atom to the existing wifi you need a WifiClient sketch or any firmware like UIFlow that has one included. After connection to your home Wifi the Atom gets an IP Adress from your home DHCP Server which is running on the Wifi Router in most cases. This should be one in the 10.0.0.xxx range if this is your home network.

      posted in Atom
      H
      holofloh
    • RE: M5Stick-C display shows the words "Not Found."

      try the following:

      1. set the stick to power OFF
      2. plug in USB (it will automatically power ON)
      3. look in M5Burner (or in your computers device manager) if the serial port appears. If not there is a driver issue on your computer or your USB cable might have broken wires (once happened to me)
      4. if the port appears burn the factory test or UiFlow

      I suppose there no need to put the stick in any special mode to burn the firmware. the internal USB chip will do that for you while the programm downloads. Once the UiFlow Firmware is running you have to set the mode for wifi or usb if not already done while burning firmware.

      posted in SOFTWARE
      H
      holofloh
    • RE: Read PWM Signal from Device

      there are 2 variants:

      A) the PWM signal can be captured by measuring the time ratio between 1 and 0:

      • Put the PWM signal into one of the GPIO. Make sure the voltage is not too high, use a voltage divider and if possible a additional Z-diode for protection).
      • Set the input to an interrupt source for both edges
      • in the INT-routine put the current time stamp into a variable and wait for an oposite edge appears. If you do this in a clever way, the controller can do other things in the mean while (e.g.sending the value over ESPnow)
      • once you have a high and a low time you can calculate the ratio.

      B) integrate the PWM and measure the analog voltage

      • use a R-C circuit to integrate the PWM into a analog voltage
      • divide the voltage by a trimmer potentiometer so that 100% equals full scale of the analog input. If possible use a Z-diode to protect the input
      • measure the analog value by M5Atom
      posted in Atom
      H
      holofloh
    • RE: Read PWM Signal from Device

      100 and 27 Ohm? In this Case you burn 118mA @ 15V or 1.77 Watts in the resistors. They may become a bit hot. Could be better with higher restistance (1k + 270 or 10k + 2k7) as the wasted power is smaller but the divider ratio is still the same.

      • A Capacitor helps to stabilise the voltage on the input. You can also take a few samples / measurements and integrate it in a software loop to get more acurate value.
      • A Zener Diode of 3.3V helps to protect your input. This is very recommended!

      I put a small simulation where you can play around: https://tinyurl.com/2lshs6fj
      (use the slider on right to change the PWM duty)

      posted in Atom
      H
      holofloh
    • RE: DigitalWrite

      This is a normal behaviour. Look at the schematic of the device: https://docs.m5stack.com/en/core/m5stickc_plus the LED is between GPIO 10 and +3.3V (I miss a resistor here but this makes no difference to your issue). As long as the port 10 is "High" (or "1") the LED is hanging between 3.3V and 3.3V from the port and cannot light up. If you set the port to "Low" ("0") the LED is between 3.3V and GND and light up.

      posted in Arduino
      H
      holofloh
    • RE: How can I download my old script from a device?

      You can use the "Device File Manager" in UiFlow.
      0_1678342100164_devman.png

      posted in UIFlow
      H
      holofloh
    • RE: Centre a label on M5Stack

      I assume you have changing text in the label. For the Y-axis set the label manually to the half of screen height minus the half of label height. The X-axis can be calculated by using half of screen width and half of label width label0.get_width().

      posted in UIFlow
      H
      holofloh
    • RE: RGB Leds Crossfade

      This is not an Uiflow specific solution. Try as following:

      • Decide how many steps you want from start color to end color. e.g. 10 steps
      • find the step size from start to end color e.g. you want from value 100 to 200 (difference / steps) = step size 10.
      • loop for the number of steps and increase/decrease the value with the calculated step size.
      posted in UIFlow
      H
      holofloh
    • RE: Random Integer Problem

      According to https://xkcd.com/221/ the random number should be 4 :-)
      In reality a randomizer will just be an algorithm to create numbers and often they get initialized by a timer. So if you always start the same code after reset and read the number it seems to met always the same initialisation. I miss a function to "randomize" the initialisation. Try to do it by any loop/function before that delays in a random way e.g. connection to wifi or read from a noisy AD channel until a specific value is read.

      posted in UIFlow
      H
      holofloh