Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Programm error: assertion "(address & 0x80) == 0" failed on: December 07, 2012, 01:35:00 pm
Quote
...I2C addresses > 127 are not valid.  Which means the assertion is correct and the problem is very likely in your sketch.

I just double checked my sketch. It works perfectly on the Mega 265 board.
The only device using I2C is a two-wire LCD display.
To print a message i use this code:


              lcd.setCursor(0, 0);
              lcd.print(display_line_1);
              lcd.setCursor(0, 1);
              lcd.print(display_line_2);


In other words, I don't have to bodder with adressing.
I just send the text I want to print via the library to the display.

After digging through the tutorials (thank you, great stuff  smiley ), I  have a wild hunch where the problem may come from.
The library is written for a 16mHz and not for a 82Mhz chip:

              // overclcking I2C
              #define CPU_FREQ 16000000L             // (...) - a discuter, car fonction vitesse clock cpu
              #define TWI_FREQ_MCP23008 400000L



Do i have to replace those Lines with the new clock speed?

              // overclcking I2C
              #define CPU_FREQ 82000000L             // (...) - a discuter, car fonction vitesse clock cpu
              #define TWI_FREQ_MCP23008 400000L
   <--- do i need to modify this line too?
2  Products / Arduino Due / Re: Programm error: assertion "(address & 0x80) == 0" failed on: December 07, 2012, 04:32:08 am
Thank you for the fast answer.  smiley

Where do I have to replace the code?
There seems to be no file on my HD, that contains the faulty code.

I'm not that good with Arduino.
Can you give me some additional informations about the cause of the error and wehere it is located?
I understand "address cannot be > 127" but I don't know why the code works on my Arduino Mega but refuses to work on my DUE.   smiley-confuse


Code:
uint8_t TwoWire::requestFrom(uint8_t address, uint8_t quantity, uint8_t sendStop) {

...address cannot be > 127.

3  Products / Arduino Due / Programm error: assertion "(address & 0x80) == 0" failed on: December 07, 2012, 02:50:52 am
After compiling and uploading my scetch to the ArduinoDUE, I get this error message via programming port:

"assertion "(address & 0x80) == 0" failed: file "../source/twi.c", line 261, function: TWI_StartWrite
Exiting with status 1."


I tried to finde the file "twi.c" on my harddrive, but could not finde it.
Is the file located on the arduino?

Is this a known error and what caused it?
4  Using Arduino / Project Guidance / Re: Mixing sounds with Arduino? on: April 21, 2012, 01:03:00 pm
Quote
It doesn't have one.
Hm, right. Instead i could use a GinSing-Shiled (http://www.ginsingsound.com/).


Quote
Is this an assignment you have been given?
No. What i meant was: The sound must (if somehow possible) be created without a external synthesizer. It is an artprojekt for a festival in the desert. And i think a laptop would not survive the extreme conditions.
My target ist to put al the needet parts (Arduino, shield(s), sensors, batteries and the amplifier) in just one case and seal it.
5  Using Arduino / Project Guidance / Mixing sounds with Arduino? on: April 21, 2012, 11:36:01 am
Projekt outlines:
I plan to build an electronic drum with 8 keys.
Sound exaples: http://www.hapitones.com/hapi-drum-sound-samples.html

I use piezo-disks as pressure sensors (i don't use MIDI-software, the sound has to be created in the Arduino itself, or in a shield. MIDI Output would be cool, but is not required):


The main problem is the long reverberation (up to 5sec) of the played notes. Means: If i hit the keys to fast, the arduino must mix the sounds with the other Keys.
As i know, all the available WAV- or MP3-shields can not mix sounds. So i was wondering, if there is a way to create the sound with the build in soundgenerator of the Arduino. Is it possible (and programmable) to mix the different frequecies of each played key (with reverberation or fade out) and play theme?

Or is it possible to use 8 WAV- or PM3-Shields with a Arduino and then mix the output?

Any help is welcome :-)
Pages: [1]