New answers tagged

0

I also have a DS3231 RTC in my robot project. Here's my complete setup code. This can be placed anywhere in setup(): I don't think you have to mess with individual registers to get what you want. if (rtc.begin()) //02/19/19 this now returns FALSE if RTC doesn't respond { Serial.println("Found RTC..."); delay(100); ...


-1

Yes. 1 MB flash is enough for OTA update.


0

RS485 module has resistor 120 Ohm inside


3

Yes, 1MB is fine for OTA. There are, though, a few caveats when working with OTA that you must observe regardless of the flash size: The maximum OTA program size is less than half the available flash size. Typically it is about 500kB. Two copies need to be stored in flash, plus the partition table and NVRAM. The rest of the flash on larger chips is most ...


1

“Multiple definition” means that you have something defined more than once. According to the error message, some methods are defined both in libraries\Adafruit_DRV2605_Library and in your sketch folder. It looks to me like you are trying to use two copies of the Adafruit_DRV2605 library. One of them is properly installed as a library, and the other is within ...


1

I was dumb, turns out it was converting the hex into a int. I sent the array through serial and looked at it.


1

It's easier to follow if you indent it properly. I'll do that, and add comments as I go: void loop() { if ( Serial.available() > 0 ) { // If there is something in the serial RX buffer static char input[inputLength]; // Create a working string to store data in static uint16_t i; // This is the current index in that working string ...


1

I've seen this error a few times and renaming the serial port fixed the problem in my case. I documented the steps in detail in Tip #4 of this blog post: https://gyorgybalassy.wordpress.com/2020/10/16/cant-open-device-com-access-is-denied-arduino-upload/


3

There's a lot of controversy on this issue, but if it works for your needs, absolutely do it! Basically, there are 2 questions you have to answer: Should I use actual Arduino boards in production? The answer is generally "no", simply because you need to customize the boards to add components to support your project, and to make them more robust, ...


2

There is two cases. First you use arduino boards. I would avoid this because it will be more expensive and harder to assemble the product. There is one exception, the new arduino nano family. These boards are made to be easily use in production (they can be soldered as a SMD components) but it's always expensive. The second case is to use arduino software on ...


2

Working from what Ignacio Soler Garcia wrote (which didn't work for me), I tried around and came up with a solution for my case (I downloaded the OneDarkArduino Theme from GitHub): Unpack the theme if it came in a ZIP file copy the folder called "theme" (there should be a bunch of .txt and .svg files in there) paste it into the folder where all ...


0

From your description it sounds like a Watchdog Timer reset. The ESP8266 needs to regularly run internal householding tasks outside of your own code, such as Wifi/network related tasks. It will normally take some processing time for those tasks with every loop() iteration and with every delay() command. If your code is doing things that take longer than ...


1

In my case: I erase the board configurations that was with problem in the file boards.txt. These configurations appears between #### ... board configurations... #####.


0

I don't know how, but finally I have found working solution... I have add HTTPClient http; at top of function and it works... void DB_state(String component,int state){ HTTPClient http; // THIS IS ADDED String postData =("component=" + String(component) + "&state=" + String(state)); Serial.println(postData); http.begin("http:/...


0

I made a Arduino develop board with ATtiny3217, it has a 24-pin VQFN form factor, but as powerful as ATmega328p, with no external crystal and capable running at 20MHz. If this is not suitable for you, look into the new tinyAVR family, they are the new generation of ATtiny with more functionalities than the older ATtiny family with the smaller footprint.


2

First of all find out on which port the Arduino is connected by running the command : dmesg | grep tty. You should get [82893.921017] usb 1-1: cp210x converter now attached to ttyXXX with the ttyXXX COM port. Then check if the port is visible Tools->Port. If the port is not visible then you have a permission issue.


1

I don't know whether it's really the smallest you can find but... The ATtiny84 has an ADC, more digital pins than you need, and is available in 3 mm packages (UFBGA and VQFN). There is also an Arduino-compatible core available for it.


2

Arduino allows you to connect external peripherals (via I2C, SPI, UART, I/O) and shields. It'll be impossible to list them all, as you can even make your own; but here an overview of the most common I can think off: WiFi Bluetooth LoRa Zigbee Z-wave RF (433mhz) InfraRed GSM/LTE It'll be a trade-off between signal range, power usage, delay and bandwidth. Do ...


0

There are two basic things wrong here - one with your understanding of the timings, and the other with your understanding of how IR communication works. First the timings - those are both ON and OFF timings. You don't just turn on for a defined length of time - you turn on for a defined length of time and then turn off for another defined length of time. So ...


1

Which mode of DLMS you are you using? IEC 61107 or currently IEC 62056-21, was an international standard for a computer protocol to read utility meters. It is designed to operate over any media, including the Internet. A meter sends ASCII (in modes A..D) or HDLC (mode E) data to a nearby hand-held unit (HHU) using a serial port. IEC 62056 In your question ...


3

For example – ff9d denotes a value of -99 The function you wrote returns an unsigned integer which, being unsigned, cannot be negative. The simple fix is to declare it as int hexToDec(String hexString) That should be enough to get it working as expected. Note that the local variable decValue still has to be unsigned, otherwise you would get a signed ...


0

SerialBT.begin("ESP32test") is hanging, and because ESP32 doesn't deal well with code that hangs, so it complains about it. ESP32 runs a Real-Time OS (FreeRTOS). The fact that it is a real-time OS means that execution of code needs to be guaranteed to finish within a certain time-frame. You'll often see RTOS functions containing the time limit in ...


0

In combination with Nick Gammon's answer above, I was not aware that the physical pin numbers are different from the digital pin numbers used in the sketch. I resolved my issue by referring to this digital pin map.


0

How old is your chip, or the bootloader on it? Most chips sold (with bootloaders preloaded) - and bootloaders available to upload - for the last several years at least, have uploaded at 115200 baud.


1

This may not be your only problem, but you need a second delay. void loop() { Serial.println("TICK"); digitalWrite(5,HIGH); delay(1000); digitalWrite(5,LOW); delay(1000); // LOW for a second as well } Otherwise you will not be able to see the LOW part, because it will be really quick. I believe that Arduino IDE is attempting to ...


4

There are no programmers for ESP32. It only accepts Serial upload over bootloader. Versions of IDE before 1.8.13 displayed programmers for all board support packages, that is why a programmer could be selected. Now only programmers for package of the selected board are available. But programmers are used only with the "Burn bootloader" or "...


0

The post Capturing avrdude command in IDE gave me the clue. Under Windows the file C:\Program Files (x86)\Arduino\arduino_debug.exe can have its output redirected to files same as a shell command. In the CMD.exe DOS box, I executed: C:\Program Files (x86)\Arduino>arduino_debug.exe >\temp\logfile.txt 2>\temp\errfile.txt and the regular log stuff went ...


Top 50 recent answers are included