Recent Posts

Pages: 1 [2] 3 4 ... 10
Programming Questions / Re: Getting DEVICE ID
Last post by snestrup2016 - Today at 02:43 pm

THanks at lot.  That did the job.

Kris aka snestrup2016
Programming Questions / Re: websites get data
Last post by PaulS - Today at 02:43 pm
yes, not working properly
The next step would be to edit the String class' toInt() method, to add some Serial.print() statements, to learn why it does not work. There is nothing in the code you posted to suggest why toInt() is failing. The input looks good. The output should be something different from what is actually output.

But, before you go there, create a simple sketch.

Code: [Select]
void setup()

   pinMode(2, OUTPUT); // Set GPIO2 as an OUTPUT.
   digitalWrite(2, 0); // Start off.

   String payload = "1";

   Serial.print("payload: [");

   int pinState = payload.toInt();
   Serial.print("pinState: ");

   digitalWrite(2, pinState);

void loop()

What does this code show? What happens to pin 2?
Portugues / Re: IDE Moderna Gratuita para ...
Last post by alkuentrus - Today at 02:41 pm
Sim, se conseguisses meter NodeMCU era porreiro, sim..
yes the m is rapidly incrementing. and if i increment the value of m when s becomes zero the problem will be at the very first when program run it will execute the loop without completing the 60 second cycle
Portugues / Re: Botões e programa
Last post by alkuentrus - Today at 02:40 pm
Penso que vais ter de separar as questões por funções e fazer as respectivas invocações. Senão em código "esparguete" vai ser complicado....
Hi all, looking for help with a code error. (I can handle the electronics but code is not my strong point).

I have copied manually the Frequency Counter source code from the book "Arduino Projects for Amateur Radio" and when I do a verify I get the following error;

"FreqCounter" has not been declared.

I have attached my source code and wonder if anyone can give me some guidance please.

Cheers, Rod.
Hi, what is your meter's working range?

I was able to read about 500khz using the timer1 and interrupt:
Microcontrollers / Re: programmer for Atmega 328
Last post by pert - Today at 02:39 pm
- I would like to know between the microcontrollers PIC and AVR which is the best?
There are advantages and disadvantages to each, which have already been thoroughly discussed on the Internet. As far as the Arduino world goes, AVR is better because it has much better support. You can add support for some PIC microcontrollers but you won't find as many Arduino libraries that that work with PIC, you won't find as many Arduino tutorials for PIC, and you won't find as many people here on the forum who can help you with using your PIC.

ie how do I know that I need 40 pins instead of 28?)
If your project requires more I/O pins than the 28 pin chip can provide, then consider using the 40 pin chip. In the AVR world, 28 pin chip usually means the ATmega328P and 40 pin usually means the ATmega1284P. In addition to more I/O pins, the ATmega1284P also has more memory. So you might consider using the ATmega1284P for a project that requires more memory even if it doesn't need the extra I/O.

- Can you advise me a programmer for AVR and PIC microcontrollers (especially those who have pins on 4 sides).
You can use an extra Arduino board as an "Arduino as ISP" programmer for the AVR. If you want to buy a dedicated ISP programmer for AVR, I recommend the 6 pin USBasp:
The microcontroller's IC package makes absolutely no difference to your choice of a programmer.

As for a programmer for PIC, I have no clue. Do you see how that goes?
Portugues / Re: push botton
Last post by alkuentrus - Today at 02:39 pm
Sim, era o que eu queria dizer :) meti @ por engano. Sorry
Deutsch / Re: Arduino Due 16bit Variable
Last post by Tommy56 - Today at 02:37 pm
Mit Serial.println('var', HEX); bekommst Du diese Ausgabe garantiert nicht.
Probier mal als Typ int16_t. Es kann matürlich auch sein, dass für die Ausgabe in int gecastet wird und int ist da 32 Bit breit.

Gruß Tommy
Oh yeh!

I was able to do without a library.

Thank you!
Pages: 1 [2] 3 4 ... 10