jpiat / arduino

112 stars 70 forks source link

Increase the number of characters #15

Open amirezz opened 8 years ago

amirezz commented 8 years ago

Dear jpiat " Hope you are doing well. thanks for your great code it is very helpful. i was wondering of there is any way to increase the number of characters send every time. thanks in advance

carlosascari commented 8 years ago

Hello @amirezz I'm following this project, so I got notified of this issue and felt like passing my 2 cents

I believe the fastest way to increase the speed is by turning the delay from 10ms to 1ms Here is the line for the transmitter.

Here, the delay() function is explained.

If however you are looking for a faster rate, there is a delayMicroseconds() function. Although, there seems to be some caveats

I suppose anything faster that remains accurate cannot be done with arduino alone, you will need a Driver, a separate module whose purpose is to transmit/receive pulses of light a very high rates, and interfaces with the arduino.

sayedhatem commented 8 years ago

Dear @carlosascari Thanks for your interest . but i don't care about the speed now .I use the serial monitor to transmit the data so i need to send more than 32 char each time and here comment line which say i can't 0x02 : STX start of frame N times Effective data excluding command symbols, with N < 32 0x03 : ETX end of frame any ideas. thanks in advance

amirezz commented 8 years ago

Hellow @carlosascari Thanks for your replay . that was very helpful