Top new questions this week:
|
Simple sketch and simple question: where does this sketch have undefined behavior? Note: I don’t need a solution to fix the code. I already have code that works. I really need to understand where my …
|
I have a project that needs 3 serial ports on my ESP32 Dev 38-pin MCU. Two of them are for Nextion touch displays and the other is for a GPS. The problem from what I understand is that the ESP32 has 3 …
|
I am building a remote controlled boat. My remote project freezes after an arbitrary amount of time. The serial stops output, the OLED doesn’t update anymore and instructions are not send / received …
|
I have a 3.5″ TFT LCD communicating in parallel connected to Arduino UNO. I expect it draws a white circle on a black background but all it does is to show a white screen. How to fix this? main.c …
|
I want to communicate between Jetson nano and arduino nano through serial. I wrote a simple script to test functionality but I receive strange data here is the arduino code void setup() { // put …
|
I am suddenly getting an error every time I try to compile code in the IDE, even though every one of the sketches previously compiled just fine: Arduino: 1.8.13 (Windows 7), Board: “MH-ET LIVE …
|
OK, I have a little hardware issue I need to fix in software for the time being. I say, “For the time being,” because I already have the PC Boards printed, and I need to make do for this …
|
Greatest hits from previous weeks:
|
When I started Arduino, I did not expect that everything must be contained in an infinite loop. I thought I could just write something like: motor start -> motor stop. But in actuality, what I get is …
|
I started recently working with a uBlox Neo 6M GPS module (data sheet www.u-blox.com/images/downloads/Product_Docs/NEO-6_DataSheet_%28GPS.G6-HW-09005%29.pdf). I connected it to an Arduino Uno …
|
I need to read a sensor every five minutes, but since my sketch also has other tasks to do, I cannot just delay() between the readings. There is the Blink without delay tutorial suggesting I code …
|
What is an ICSP pin? I have read that it is an AVR and a tiny programming header for the Arduino, but what is an AVR and what does an ICSP pin do?
|
I currently can set four PWM pins to around 31 kHz with the following code: void setup() { TCCR1B = TCCR1B & B11111000 | B00000001; // Set PWM frequency for D9 & D10: pinMode(…
|
I’m trying to make an opening and closing little door that should open or close every 12 hours. I was wondering if I could just make a small looping script with a delay() for 12 hours, delay(43 200 …
|
How would I split part1 into 2-3 digits and put them into num1, num2, and num3? int FMSTATION = 10250; int update_display() { int fm_station = FMSTATION ; int part1; int part2; part1 = (…
|
Can you answer these questions?
|
I wanted to make a simple led on/off program using USART interface. When the code doesn’t have any functions other than main it runs fine, however Arduino keeps resetting when one is included. At this …
|
Hello i wrote this sketch that upload a temperature reading of a DHT22 sensor to a phpMyAdmin server in localHost, the sketch work fine, the data been upload every 5 min to the server than ESP go t …
|
#include <IRremote.h> #include <Adafruit_NeoPixel.h> #define LED_PIN 7 // define the LED strip data pin #define LED_COUNT 150 // define the number of LEDs in the strip Adafruit_NeoPixel …
|