Search results

  1. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    Hi ! A small adjustment with BAUD at 921600 and delay, now it works perfectly. Thank you very much for your patient and for taking the time to explain to me :) //Teensy 4 Master #define HWSERIAL Serial5 void setup() { Serial.begin(115200); HWSERIAL.begin(921600); } void loop() {...
  2. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    Well, I do get a response when I start teensy, but then the reception freezes. But it's starting to be interesting Receided :Hello World...Hello World...Hello World...Hello World...Hello World...Hello World...Hello World...Hello World...Hello World... Receided : Receided :
  3. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    Better ? // set this to the hardware serial port you wish to use #define HWSERIAL Serial1 void setup() { Serial.begin(115200); HWSERIAL.begin(9600); } void loop() { HWSERIAL.print("Hello World..."); delay(1000); // do not print too fast! }
  4. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    I looked at the "Using the Hardware Serial Ports" page and I understood for Serial1 Serial2...
  5. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    Thanks for your helps. I try this but don't work void setup() { Serial.begin(115200); } void loop() { Serial1.println("Hello World..."); delay(1000); // do not print too fast! }
  6. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    I know, this is only an example I found on Youtube for an Arduino UNO and I understood that it is not the same. I start and I learn. What do i need to change ? Thanks https://youtu.be/YVPumD16Y_Y
  7. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    Yes, I did not specify but I connected the ground of both together
  8. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    Hello, because you have to start somewhere, the famous Hello World But it doesn't work I am connected on the Teensy 4 to RX1 (pin 0) and TX1 (pin 1), on ESP32 to RX2 (GIOP16) and TX2 (GIOP17) I guess it's not so simple. Thanks, and best regards Teensy master void setup() {...
  9. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    Hello, I swim a little ... More simply, how to send a MIDI note from a Bluetooth from a Teensy, regardless of the use module HC-06 Adafruit BLE ESP32 ... Thank you so much
  10. S

    Teensy 4.1 master and ESP32 in Slave, possible ?

    Hello. I am working on my Hanpan project with FSR Pads and everything is working fine. I can connect it to a PC or a phone via USB. But I would like to add a bluetooth connection and I have an ESP32 card. Is it possible to place the ESP32 card as a slave? What solution to send a midi signal in...
  11. S

    MIDI NoteOn remains pressed

    I guess my problem is from here ? void buttonCheck() { ////// Change Octave ////// octaveUp.update(); octaveDown.update(); //if Button 3 is pressed, increment octave if (octaveUp.fallingEdge()) { octave_index++; if(octave_index > 2) octave_index = 2; }...
  12. S

    MIDI NoteOn remains pressed

    Hi, I'm making good progress on my HANPAN project but I'm stuck on this. When I change scale it works: NoteOn ,ch: 1 , Note: 57, Velocity: 90 NoteOff ,ch: 1 , Note: 57, Velocity: 0 NoteOn ,ch: 1 , Note: 55, Velocity: 70 NoteOff ,ch: 1 , Note: 55, Velocity: 0 the noteOff is well stored and...
  13. S

    Soundfontdecoder compatible with Teensy 4.0?

    Hello, that was it! PROGMEM were missing before static const. Now it works for all my SF2 files. Thank you very much for your help. I have a lot of fun with my Teensy 4.0.
  14. S

    Soundfontdecoder compatible with Teensy 4.0?

    Thanks for your help. PROGMEM was indeed missing in the .cpp file and .h is correct #include "flut_samples.h" PROGMEM static const uint32_t sample_0_flut_flut1[80000] = { #pragma once #include <Audio.h> extern const AudioSynthWavetable::instrument_data flut; but I still get the same...
  15. S

    Soundfontdecoder compatible with Teensy 4.0?

    Thank you for your help. I just learned to use Python and it works. I made with python a new version of SoundfontDecoder.exe. Now the code is different with the .h and .cpp files. and it looks ok. But now I have a different error: SimpleWavetableTEST.ino.elf section `.data 'will not fit in...
  16. S

    Soundfontdecoder compatible with Teensy 4.0?

    I saw that I had 2 versions of Arduino, so 2 files. So I deleted the one that was present in the download folder and use the one in Programs (x86). I have a 64-bit version of Windows, does that change anything? Arduino : 1.8.12 (Windows 10), TD: 1.52-beta3, Carte : "Teensy 4.0, Serial, 600 MHz...
  17. S

    Soundfontdecoder compatible with Teensy 4.0?

    It' true, it's more complete. Could it be a problem of compatibility or access to the file? Tanks. Arduino : 1.8.12 (Windows 10), TD: 1.52-beta1, Carte : "Teensy 4.0, Serial, 600 MHz, Faster, US English" C:\Users\Utilisateur\Downloads\arduino-1.8.12-windows\arduino-1.8.12\arduino-builder...
  18. S

    Soundfontdecoder compatible with Teensy 4.0?

    Hello, I am using a windows 10 with 64 bits, a Teensy 4.0 card and an Audio board. I use the SimpleWave.ino example with one of the files found in the soundfontdecoder bank, Celesta, to start and understand. Then I would like to use files created with Polyphone. So I replace Flute_100kbyte with...
  19. S

    bug with piezo and wav file

    Better like this ? void loop() { int piezo = analogRead(A0); int velocity = map(peak, thresholdMin, 1023, 1, 127); I changed that and I have better sensitivity. The volume changes depending on whether I hit low or a little louder on the piezo. But I imagine it is not very good. if (state ==...
  20. S

    bug with piezo and wav file

    Well, I have this result. It is not very beautiful but it works. I have a problem with the velocity which is very bad. If I tap the Piezo with my hand, I don't have a volume variation, but with a pencil it works. What should I change? Thank you :) #include <Audio.h> #include <Wire.h> #include...
  21. S

    bug with piezo and wav file

    I used the PiezoDrum example in the Teensy library. I deleted the MIDI code and adapted it for the audio. I also deleted the HelloDrum library. I manage to play an audio file with the Piezo but I would like to add velocity to it. What should I change? #include <Audio.h> #include <Wire.h>...
  22. S

    bug with piezo and wav file

    I did a test with a different version without the wav of the SD card but with an h file. So I used the SamplePlayer example from the library that I modified to use it with a Piezo. Just to be sure that it is not an SD card that is corrupted. I always have the same result. Has anyone ever tried...
  23. S

    bug with piezo and wav file

    Thanks for your help. I don't use the same code for buttons and piezos. I use the examples available with the Teensy Audio library. Here is the helloDrum.h file and a link to the entire library for more details. https://github.com/RyoKosaka/HelloDrum-arduino-Library /* " HELLO DRUM LIBRARY"...
  24. S

    bug with piezo and wav file

    It works fine, but sometimes it becomes unusable because it sometimes becomes unresponsive or crashes with the worst sound. It is easy to crash if you hit repeatedly.
  25. S

    bug with piezo and wav file

    Sorry, I hadn't seen for the stars in the code. The person who wrote the code says it also has a problem with wav files. He thought that the Teensy 4.0 version would correct the problem. I don't think there is a problem with my piezos. /* EXAMPLE - Teensy Simple WAV Player with Teensy...
  26. S

    bug with piezo and wav file

    I also did the test with buttons and it works perfectly. I think there are a few things that don't work with piezos and wav. This is why I ask if others have the same bug.
  27. S

    bug with piezo and wav file

    Hello, I tested with several diagrams and other audio files with lower frequencies. Always the same result. Does anyone have a working example with a wav and a piezo? Is it only me who have this bug? Is this an already known problem? I specify that this problem is also encountered with...
  28. S

    bug with piezo and wav file

    Hello. I am testing HelloDrum library with Piezos sensors. But it has a bug when using wav files. When you quickly type on a Piezo the wav file freeze a few seconds before working again. It's a bug that the creator of it has recognized. He is using a teensy 3.2 and he hoped it would work...
  29. S

    Simple Piezo, wav and Teensy 4.0

    Well, I just did a test with another sd card. She's old and not very fast but it works to do a simple test. At least I now know where the problem is coming from. Thank you for your reply.
  30. S

    Simple Piezo, wav and Teensy 4.0

    For more details, I use a class 6 SD card with 16 GB. Is it fast enought ? I don't think the problem is with the SD card. I did a test with this code and the audio file plays without problem. https://github.com/PaulStoffregen/Audio/tree/master/examples/Tutorial/Part_1_03_Playing_Music Thanks
  31. S

    Simple Piezo, wav and Teensy 4.0

    Hello. I'm starting with Teensy 4.O and Audio Shield, I have some basics with Arduino. To start I would like to play a short wav (drum for example) with a Piezo. Do you have an example please ? I found this code for Teensy 3.2 but it doesn't work for me. I did a midi test with the example in...
Back
Top