Recent Posts

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

THanks at lot.  That did the job.

Kris aka snestrup2016
12
Programming Questions / Re: websites get data
Last post by PaulS - Today at 02:43 pm
Quote
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()
{
   Serial.begin(115200);

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

   String payload = "1";

   Serial.print("payload: [");
   Serial.print(payload);
   Serial.println("]");

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

   digitalWrite(2, pinState);
}

void loop()
{
}


What does this code show? What happens to pin 2?
13
Portugues / Re: IDE Moderna Gratuita para ...
Last post by alkuentrus - Today at 02:41 pm
Sim, se conseguisses meter NodeMCU era porreiro, sim..
14
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
15
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....
16
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.
VK7EH
Hi, what is your meter's working range?

I was able to read about 500khz using the timer1 and interrupt: https://github.com/PaulStoffregen/TimerOne/issues/38
17
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:
https://www.ebay.com/itm/271489740923
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?
18
Portugues / Re: push botton
Last post by alkuentrus - Today at 02:39 pm
Sim, era o que eu queria dizer :) meti @ por engano. Sorry
19
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
20
Oh yeh!

I was able to do without a library.

https://github.com/PaulStoffregen/TimerOne/issues/38

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