Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
3

The size of the text file and the size of your compiled code are impossible to relate. The compiled size purely depends on what your code consists of, not the size. To find out how much room your code will take on the chip you need to compile it. The IDE will then tell you how much flash and RAM it takes. For example: Sketch uses 3730 bytes (13%) of ...


3

Well first of all you are trying to name the variable char? which is already a keyword for the variable type of char. But you can access it by the index of the array. Also not sure if you intended to make the array 8 bytes in length, and then only use 7, but thats what you had done in your example //define it all at once // byte byteArray[8] = {B10000,...


2

You can use the following array initialization: In the setup I shows how to set a bit. For this, the bit operator or (|) is used. To reset a bit, you can use &. You can set/reset multiple bits this way. Also you can use 1 << 2 which means 1 (most right bit) shifted left two places (thus B100). Btw, it is common practice to initialize all values. ...


2

From the bottom to the top of the RAM, you have: the .data section (statically allocated initialized variables) the .bss section (statically allocated non initialized variables) the heap (dynamic allocations with malloc() and new) free space the stack (return addresses and automatic local-variable allocations) See the memories of an Arduino for a more ...


2

Note, this answer is not MY answer, but approximately the combination of the first 5 comments from my original question. What I did was: (Juraj) Changed the compiler version to 6.21 (juraj) Added an F in F(__FILE__) (KIIV) Removed func; this did not work with the F flash helper, but I can find back the code anyway unambiguously because of the file name + ...


1

This is a known problem with those chips (especially Chinese clones). It is caused when a chip gets stuck in TX mode waiting for an ACK that never arrives back. The chips don't have a "reset", but switching them into low power mode and then back on again, which doesn't affect any register settings, aborts the current TX operation. RF24Network is merely a ...


1

The problem lies here: if (bluetoothByte == 1) { dithang(); else if (bluetoothByte == 0) dunglai(); else if (bluetoothByte == 2) lui(); else if(bluetoothByte == 3) quaytrai(); else if (bluetoothByte == 4) quayphai(); else if (bluetoothByte == 5) batcoi(); else if (bluetoothByte == 6) batden(); } You open the first if statement with a bracket {. This ...


1

I understand your doubt. In a world where Uno WiFi i not Uno it is better to ask. And the Wawgat boards which are named Uno but use a different 8-bit MCU are a trap too. The Nano in your link has Atmega 328p and interrupts are a feature of the MCU. There is no reason for the clone manufacturer to not use the standard Nano pinout as specified in Open ...


1

This stops when I touch ground with my finger or when the arduino is connected via USB to a computer. It sure sounds like a grounding problem, probably between the PC and the Arduino. Try connecting the Arduino ground and the PC ground - my guess is that the problem goes away. All of the electrical components in a system need to share the same ground for ...


1

It is possible you have too many resistors on the RS485 bus. From the RS485 wikipedia page there is this quote: Ideally, the two ends of the cable will have a termination resistor connected across the two wires. This may explain why you can use 2 of your RS485 interfaces but not 3. Consider removing the resistors from the RS485 board in the middle ...


Only top voted, non community-wiki answers of a minimum length are eligible