Michael

Forum Replies Created

Viewing 15 posts - 406 through 420 (of 1,008 total)
  • Author
    Posts
  • in reply to: Audio Delay line #2039
    Michael
    Keymaster

    When you say you hear “echoes” (plural), what do you mean? There is the original signal in realtime and it is mixed with the delay read from memory (this is variable “echo”). I think you just want to hear the delay.

    You should replace this code:

    mix = signal-2048;
    echo = echo >> 1; // attenuate echo
    mix += (echo - 1024); // since we are dividing echo by 2, decrement by 1024
    if (mix < -2048) {
    mix = -2048;
    } else {
    if (mix > 2047) {
    mix = 2047;
    }
    }
    playbackBuf = mix + 2048;

    with this simple code:


    playbackBuf = echo;

    As for using the switches to set the delay, yes, it’s easy to use Arduino digitalRead(pin) to read whether a button is pressed or not. You could use one button to increase the delay, and another to decrease.


    setup() {
    ...
    pinMode(5, INPUT_PULLUP);
    pinMode(6, INPUT_PULLUP);
    }
    ...

    loop() {
    if (digitalRead(5) == LOW) {
    delay++;
    }
    if (digitalRead(6) == LOW) {
    delay--;
    }
    ...
    }

    You probably are not going to be able to drive an LCD while processing audio. The timing of the audio processing must be precise, and peripheral communication using interrupts will mess it up.

    in reply to: Compatability Problems With Iduino UNO? #2038
    Michael
    Keymaster

    If you are using the Video Experimenter TVOut library, then you have the source code! It’s distributed as source. See video_gen.cpp.

    in reply to: How to adjust sync rate #2036
    Michael
    Keymaster

    Yes, that is the file to experiment with. When you buy cheap things on ebay, they are not going to operate within spec, so you will often have problems. It’s hard to support these kinds of devices.

    in reply to: Compatability Problems With Iduino UNO? #2035
    Michael
    Keymaster

    Well, it’s hard to say why an Arduino clone doesn’t work. The project works on the official Arduino boards Uno and Duemilanove.

    in reply to: display of output of ADC #2034
    Michael
    Keymaster

    It’s very easy to display values on the DigitShield, as documented here: https://nootropicdesign.com/digitshield/

    To display the value read by an analog pin:

    DigitShield.setValue(analogRead(pin));
    in reply to: there is the possibility of doing this? #2030
    Michael
    Keymaster

    Yes, these things are possible with code changes. You can download and modify the code to your liking:
    https://nootropicdesign.com/defusableclock/hack.html

    in reply to: Activate the DET button from a distance #2029
    Michael
    Keymaster

    You can certainly run long wires to the button. That will work fine.

    Bluetooth is not going to happen with this device. There are not enough MCU pins available to interface with a bluetooth module.

    in reply to: Basic Video Overlay possible? #2028
    Michael
    Keymaster

    Yes, it works on the Uno (all revisions are the same microcontroller).

    in reply to: Basic Video Overlay possible? #2026
    Michael
    Keymaster

    Yes, that’s possible with some simple Arduino programming. The Arduino site is the best resource for learning how to use analog and digital inputs, and you should find it no problem to use the user input to move the lines.

    http://arduino.cc/en/Tutorial/DigitalPins

    http://arduino.cc/en/Reference/DigitalRead

    in reply to: 32×32? #2025
    Michael
    Keymaster

    Yes. Everything you need to know is documented on our site: https://nootropicdesign.com/matrixbackpack/

    in reply to: 32×32? #2023
    Michael
    Keymaster

    Yes:

    The RGB Matrix Backpack is a small board that connects to the back of an Adafruit 16×32 or 32×32 RGB LED Matrix Panel

    in reply to: Backpack with two LED panels? #2019
    Michael
    Keymaster

    There’s barely enough memory to control one panel — you would need twice the memory for two.

    in reply to: Video tearing left to right #2017
    Michael
    Keymaster

    the code for initializing the Video Experimenter version of TVout is in all the example programs that the library comes with. The Video Experimenter requires the special version of TVout, and the examples demonstrate how to initialize the library.

    in reply to: Overlay will suddenly disappear when using Object Tracking #2015
    Michael
    Keymaster

    I think you’re just going to need to experiment and see what you can do. Just connect your PWM voltage to the A2 analog reference and see what happens.

    in reply to: I need help with a project #2014
    Michael
    Keymaster

    You could write a program on the Arduino that listens to the serial port and writes the data to SRAM. And a program on a computer that writes the data to the serial port.

Viewing 15 posts - 406 through 420 (of 1,008 total)