Terminé

modifiy array code for arduino due

this is the onley array code that works fine with me on arduino due so I want to modifiy the code to store analog read data from A0 for 1 second in array then print that array on serial monitor.

I want fastest sampling rate as possible even not using analogRead() function if possible because it is very slow.

------------------------------------------------------------------------------------

uint32_t Array[8192];

void setup() {

[login to view URL](250000);

for (int i = 0; i < 8192; i++)

{

Array[i] = i;

}

}

void loop() {

for (int i = 0; i < 8192; i++)

{

[login to view URL](Array[i]);

}

}

-----------------------------------------------------------------------------------------------------------

this next code that works fine with me on arduino mega but not due

---------------------------------------------------------------------------------------------------------

int pin = A0;

int sw = 3;

int index = 0;

int data[5000];

void setup() {

pinMode(pin, INPUT);

pinMode(sw, INPUT_PULLUP);

[login to view URL](9600);

}

void loop() {

if (!digitalRead(sw)) {

unsigned long m = millis();

index = 0;

while (millis() - m <= 500) {

data[index] = analogRead(pin);

index ++;

}

[login to view URL]("totalReads = " + String(index));

for(int i; i<=index; i++){

[login to view URL](String(i) + " : " + String(data[i]));

}

}

}

------------------------------------------------------------------------------------------------------------------------------------

as told before want fast sampling rate as possible

Compétences : Arduino, Electronique, Microcontrôleur, Programmation C, Génie Électrique

en voir plus : sample code iphone app store locator, bmp image write array code, pascal sorting array code, save bmp array code, code upload file store, bitmap array code, java card game array code, j2me code picture blackberry store, add promotional code box paypal store, code sms received store sender time database, google code arduino bluetooth, java hangman array code, code arduino led, code big commerce store, simple bluetooth code arduino, read dtc code arduino, arduino analog read, analog read serial arduino

Concernant l'employeur :
( 1 commentaire ) cairo, Egypt

Nº du projet : #29951656

Décerné à:

Habibece17ruet

Hi, I have read your project description. I think my skills are perfectly matched with your project descriptions. I've worked with several projects based on the Arduino platform, PCB designing, NodeMCU ESP8266, IoT , Plus

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(30 Commentaires)
4.7

7 freelances font une offre moyenne de 23 $ pour ce travail

Yagnik003

Hello Dear, I did good projects on arduino. In c, assembly and arduino language itself. I can help you. Thanks.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(53 Commentaires)
5.1
(39 Commentaires)
5.5
sayonesolutions

Thanks for posting this project. I have experience working on all the mentioned technology and skills. Hoper u would love working with me like other clients. I have experience developing firmware for - Raspberry - E Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(10 Commentaires)
4.3
elect2eng

Hello, I am able to get 10000 samples in a second with UNO, is it enough? please let me know... .................

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(6 Commentaires)
2.7
tamerzedanabdela

Hello sir Hope all is well with you! I'm ready to do this job I have a strong knowledge in Embedded Systems and Microcontrollers Like ARM (Tiva C-STM) and AVR and Arduino and I have A strong knowledge in C programming Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
Omervlg

Hello, my name is Ömer. I am a university student. I am doing many Arduino projects for my job. I could not quite understand what kind of code you wanted. We can discuss more details via chat. Thank you, Omer.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)
0.0