A dead zone in the middle could help.
First of all measure the adc reading with joystick centered, my experience is that this will be close to 511 (for 10 bits) but not equal.
Save this value as...
Type: Posts; User: mlu
A dead zone in the middle could help.
First of all measure the adc reading with joystick centered, my experience is that this will be close to 511 (for 10 bits) but not equal.
Save this value as...
In the loop you set the SoftPWM to the input pins and not the output pins. Will not give any light effects and most likely confuse the inputs also.
Since the Teensy Loader can talk to the board USB must be working, and the SerialUSB should also work if properly configured.
So look for fried code and perhaps other hw connections that might upset...
Perhaps the sound file should be closed before calling playSdWav1.play(combined), it is opened again in this function.
Looks nice, could be very useful when moving from protoboard to more permanent installations
To know where the problem occurs, count the number of received characters on the Teensy side, connect a serial adapter or another Teensy to the HW serialport to receive debug/status information.
Does the application crash or is it just a 'crashing' sound ?
Is the crash momentary or continous ?
Does the sound return to normal when the effect is finished playing ?
Does the issue depend on...
Strange,
I took your sketch, added the Encoder library after installing it, checking version Encoder by Paul Stoffregen v 1.4.2.
Hooked up a cheap encoder on a breakout board with 10K pullup...
Think about both buffer size and bandwidth, and the delay introduced, for every link in your chain of communications.
fill serial out buffer->transmit to BT modem-> BT transmision to receiver -> ...
A very simple measure is number of loops per second with your code active as a fraction of number of loops per second for an (almost) empty sketch.
So the audio interface drivers has the multi client capability mentioned by MatrixRat, the UNO shield gives a single MIDI connection with up to 16 channels, just as the standard Teensy USB MIDI (not...
The DIN from Arduino UNO must connect to some MIDI interface connected to the PC ?
And this has some hardware/software driver layer ?
Did you cut the connection between vusb and vin ?
Why not try serialUSB ?
If you have a number of automations sending conflicting CC values within 10ms then there is a problem with the Ableton setup, and what value this controller really has, and the rest should be...
Without seeing the code we are talking about, its hard to give precise help, but filtering CC messages is not hard.
Keep an array "byte CC_value[chn][CC]", then when receiving a message...
So this is not criticising anyone, just an attempt at finding the bases, and starting at the OP invitation to discussion. I have myself transitioned between developed environments and paradigms so I...
So 5 ns max error after 1 ms is 5 ppm error, and 5 ns after 1s is 5 ppb. The crystal on the Teensy has a 15ppm specification. If you measure the crystal speed with a high resolution time reference...
sloppy of me, corrected :(
Voice1Frequency = 8.175 * powf(1.059463,57+pitchbend/8192.0)
Voice2Frequency = 8.175 * powf(1.059463,67+pitchbend/8192.0)
Voice2Frequency = 8.175 * powf(1.059463,72+pitchbend/8192.0)
...
In text format 13 bit unsigned values are 0 to 8192 so max four characters plus the ',' separator, so max 5 and min 2 characters per sample. Lets say 3 on average.
Anyway if the python in buffer...
Normally shield should be grounded at one end.
Another option is to use current signalling, like MIDI.
Button closure send a 5mA current through an optoisolator, this should be much more...
The IDE 2.0 is rather nice, feel fast and easy to work with, but there are quite a bit of raw edges.
The port selection is forgotten when USB serial is down for reload/reboot, easy to reselect...
Several things, its good with a proper connection from the VIN pin to the VUSB pin, having a two pin header that can be bridged with one of those little caps is very helpful when debugging problems,...
Remember that integers are saved in little endian , least significant byte first.
This is what I get, Teensy 3.0
union outputLora data;
data.timepacketdata.startorfinish = 255;...
Looks good :),
yes the USB serial runs at full USB if the sender and reader can handle this, I routinely sets the baurates at 115200. What is the effective transfer rate, in bytes/s or samples/s,...
the input voltage range for digital pins is 0 to 3.3 V
100mV pp vill not trigger as high level, also make sure to keep voltage above 0V, and below 3.3V
3.3V/250 ohm = 13.2 mA, its like a couple of leds, so should not hurt, but why waste power.
Sending the values in text form is a bit slower and uses a bit more bandwidth, but it is MUCH easier to handle and to monitor and debug any issues. The Serial over USB from T 3.6 to PC is real fast....
I tried the code from original post on a 3.0 and a 3.6.
if (TempString != NULL) refuses to compile, so I replaced it with
if (TempString != "")
then I sprinkled the code with some writes,...
first yes, but no assurance of a complete message, can you post the code with hard coded SerialLine values.
I think its a read timing problem, the void MySerialReader () only reads what is currently in the serial buffer, and if this is not a compete message it is fed to strtok and then discarded. You...
This might be a coincidence, but 1786ms is quite close to 2^30 processor clock cycles at 600MHz, or 2^28 timer ticks at 150Mhz. Just a wild hunch ... a missed timer somewhere.
The code checks if cycle_start pin is HIGH and calls cycleStart() that sets the output pins and led high.
You need to check when the cycle_start pin goes low to turn off the leds, or use a timer...
In UP mode you always turns relays off before setting them to correct value, that will cause spikes
if(num > PrvNum){
Serial.println("UP");
PrvNum = num;
for (int i =...
This is slightly confusing exactly how are the Teensy, Nextion and optocouplers connected ? Which pin is input from Nextion, and which is the corresponding output from Teensy ?
You have 16 leds in the matrix and 24 steps per beat, that makes it a bit tricky to count the beats, every beat is 24=6*4 steps that is one and a half full matrix of steps.
Also the lastTime...
Time libraries are supposed to be able to handle times before 1970, so the times can be represented as negative numbers.
If you are sure that your use of time is after 1970 you can...
All interesting but the OP problem was USBMIDI is to fast for i2c, and yes what I felt was USB MIDI client
Perhaps filter the incoming midi data, keep the latest master values of controllers and only update changes to the slave every ... say 1 ms or send as often as the i2c can handle dependent on how...
You will not do any ISR based timing at more than a fraction of the processor clock divided by ( ISR setup cycles + ISR execute cycles + ISR return cycles). This might be fast compared to audio...
Looks like binary data is received and not converted to printable form ... but
How can anyone help without knowing anything about the code you are actually running, or what dta you are supposedly...
Its a queue with maximal size equal to sample window, so a ring buffer should work fine. My guess is that on average the length should be something like 2log(N), if the values are a bit randomly...
The key to understanding the algorithm are the following properties of the list L of (sample volume, sample index) pairs
* L is always sorted by increasing sample index/sample time since we only...
Serial.peek() ??
Sorry that's the first, you probably have to read them as they come in to a buffer and process the when them end markers arrive
I assume you want the data in descriptions array to be in binary format, in that case they must be prefixed with 0b like
0b0000011100000111,
Your program only outputs the data once in the...
Not necessarily, your frame rate calculation is just valid for the image transmission, but the sensor array has a minimum exposure time in order to create a useful image, that would be the frame time...
Do I get the picture right, the camera is above the hammers, is this a standing piano so the camera sees the edge of the hammers, or is like a grand piano so the camera sees the top/back of the...
Here is a ring buffer variant to test also
/* Control a set of solenoids with MIDI
* Note on messages trigger solenoids, and they will be turned off after a certain amount of ms has passed
...
Its not my project, but I agree that this a could be a good way to handle something like 100 solenoids, a number to big for the Teensy pincounts. In this case there would be a solenoid array, or...