Pages: 1 ... 7 8 [9] 10
 81 
 on: Today at 03:10:28 pm 
Started by carlosad1981 - Last post by bubulindo
Sim.

Existe um tutorial para isso na pagina do Arduino. Breadboard Arduino ou ArduinoISP.

Serve para poderes usar apenas uma placa em vez de uma placa para o projecto e outra para gravacao do codigo.

Se tiveres um Arduino, ligas ao USB e metes la o teu projecto.... sem o bootloader isso e impossivel.

Se tiveres um gravador externo o bootloader torna-se desnecessario... mas ainda assim usar o bootloader e extremamente mais comodo.

 82 
 on: Today at 03:09:46 pm 
Started by dise - Last post by Robin2
You can't call sendMessage() from an Interrupt Service Routine. ISRs muct be really really short. In your case it could probably set a variable called (say) readyToSend to true and then loop() would call sendMessage() which would only do anything if readyToSend == true.

Why are you using an interrupt at all?

I haven't studied any other parts of your code.

...R

 83 
 on: Today at 03:08:29 pm 
Started by gpb01 - Last post by ƎR
In compenso ho provato con soddisfazione QUESTO ... un vero gioiellino  smiley-lol
Bello smiley-wink Ma c'è una cosa che non mi piace, ovvero che il pin per passare da modalità AT a NORM non sia gestibile dal micro...
Noto che anche quello lì monta il cc2540 della TI, ho visto che gran parte dei moduli ble che ci sono in giro montano quello.
Volevo studiarmi la lista dei sui comandi AT però nel datasheet ( http://www.ti.com/lit/ds/symlink/cc2540.pdf ) non li vedo e in giro per internet non sono riuscito a trovare una lista completa. Tu che magari li hai già provati, non è che hai qualche link utile? Grazie mille! smiley-wink

Al momento io sto provando a far comunicare due o più moduli ble per ricavare il posizionamento nello spazio, anche se ho già messo in conto che non sarà preciso. (Tutto questo senza smartphone)
Da oggi ho iniziato a provare con i moduli dell'adafruit che avevo postato ieri, funzionano con l'SPI ed hanno una mega libreria per gestirli... Non ho ancora sperimentato molto, però a primo impatto direi che i moduli che montano il cc2540 sono più comodi da usare.

 84 
 on: Today at 03:08:23 pm 
Started by drksam - Last post by omkardokur
Even I get this :

Code:
C:\Program Files\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPPing::receiveEchoReply(const ICMPEcho&, const IPAddress&, ICMPEchoReply&)':
C:\Program Files\Arduino\libraries\icmp_ping\ICMPPing.cpp:177: error: invalid conversion from 'uint16_t' to 'volatile uint8_t*'
C:\Program Files\Arduino\libraries\icmp_ping\ICMPPing.cpp:177: error:   initializing argument 2 of 'void W5100Class::read_data(SOCKET, volatile uint8_t*, volatile uint8_t*, uint16_t)'
C:\Program Files\Arduino\libraries\icmp_ping\ICMPPing.cpp:185: error: invalid conversion from 'uint16_t' to 'volatile uint8_t*'
C:\Program Files\Arduino\libraries\icmp_ping\ICMPPing.cpp:185: error:   initializing argument 2 of 'void W5100Class::read_data(SOCKET, volatile uint8_t*, volatile uint8_t*, uint16_t)'

 85 
 on: Today at 03:07:51 pm 
Started by casemod - Last post by casemod

if by twice as accurate as hardware uart (2x resolution), more portable, less code, and more flexible protocols then you are correct. in fact its about the only way to guarantee reliable operation of 115k at 8mhz. the only place where uart excels is when doing many other things concurrently. even then, using pin ints in conjunction w/softserial reduces that problem.

Care to post your references?

 86 
 on: Today at 03:06:53 pm 
Started by stijnh - Last post by stijnh

1) have you selected the right board?
2) check your wiring?
3) try another USB port of your PC


1 Yup, tried other ones too
2 which wiring do you mean
3 tried all of them + another pc

 87 
 on: Today at 03:05:13 pm 
Started by casemod - Last post by westfw
Quote
a tuned internal oscillator
Note that the "factory calibration" value is for 8MHz +/-10%, at 3V.
In theory, that could be "not good enough" for serial communications.

 88 
 on: Today at 03:00:11 pm 
Started by Anduriel - Last post by Anduriel
Thanks for your answers.

My code in "long stuff" is not relevant. The important is that I just notice a difference between no load and complex calculation.

CrossRoads, I will borrow an oscilloscope to have a better precision, but I just want hove now an idea of the value.
Otherwire, what exactly does your code  smiley-roll-sweat ? It "anologWrite" without using analogWrite?

But does this 150Hz value sounds familiar to you?

 89 
 on: Today at 02:57:56 pm 
Started by JP744 - Last post by Robin2
This is where I learned about strtok().

...R

 90 
 on: Today at 02:57:52 pm 
Started by RudiAhlers - Last post by RudiAhlers
Can anyone help me with this, please?

Pages: 1 ... 7 8 [9] 10