New answers tagged

0

Give the master a single signal wire that is connected to all of the slaves and that signal LOW while the master sends commands to each slave. Let each of the slave Arduinos simply store its message but not act on it while the signal wire is LOW. When the slaves are supposed to start, raise the signal level to HIGH. Each slave Arduino now executes whatever ...


1

The SDS011 needs 5 V powering and the VU pin is the 5 V from USB on the NodeMCU development board.


1

The ESP8266 is (highly likely) dead. The overheating is the giveaway. Because you haven't mentioned it, please measure the 3.3V coming out of the Arduino with a multimeter. Unlikely to be the issue but it is easy to check. You will need to buy a new ESP8266 and connect it up and give it a try with a fresh board. If all is good with the new board then the ...


3

Not sure if you found it, but there I created an SNMP Manager: https://github.com/shortbloke/Arduino_SNMP_Manager There is also an SNMP Agent: https://github.com/0neblock/Arduino_SNMP I know this is a bit later than when you requested this info. But posting here in case it's still helpful to you or others that stumble over this question.


2

Sending data between Arduino and NodeMcu (Serial Communication) youtube link (in French): https://youtu.be/0TXmi9EgaCs


0

What do each of the 12 elements represent? Things in the header. That is off-topic for here. Why is there a difference in the output between the output of the raw buffer and snifferPacket? snifferPacket is overlaid over the incoming buffer. That includes the "data" buffer which you are printing. The data buffer is only a portion of the ...


0

Arduino GPIO automatically set as inputs, so I assumed the same for ESP32. Once the pinMode of the input pin was set, it worked: #define LED 2 // ON Board LED GPIO 2 #define inPin 26 void setup() { Serial.begin(9600); // Pins 34, 35, 36, 39 are input only pinMode(LED, OUTPUT); pinMode(inPin, INPUT); // <---------- } void loop() { Serial....


0

Assuming your FTDI Basic is the 3.3V version, then yeah that will work fine provided you that manually reset the board yourself and enter the boot-loader using the buttons. If you're independently powering the boards you may want to insert some series resistance in the RX and TX connections in case your signal receiving end is not powered while the sending ...


1

I solve the problem controlling the frecuency of refresh with the led pin. With a timer of 10ms disappears flickering


1

That's not how you compare C strings. When you write if (topic == "/home/bedroom/light1") you're comparing whether the character pointer topic is the same value as the address of the string "/home/bedroom/light1", which of course it is not in this case. To compare C strings, use the strcmp() function, which returns 0 if they're identical....


1

The relay I linked to couldn't be operated with 3v3 from the NodeMCU board. I was powering the NodeMCU via a breadboard power supply that had both 3v3 and 5v output (https://www.electronicscomp.com/mb102-breadboard-power-supply-module). I connected the Vcc and GND of relay to 5V supply on that module. the IO pin relay was connected to NoddeMCU. It worked ...


0

"Boot fails if pulled LOW" - this applies to both GPIO 0 and 2. The 2N2222 pulls the GPIO down to one diode drop (0.7V) above GND, which actually is LOW. Instead of using a BJT, you need to control the relay module with a mosfet. Its high gate resistance will have negligible effect compared to the internal pullup resistor. Chances are that the ...


1

You need to set esp 8266 to flash mode. Please connect en PIN to Gnd pin. Then flash again.


0

Use trigonometry (sin() and cos()) functions to get the right x and y coordinates. I would consider replacing your drawLine() command with something like this (untested) assuming the tiltAngle is in degrees from -90 to +90 (with 0 degrees is straight up) and you want to draw a line at this angle from the origin (63, 63) with a radius of 64. float ...


1

Thanks for posting the question and the solution. I spent hours on google and reading message boards before coming across this. I am not sure if my root cause was the same, but to me the "strange" IP for my ESP8266 (nodemcu) came from them connecting through the Guest Network of my Asus router. This resulted in an identical problem to OP with ...


2

So, sorry for late response, i figured it out. Because it took lots of time for me and it might be a prevalent issue, i think it worth to contribute my experience for further similar issues. As mentioned buffering can do the job, here are some constraints that should be satisfied to have right buffering mechanism; Writing to SD card SHOULD NOT be handled in ...


1

Everything was correct and my circuit is also good. The only difference i found is to this below line: temp = (analogvalue * 3.3) / 1024.0; Which should be temp = (analogvalue * 1.0) / 1024.0; We are multiplying because we are referencing the voltage from voltage divider circuit as 1 volt. After doing this, i am getting the exact values battery voltage ...


1

The problem is these lines of code in your function fr_fddb(): Firebase.get(firebaseData, full_path); _dt = firebaseData.cstrData(); You didn't share enough code to make this clear, but firebaseData appears to be a global which you reuse. When you call its .cstrData() method you're getting a pointer to the same buffer each time, and that buffer is ...


1

I ended up ditching HTTPS since it doesnt seem to be implemented all that well (Requires hardcoding of fingerprint). Changed the architecture of my system so that HTTPS is handled by Python which doesnt require jumping through hoops.


-2

I have been looking around for an answer and found a great explanation here: Arduino/Genuino Uno does not support Keyboard. You can see it in hardware/ardunino/avr/libraries/HID/HID.h. This file is included from Keyboard.h and contains #if defined(USBCON). But USBCON is not defined for Arduino/Genuino Uno. You need to use another board for Keyboard.h ...


4

The Keyboard library is for Arduino ATMega32U4 based Arduinos (and other similar ones with USB) only. The ESP8266 does not have USB, so how can it possibly use the Keyboard library?


2

The only timeout I can find is in the espota.py script itself. That is riddled with such lines as: sock.settimeout(10) You would need to scour that program and change them all. However ArduinoOTA uses UDP for communication. Because of that it is unreliable (yes, that's a technical term). It doesn't have any form of retransmit / retry, so if a packet is lost ...


Top 50 recent answers are included