-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem using hifi mode with serial communication #11
Comments
Hi Jaap, |
Hi Tim, Thanks a lot for your quick response. I was expecting it to be something I am just using Serial.read indeed. There is a copy of my scripts below: Cheers, Jaap ---------------------------------------------- first arduino/* #include <PinChangeInt.h> uint8_t latest_interrupted_pin; // the following function is called when an interrupt occurs void setup() { uint8_t counts; void loop() { Serial.write(counts); //send speed interrupt_count[PIN1] = 0; ------------------------------------- mozzi arduino/* next step: output pin: 9 */ //#define AUDIO_MODE HIFI // use: Oscil <table_size, update_rate> oscilName (wavetable) // use #define for CONTROL_RATE, not a constant void setup(){ void updateControl(){
val = 255; // test the sound, when arduino with encoder is not } int updateAudio(){ void loop(){ On Fri, Jul 19, 2013 at 7:39 AM, Mr Sensorium notifications@github.comwrote:
|
Hi Jaap, |
That's great Tim. I can't really try it out tonight, as I'm camping for the weekend. But I'll test it as soon as I can get my laptop online (and out of sight of my wife ;-). Jaap Mr Sensorium notifications@github.com wrote:
|
Hi,
First of all my compliments for this brilliant library.
I am using mozzi to create an electronic hurdy gurdy, where I am generating the sound of two strings with mozzi, based on the speed of an encoder. I use 1 Arduino for running mozzi (Duemilanove with ATmega168), and a second Arduino to read the encoder (Arduino Pro Mini 328), because I didn't want to mess up Mozzi with the interrupts that I need for the encoder.
On the second Arduino I calculate the speed of the encoder, and I send it over a serial link to the first arduino, to change the sound based on the speed.
I set everything up in 'standard' mode, and it was working fine (except for my wife complaining about the high-pitched squeal). Then I switched to hifi mode, including the proposed filtering. I checked this on a single Arduino, and it works fine.
BUT: for some reason my serial communication has stopped working. I have double checked, and it seems that switching to hifi mode kills my serial communication. Is this a known fact with an existing work around? Advice is much appreciated.
Jaap
The text was updated successfully, but these errors were encountered: