Forum Replies Created
-
AuthorPosts
-
MichaelKeymaster
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.
MichaelKeymasterIf you are using the Video Experimenter TVOut library, then you have the source code! It’s distributed as source. See video_gen.cpp.
MichaelKeymasterYes, 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.
MichaelKeymasterWell, it’s hard to say why an Arduino clone doesn’t work. The project works on the official Arduino boards Uno and Duemilanove.
MichaelKeymasterIt’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));
MichaelKeymasterYes, these things are possible with code changes. You can download and modify the code to your liking:
https://nootropicdesign.com/defusableclock/hack.htmlMichaelKeymasterYou 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.
MichaelKeymasterYes, it works on the Uno (all revisions are the same microcontroller).
MichaelKeymasterYes, 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.
MichaelKeymasterYes. Everything you need to know is documented on our site: https://nootropicdesign.com/matrixbackpack/
MichaelKeymasterYes:
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
MichaelKeymasterThere’s barely enough memory to control one panel — you would need twice the memory for two.
MichaelKeymasterthe 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.
September 1, 2014 at 12:33 pm in reply to: Overlay will suddenly disappear when using Object Tracking #2015MichaelKeymasterI 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.
MichaelKeymasterYou 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.
-
AuthorPosts