Navigation

    M5Stack Community

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

    nicenemo

    @nicenemo

    1
    Reputation
    5
    Posts
    1000
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    nicenemo Follow

    Posts made by nicenemo

    • RE: Cannot GET DAC to play sine wave on speaker on Core2

      @felmue Thanks! So then I can add an external speaker or stick a wire on it and use that as the antenna of an AM transmitter ;)
      like in this video: https://www.youtube.com/watch?v=lRXHd3HNzEo

      posted in Lessons and Guides
      N
      nicenemo
    • Cannot GET DAC to play sine wave on speaker on Core2

      Using UIFlow, I don't get the DAC to produce an audible sine wave on the internal speaker. What am I doing wrong? The speaker is not broken, it can play a wav file.

      1. Initialization
      2. I play a wav file from internal flash to confirm that the speaker is working.
      3. I initialize the Dac 0 to port 25. This should be connected to the speaker
      4. I start a sine wave on the DAC with a duration of 0, that should be infinite.
      5. A loop with some code to read and display the ToF sensor.
      6. The code to modify the frequency is omitted. I just want it to play 440 Hz for to sort out this problem. The loop code displays the sensor output changes, no problem there.

      I want to make a Theremin using 2 ToF sensors, the DAC and the internal speaker. PbHub is not working either but there is a bug report elsewhere for that.
      I also noticed I cannot set the speaker volume for the WAV? How to do that?
      Is that the problem?
      See screenshot below:

      0_1612985419639_Dac_not_outputting_sound2.png

      posted in Lessons and Guides
      N
      nicenemo
    • RE: Not possible to connect Pa.HUB on M5Stack CORE2

      I have the same problem with the PaHub and two ToF sensors.
      Firmware Used: v1.7.2-core2

      Simple code to reproduce below. And Screenshot for graphical representation.

      from m5stack import *
      from m5stack_ui import *
      from uiflow import *
      import unit
      
      screen = M5Screen()
      screen.clean_screen()
      screen.set_screen_bg_color(0xFFFFFF)
      pahub0 = unit.get(unit.PAHUB, unit.PORTA)
      tof0 = unit.get(unit.TOF, unit.PAHUB0)
      tof1 = unit.get(unit.TOF, unit.PAHUB1)
      
      label0 = M5Label('Text', x=21, y=13, color=0x000, font=FONT_MONT_46, parent=None)
      label1 = M5Label('Text', x=21, y=71, color=0x000, font=FONT_MONT_46, parent=None)
      
      
      while True:
        label0.set_text(str(tof0.distance))
        label1.set_text(str(tof1.distance))
        wait_ms(2)
      

      0_1612978556386_screenshot.png

      posted in Bug Report
      N
      nicenemo
    • More bases to fit on the new Core2

      From what I understand the Core bases do not fit to the newer Core2 Module.
      Create more Core2 Modules

      posted in Features Wish List
      N
      nicenemo
    • Theremin Antenna sensors with Groove connector

      Having Theremin radio antenna with a Groove connector using i2c would be awesome.

      I am currently trying to building a "Theremin" using ToF sensors. That will probably work but is not the real thing.

      posted in Features Wish List
      N
      nicenemo