Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: [posted] Beats by Teensy

  1. #1
    Administrator Robin's Avatar
    Join Date
    Oct 2012
    Location
    PJRC Global Headquarters
    Posts
    270

    [posted] Beats by Teensy

    Forum user Pensive is working on a Beats by Teensy MPC project.
    It's featured on the blog today.

    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.

  2. #2
    Senior Member
    Join Date
    Dec 2014
    Posts
    243
    That's pretty sweet!

  3. #3
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    2,648

    Cool

    Quote Originally Posted by trucdev88 View Post
    wow. impressive.what software did he write this in? and what did he mean by audio board?
    The audio board is:


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


    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:
    Last edited by MichaelMeissner; 10-30-2017 at 02:08 PM.

  4. #4
    Administrator Paul's Avatar
    Join Date
    Oct 2012
    Posts
    286
    This was posted to the website blog some time ago. Here's the link.

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

  5. #5
    Junior Member
    Join Date
    Mar 2018
    Location
    sg
    Posts
    6

    hydreon rain gauge coding issue

    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/rai...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!

  6. #6
    Senior Member
    Join Date
    Apr 2013
    Posts
    1,722
    @ 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

    Code:
    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.

  7. #7
    Junior Member
    Join Date
    Mar 2018
    Location
    sg
    Posts
    6

    ps sorry

    Quote Originally Posted by GremlinWrangler View Post
    @ 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

    Code:
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •