the first sketch works, with M5Stack basic, if I modify the M5Stack.cpp library from:
// TF Card
if (SDEnable == true) {
SD.begin(TFCARD_CS_PIN, SPI, 40000000);
}
to
// TF Card
if (SDEnable == true) {
SD.begin(TFCARD_CS_PIN, SPI, 10000000);
}
Hi Felix,
Sorry for the delay... my STAMP_PICO project was momentarily shelved but I just resurrected it and found your response.
I will definitely try your suggestion since I would like to keep the native port to flash but I need another UART.
Thank you!
Hello @Caterpillaraoz
you could try something like this every time you want to log something:
Serial.begin(115200);
Serial.println("Hello World");
Serial.end(true);
ModbusRTUClient.begin(115200, SERIAL_8N1);
Please note that all debug output you send this way will also be sent to the Modus RTU server. This could potentially lead to unwanted results, should the parser in the Modbus RTU server choke on it.
In addition you'll see everything the Modbus RTU server is sending back in the log as well.
As an alternative you could use a second serial connection for debug output through one of the Groove ports using a separate USB Serial converter. E.g. like this:
Serial1.begin(115200, SERIAL_8N1, 16, 17);
Serial1.println("Hello world");
Thanks
Felix
@felmue
Awesome!!
I had seen that tutorial before. The part I was missing is adding that additional board manager URL. That gave me my examples in the right place, compiled and uploaded.
Thanks a lot for your help. I had spent a couple days trying to solve it different ways.
Thanks!
@rodberry said in Mozzi sound synthesis library for Arduino - how to make it work on the Core2:
@oscillator congratulations Staffan, I'm a year late to the party but just wanted to say this is a lot of fun and I really appreciate the thorough documentation and the very readable code (speaking as a C-phobic beginner programmer).
I'm planning to make this into a module for my AE format modular synth. For now, I'll start by just feeding it into a converter but will eventually get the other components organised to make it work nicely in the system with my other modules. At least you have given me a nice wagon to fall off! :)
Cool, I am glad you find it useful! The AE modular seems great.
I can also recommend the Daisy Seed, for which I've done a few projects:
https://www.oscillator.se/opensource/#daisy
Good luck with your projects -- and your music! :)
Hello @Gorilla
thank you for reporting back. I am glad you figured it out. And yes, there were some recent changes to the EXTIO2 library regarding I2C so getting the latest is key.
Thanks
Felix
Hello @Marelli7
you are welcome. I sounds like you are having fun. And thanks for reporting back. I am glad to hear you got it working to your liking.
Thanks
Felix
Hi,
You wrote: Once the M5Stack is powered off, only the CAN information can no longer be read. So the solution is easy: Power ON the M5 device!
Or do you mean OTHER devices on the same CAN are not able to read data WHILE M5 is OFF? In this case it might be possible that the CAN transceiver in the Commu is still powered (check that!) but miss the input signal. According to the datasheet of the CAN driver chip the bus output is dominant while TXD and S pins are LOW. This blocks the communication of other devices. It may help to solder the pin 8 of the transceiver to +3.3V instead of GND to enable silent mode (switch it to Rx only) or make sure the commu is not powered. The bus driver is then going to float (Off Mode) and should not block the communication anymore.