Show Posts
Pages: [1] 2 3 ... 24
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Turn Serial Monitor Data into Graph? on: August 04, 2014, 06:15:39 pm
This, for starters?
Remember seeing another more advanced for several values with different colors...cant remember where though.
2  Products / Arduino Due / Re: What are the possible PWM frequencies? And how to set them. on: August 04, 2014, 03:11:58 pm
Highly instructive smiley
3  Products / Arduino Due / Re: How attach interrupt timmer with exact time interval on: August 04, 2014, 02:58:51 pm
SD card? SPI, so  keep it out of the interrupt.
As mentioned, you should keep the interrupt to a minimum. Use maybe a Boolean variable toggled inside the interrupt and then write it in the loop with a if( previousVar !=var) kind of thing ? previousVar would be the last known, and saved state
4  Using Arduino / General Electronics / Re: Wiring of 6 pots to Arduino on: August 04, 2014, 02:38:16 pm
Using that many pots, dont forget decoupling caps.  smiley Will allow you to use higher resistance pots and all.
5  Using Arduino / Programming Questions / Re: declaring several arrays (LUTs) on: August 03, 2014, 01:31:22 pm
Thanks .
6  Using Arduino / Programming Questions / Re: declaring several arrays (LUTs) on: August 01, 2014, 03:03:08 pm
No problem.
I meant initial purpose of a "one line solution".
Your way is a new way for me and ill use it
Thanks !
7  Using Arduino / Programming Questions / Re: declaring several arrays (LUTs) on: August 01, 2014, 02:56:52 pm
Defeats the initial purpose  smiley
It was something  that has baffled me. My intention is just to write better code, while readable.
Of course code obfuscating is an art in itself  smiley-cool
8  Using Arduino / Programming Questions / Re: declaring several arrays (LUTs) on: August 01, 2014, 02:47:32 pm
Arduino Due ( Code its working, nuh worries there).
Im getting engulfed in more and more lines of code .
Answer, anyone ?
9  Using Arduino / Programming Questions / declaring several arrays (LUTs) on: August 01, 2014, 12:48:49 pm
Im highly confused with this... and feel like its a silly question, tbh.
Isnt there a way of declaring several arrays of same length in just one line ?
In the style of

uint16_t ii, iii, iiii, iv;

As you can probably guess, they are-to-be LUTs

What im trying to short down is something like this :

uint16_t sin_data[WAVE_SAMPLES];
uint16_t cos_data[WAVE_SAMPLES];
uint16_t saw_data[WAVE_SAMPLES];
uint16_t tri_data[WAVE_SAMPLES];
uint16_t sq_data [WAVE_SAMPLES];

where WAVE_SAMPLES is already defined in

#define WAVE_SAMPLES 512

Thanks in advance
10  Community / Exhibition / Gallery / Dub && Wise Synth on: July 29, 2014, 03:36:05 pm
Just an update on my project
11  Products / Arduino Due / Re: Sampling frecuency of DAC on: July 03, 2014, 01:58:09 am
That code is only writing a value incoming from the serial port directly to the DAC.
 So i ask how are you controlling the frequency ?
how are the values being sent through the serial?
12  Products / Arduino Due / Re: How to set Sinewave with Frequency? on: July 03, 2014, 01:35:24 am
Above the Nyquist frequency. and starts aliasing. So, highest you can achieve should be :
Sampling_rate / 2 = Nyquist frequency
i.e. 44.100/2 =22.050 kHz
13  International / EspaƱol / Re: Mensajes de audio con Arduino, un sistema barato [INFO] on: November 16, 2013, 08:24:34 pm
Usa um RC low pass filter antes de lo altavoce, para limitar la maioria de los artifactos de lo PWM.
Se quiseras, hay postado algo sobre PCM and WAVE, de lo puento de vista de microcontroladores. Solo la introducion a elos... Mas para venir...
Quicas es util para vosotros..
*perdona mi espanol smiley
14  Using Arduino / Audio / Re: How to play Raw audio? on: November 16, 2013, 08:03:22 pm
No experience in streaming data online, but if you have the chance to choose the data format you have a few options...
WAVE PCM 8 bit is unsigned( probably the easiest and lighter to implement on a uC ( good for speech); 16 bit unsigned if you need more quality. Anything else might be a bit too much to handle in real time, specially if the sound is not the main aim of your project/code.
Or just PCM , given the chance, of course !
I started documenting the WAVE format from an embedded pont of view, as an option to an add-on for one of my projects.... Gives you a good insight into other related formats as well  AVI, RIFF and compression related ones, etc.
Hope it comes handy !
15  Using Arduino / Audio / Re: Can Arduino Be Set Up As an Audio Interface in Windows? on: November 16, 2013, 07:53:33 pm
Youd have a lot of problems ... Most audio standards are quite heavy on calculating and sample  if you wanted inputs), heavy on storage and the only lighter ones unbalance things by having compressed formats . You could always do everything on 8 bit unsigned PCM  16 bit is signed already and you dont want to get into IEEE Float format ): ).
Dedicated chips, deffo the way to go ! Unless you want to build a proof of concept. Then go for it !
There is a usb serial audio input with the DUE Forum post, somewhere ( was developed for an oscilloscope if my memory serves me well). But im gonna guess youd still have to deal with the PC processing of things in some way, plus deal with the encoding format youd be using.
As i said, id go for a dedicated chip, unless you want to study it , proof of concept or similar...
Pages: [1] 2 3 ... 24