@bobolink FYI to myself
If you have an engineering background--part of Micropython--
module 'dba: calculate dBA (A-weighting decibels) from an input stream of digital audio samples
module 'i2stools': function to efficiently extract sample data from a buffer filled by I2S
Signal processing (logical shifts--fractional multiply) on the PCM samples instead of hardware volume control gets the job done also.
Posts made by bobolink
-
RE: How do you change volume on Core2
-
RE: How do you change volume on Core2
@zontex OK thanks for the reply. I guess you could set the volume of the .WAV files in the pc program “Audacity”.
But user volume control would be nice. -
RE: Please allow jtag or jtag over usb on next version
@thrasher
As always, GPIO 14 is already in use for the display.“All the pins other then GPIO14 are availiable, however for some reason it was used for LCD CS on the M5Stack rendering JTAG unuseable.”
-
RE: Please allow jtag or jtag over usb on next version
@ajb2k3 Of course we are talking about two different levels of debugging.
The BBC micro is also for beginners but allows both.
-
RE: Please allow jtag or jtag over usb on next version
@thrasher But don’t you need the LCD display operating while you use JTAG to debug your code?
Some kind of demultiplexer hardware added maybe? -
RE: Please allow jtag or jtag over usb on next version
@rleinfellner
Wouldn’t you want the JTAG scan path clear for automated factory testing? -
RE: Arduino Debug on ESP32
@cregganna
Bump -
Now (last month) JTAG debugging went free on PlatformIO/Visual Studio Code and Andreas Spiess did a YouTube video on debugging with the Espressif ESP-prog board JTAG interface for the ESP-32.
First thing I did was check into M5Stack Core and found it wouldn't work.
Another version with IO12-15 available for JTAG inline debugging would be necessary and appreciated.
thank you -
Using the DAC to make a tone with M5Stack
Example of using the M5Stack’s DAC to make a tone v.s. Arduino tone()
DAC v.s. Digital pin.
3 sec. DAC v.s. 3 Sec. digital pinsinf() via DAC v.s. Arduino tone(pin, frequency, duration)
-
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
I really like M5ez so I gave it its own core. Justified it by saying that’s real MVC architecture! Real Computer Science stuff.
/*
GLOBAL INFO
core 0 is the communications processor.
Uses the ESP-NOW protocol
on the 2.4 GHz radio
This process runs as a task created
on core 1
core 1 is the UI processor.
Maintains the M5Stack M5ez LCD menu
Runs Arduino setup() and loop()
*/
Use RTOS semaphores when accessing the global vars to/from the local versions. -
[Solved]M5Stack Fire Microphone?
Does the M5Stack Fire have a microphone?
The advertising says it does.
There are internet references to a MEMS BSE3729 mic on GPIO 35. But the I can’t get the Arduino mic example to work. I looked inside and I saw D1 at the enclosure mic hole which which seems to have a different purpose. I can’t find a mic on the schematic but I could have the wrong schematic or don’t know what the mic symbol looks like.
I searched this forum and found a mic+leds+FFT example but that didn’t work either.Could someone provide a link to a schematic with a mic on it and give the ref designation to help me find it on the M5Stack Fire circuit board. If I can find it, I can get it to work.
Thanks
-
RE: M5ez 2.0: testers wanted...
@prickle
You have to load @Rop’s ezTime Arduino library.
Instructions are actually in the upgrade notes but I didn’t read those either. -
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
@r_255
Good luck. I’ll try to post a skeleton example somewhere. But you might start here:
YouTube
Research a mutex for sharing data between processes.
Also, @Rop says he is adding registration of functions to execute from his idle loop.I think M5Stack and M5ez have a great future in remote control of all sorts of things. Using the WiFi radio, IR, BLE, UART, etc.
-
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
@bobolink
I solved the blocking issue by putting the UI on one core and the communications (esp-now) on the other. -
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
@Rop
Ouch!
I forgot M5EZ blocks!
Doesn’t lend itself to a controller at all.
Starting over. -
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
@rop
I’m completing my first project using M5ez/M5stack. A remote control.
I would like to indicate two things on a menu, the current state of the remote equipment and the next state (that will become the current state when the “select” button is pressed and a ESP-Now message is sent/acknowledged).
The next state is your select item black cursor line with reverse text but people might think that is the current state of the remote equipment—if they forget to press “select”. I could automatically send the message after dwelling on a selection after a few seconds like a tv remote. But I’d like to make them explicitly press “select” with this remote equipment.
I now indicate current state by putting it as the first item on the menu and using bold text but a green check mark ✅ or dot ⚫️ would be more assertive. Unless I’m overlooking a better method.
Thanks again for M5ez.
@bobolink -
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
@rop Finally got around to trying the image converter script--works great. Thanks again.
I have a windows 7 machine for HexWorkshop but ...I need to center the image I'm using but I should be able to figure that out.
Also, new a version of your library showed up in the Arduino-IDE library check! Automagically.
-
RE: M5ez, a complete interface builder system for the M5Stack as an Arduino library. Extremely easy to use.
@rop Thank you. I’ll check it out.
I think this is HexWorkshop mentioned above. .EXE for Windows.