PDA

View Full Version : [posted] Beats by Teensy



Robin
08-17-2017, 06:49 PM
Forum user Pensive is working on a Beats by Teensy MPC project.
It's featured on the blog today (https://www.pjrc.com/beats-by-teensy/).

Pensive describes it as a bastard child of an MPC and the DJ Tech Tools MIDI Fighter. While he describes it as a work in progress, it is functional with more features being planned. The video gives a pretty good overview of it's current functionality.

jwatte
08-17-2017, 08:21 PM
That's pretty sweet!

MichaelMeissner
10-30-2017, 01:57 PM
wow. impressive.what software did he write this in? and what did he mean by audio board?

The audio board is:

https://www.pjrc.com/store/teensy3_audio.html


He mentions attaching flash memory to the audio board to hold samples. There are two different chips listed on the audio board page:

https://www.pjrc.com/teensy/W25Q128FV.pdf
https://www.pjrc.com/teensy/23LC1024.pdf


In terms of software, the basis of much of the software is presumably the audio library. If you haven't done so, you probably should watch the tutorial on the audio library:

https://www.youtube.com/watch?v=wqt55OAabVs&t=258s
https://hackaday.io/project/2984-teensy-audio-library

Paul
03-17-2018, 07:59 PM
This was posted to the website blog some time ago. Here's the link.

https://www.pjrc.com/beats-by-teensy/

ivan bingu
03-20-2018, 03:38 AM
Hi paul,
im currently connect my teensy board(2++) to my rain gauge (hydreon) and there's no output(serial monitor) for my arduino 1.8.5 whenever the hydreon (tipping bucket mode) activated.
im unsure whether this is correct cause im following this website (http://cactus.io/hookups/weather/rain/hydreon/hookup-arduino-to-hydreon-rg-11-rain-sensor) and i need help in term of the pin/coding whether it's correct ornt.
my pin is connect to f7 on the teensy board 2++

this is my coding

#define BOARD "Teensy++ 2.0"


#define RG11_Pin 45
#define Bucket_Size 0.01

volatile unsigned long tipCount; // bucket tip counter used in interrupt routine
volatile unsigned long ContactTime; // Timer to manage any contact bounce in interrupt routine


long lastCount;
float totalRainfall;
float AverageperTime;

void setup() {

lastCount = 0;
tipCount = 0;
totalRainfall = 0;
AverageperTime = 0;

Serial.begin(1200);
Serial.println("Hydreon RG-11 Rain Sensor");
Serial.print("Bucket Size: "); Serial.print(Bucket_Size); Serial.println(" mm");

pinMode(RG11_Pin, INPUT); // set the digital input pin to input for the RG-11 Sensor
// attach interrupt handler to input pin.
// we trigger the interrupt on the voltage falling from 5V to GND

sei(); //Enables interrupts
}

void loop() {
// we only display the tip count when it has been incremented by the sensor
cli(); //Disable interrupts

if(tipCount != lastCount) {
lastCount = tipCount;
totalRainfall = tipCount * Bucket_Size;
AverageperTime = totalRainfall / tipCount; //This is the code i wrote
Serial.print("Tip Count: ");
Serial.print(tipCount);
Serial.print("\tTotal Rainfall: ");
Serial.println(totalRainfall);Serial.println("mm/hr");Serial.println(AverageperTime); //Test it out see whether can work

}

sei(); //Enables interrupts
}

// Interrrupt handler routine that is triggered when the rg-11 detects rain
void rgisr () {

if ((millis() - ContactTime) > 15 ) { // debounce of sensor signal
tipCount++;
ContactTime = millis();
}
}
// end of rg-11 rain detection interrupt handler


Thank you!

GremlinWrangler
03-20-2018, 08:57 AM
@ ivan - create a new thread with your question rather than polluting this one,

It will be easier to read if you use the code tags make the code more readable



like this - by pressing the '#' button in the menu bar while writing the post


Also, while Paul knows many answers addressing your question at him means you cut yourself off from everybody else who might help, if being polite address the forum as a whole.

When you create the new thread, can you add:
Do you see serial print at all from other code, such as the serial print examples
Have you confirmed the input switch works correctly (by say digitalreading f7 and writing to the LED)

The actual code is also a problem since it spends most of it's time with interupts disabled while the tipper detection depends on interupts working. This can probably be re written as a very simple modification of the digital input example.

ivan bingu
03-21-2018, 12:07 AM
@ ivan - create a new thread with your question rather than polluting this one,

It will be easier to read if you use the code tags make the code more readable



like this - by pressing the '#' button in the menu bar while writing the post


Also, while Paul knows many answers addressing your question at him means you cut yourself off from everybody else who might help, if being polite address the forum as a whole.

When you create the new thread, can you add:
Do you see serial print at all from other code, such as the serial print examples
Have you confirmed the input switch works correctly (by say digitalreading f7 and writing to the LED)

The actual code is also a problem since it spends most of it's time with interupts disabled while the tipper detection depends on interupts working. This can probably be re written as a very simple modification of the digital input example.





So sorry about the mistake i've made cause i am a new user here. i will create a new post or thread.
Thanks alot!