Navigation

    M5Stack Community

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

    Delchi

    @Delchi

    0
    Reputation
    15
    Posts
    897
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Delchi Follow

    Posts made by Delchi

    • Unable to recreate Rock Paper Scissors demo

      Using Core2AWS I am trying to recreate the demo seen at https://www.youtube.com/watch?v=FKJD4hg5CvA

      Due to the lack of documentation I can not easily tell if my problem is using the wrong port, the wrong pin numbers or something else. I have tried to recreate the environment as best I could make out from the video,. Any suggestions welcome.

      posted in SOFTWARE
      D
      Delchi
    • Communicating with UnitV2

      Ahoy all!

      How do you communicate between a CORE2 ( or CORE2AWS ) and a UNITV2 so that you can get tracking information from the camera to the processor? I have run the demo software / web site that comes with the UNITV2 but I do not know how to get that info serially from the camera to the CORE. My goal is to take the tracking info and move servos to keep the camera on a single object.

      posted in Micropython
      D
      Delchi
    • Mysterious power down on CORE2-AWS

      I'm running a CORE2-AWS , powered by USB , with two 180 servos and an OLED module.

      My software does a number of small tasks, nothing too intensive, and the servos do not run at the same time, or very long. The curious part is that at first I had only one servo - and it's job was to rotate the CORE2-AWS while it showed an avatar ( Stack-Chan ). After adding a second servo ( with provided capacitors and breadboard ) suddenly the system had an odd habit of turning itself off w/out any errors or warnings. I tried swapping ports around, but that didn't change anything. I thought also that maybe one of the servos was defective so I swapped it out but again after some time of running it turned off.

      MY current thoughts are that it may be a power issue, but I can not find any info on how to attach supplemental power, nor a recommendation as to what M5STACK module that can take external power that would fit my needs. IT has also been suggested that it might be a software issue, but I can not see any errors, and I have reduced the code quite a bit to like 1 or 2 basic functions and it still happens. If it is a matter of power/overheating/somethign else there are no error logs to look at to see why it shut down.

      Open to suggestions! Any thoughts ?

      posted in General
      D
      Delchi
    • RE: Question about servos

      That's some good info. Is it possible that if it binds that it can cause the controller to shut off? I'm having an issue with that.

      What I ended up doing is making 'servo_init' function that inits the servo making it go to it's home of 90 degrees, then setting a variable and updating it each time I move the servo.

      I'm open to using other servos that keep track of such things, but I dont' see any for sale on the M5stack website and would be clueless on how to attach them / address them.

      posted in SOFTWARE
      D
      Delchi
    • RE: OLED Module with CORE2-AWS fonts/text/libraries for micropython

      @ajb2k3 Good to know. Thanks!

      posted in Modules
      D
      Delchi
    • OLED Module with CORE2-AWS fonts/text/libraries for micropython

      I'm running a CORE2-AWS with the OLED module using micropython via UIFlow, and coding in micropython directly using VisualCode ( not Blockly ).

      Surfing around the net I see a lot of people with large fonts, scrolling and other things in the OLED. Most of what I found is in C / C++ and so on, which I know nothing about. I have found a few libraries, but no documenting on how to use them.

      So far I have made my own side scrolling and vertical scrolling functions, but I'm looking for things like larger / different fonts than unit.OLED has to offer.

      I realize a lot of people are using C and other platforms and such, but to be honest I'm ok with micropython and I'd rater spend my time making things than learning a new language with such a steep learning curve. I'm here to have fun, not re-create the stress of my job during my down time :)

      Any suggestions ?

      posted in Modules
      D
      Delchi
    • Question about servos

      Are there any servos out there that are capable of reporting back what their current angle is? I know there are ways of tracking with code and other tricks, I'm just curious if there is a servo that will tell you if asked.

      posted in SOFTWARE
      D
      Delchi
    • Missing info about emoji

      Running the on line version of UiFlow 1.10.8 for coding, having burned UIflow to my core2 , I have some questions about using Emoji.

      in the GUI you can drag and drop a emoji grid, or a block that sets a specific block in a grid to a color. This is a great start, but there are no blocks for setting the background image , size or anything else.

      If you look at the python code , you can see : emoji0 = Emoji(7, 7, 15, 9) .. I've searched for hours on google but no where can I find the syntax for this. Through trial and error I found that the first two digits are the number of blocks in the grid ( x,y ) but the last two seem to be some kind of scaling of the grid size or something I'm not sure of. Likewise I can find no reference to setting the background image, or doing anything else with the module. The most I can find is how to use unicode to display existing emoji.

      Where are the docs for this ? The only docs I can find stick to using blockly, and do no tell you HOW to change the background image or what that first command does, but they do mention it.

      posted in UIFlow
      D
      Delchi
    • RE: Possible Bug On Image Hide/Show

      @delchi said in Possible Bug On Image Hide/Show:

      Core2Duo
      Firmware : UiFlow 1.7.4.1-Core2
      IDE : UiFlow 1.7.4

      What I'm trying to do :

      • Display image 0 ( PNG , in Flash , 330 x 240 36.4 KB )
      • Wait for Button A to be pressed
      • Hide Image 0
      • Play WAV file ( SD card )
      • Show Label0
      • Wait 5
      • Show Image 0

      What happens :
      Everything works, with the exception of the image show/hide/show. It constantly shows after button A is pressed. Wave file pays, but no change to the image.

      Coded in Blockly,

      0_1618199240915_Capture.JPG

      Python :

      from m5stack import *
      from m5stack_ui import *
      from uiflow import *
      import time
      
      screen = M5Screen()
      screen.clean_screen()
      screen.set_screen_bg_color(0xFFFFFF)
      
      image0 = M5Img("res/Untitled-2.png", x=0, y=0, parent=None)
      
      def buttonA_wasPressed():
        # global params
        image0.set_hidden(True)
        speaker.playWAV('/sd/accepted.wav', rate=44100, dataf=speaker.F16B)
        wait(5)
        image0.set_hidden(False)
        pass
      btnA.wasPressed(buttonA_wasPressed)
      
      image0.set_hidden(False)
      

      Bump ?

      posted in Bug Report
      D
      Delchi
    • Blocky does not seem to differentiate between button a pressed and button a long press

      Core2Duo
      Firmware : UiFlow 1.7.4.1-Core2
      IDE : UiFlow 1.7.4

      In this blockly code, it does not appear to knwo the difference between a button a press and a button a long press.

      When button A is pressed, it does the steps in Button A pressed , then the steps in button A long press. Nothing I have tried makes it do only the long press block.

      0_1618262762555_Capture2.JPG

      posted in UIFlow
      D
      Delchi