19,462 questions
-2
votes
0
answers
45
views
How would I use the softwareWire library in conjunction with the HK16K33 library? [closed]
The title (mostly) explains the question. Simply put, I'm trying to run multiple HK16K33 4digit 7 segment displays, with different outputs, on one Arduino. Some searching gives me the library ...
1
vote
0
answers
79
views
I want to open a web server with ESP32
I'm not good at English, so I used a translator.
Please understand that we cannot show all the code.
Currently, I am trying to open AP mode in ESP32 and send HTML information to the connected person.
...
4
votes
1
answer
53
views
sending serial data from processing to arduino
I'm a beginner in programming and looking for a solution for a windows user- interface to change parameters on a arduino board.
The whole target is a control unit for camera, flash and valves to make ...
1
vote
2
answers
99
views
How to handle N buttons with separate actions in pure C on Arduino without writing N ISR wrappers?
I'm working on an Arduino project in pure C with multiple buttons. Each button has a different action associated with it, and I want to handle button presses using interrupts.
Currently, the typical ...
-1
votes
0
answers
39
views
Distance Measurement System Using Arduino UNO and Ultrasonic Sensor
I am building an IoT system to measure the distance from two individual points by using two HC-SR04 ultrasonic sensors and two 16x2 I²C LCD displays to show each sensor’s reading separately.
Sensor 1 ...
-1
votes
0
answers
43
views
Arduino IPADDRESS class to String [duplicate]
There is a builin function / method for the IPADDRESS class, .toString() which works fine on output via Serial.println
However it does not seem to covert it actually completely when storing it in a ...
2
votes
1
answer
143
views
How can I use the PN532 with an ESP32-Wroom-32?
The ESP32 cant find the NFC module (Pn532). I used the I2C and SPI without any promising results.
I used the Example code and edited the Pins
Every time I only Get this result: Serial.print("Didn'...
0
votes
1
answer
20
views
SIM800L chunk file for sending through TCP Connection properly - CME ERROR 3
If anybody is conform with SIM800L, I've got a working design regarding sending data through TCV via SIM800L, building up the network is ok.
What is working:
AT+CIPSTART
waiting about 2 sec
AT+CIPSEND=...
1
vote
0
answers
87
views
PWM FSP code not working in ARDUINO UNO R4 WIFI
I decided to program a PWM using an ARDUINO UNO R4 WIFI. I tried to configure the RENESAS RA4M1 microcontroller with the FSP libraries through the Arduino IDE. What I want to do is generate a PWM and ...
0
votes
1
answer
75
views
IoT Nano 33 Timer Issues
For a project I have to fulfill the following conditions:
Setup interrupts on the ARM Cortex MCU using CMSIS APIs
a) Show how to initialise global interrupts on the ARM Cortex for GPIO pins and ...
2
votes
1
answer
120
views
Algorithm to get pitch (angle in the XZ plane) from 0 to 360°
I'm currently developing a project with Arduino Nano BLE 33 rev2 (an MCU equipped with Bluetooth, accelerometer, gryoscope and magnetometer) and Python to get the yaw (XY plane degree) and pitch (XZ ...
1
vote
1
answer
102
views
How to prevent analog clock hands from leaving trails on TFT LCD with ESP32
I’m building an analog clock on an ESP32 Wrover Kit with a TFT LCD using the TFT_eSPI library. The clock displays the correct time using NTP, but I have a problem with the hands:
When the hands move, ...
2
votes
0
answers
87
views
ESP32-C3 sketch immediately resets with TG1WDT_SYS_RST on minimal code
I am using an ESP32-C3 Dev Module on Windows 11 with Arduino IDE (ESP32 package 3.3.0). Minimal sketches, such as the following, immediately trigger a watchdog reset during startup:
void setup() {
...
2
votes
1
answer
121
views
Why can't my if statement loop on Arduino IDE?
I want my LED to have three states with push button
on
blinking
off
But the second state didn't blink, it is only off-->on. Here's the code:
#define btn 7
#define led 8
int button;
int a;
void ...
0
votes
0
answers
50
views
IK Function in DoF Arm
I'm working on a 6-DOF robotic arm project, but the inverse kinematics (IK) code in my `control.ino` file doesn't work as expected for controlling the arm in the 3D x-y-z plane. The code is designed ...
0
votes
0
answers
63
views
Arduino Mega (Master) reads old Wire Communication data from slave (esp32 dev module)
I am using the Arduino IDE for uploading and compiling code for these microcontrollers.
These two sketches should send a serial monitor input from the user of the master to the slave and then the same ...
2
votes
1
answer
98
views
Does the Arduino library load its internal interrupts in IRAM on the ESP32
When I've developed for the ESP32, I've always included the linker attribute IRAM_ATTR when I've declared functions called from interrupts. This is based on https://docs.espressif.com/projects/esp-idf/...
0
votes
0
answers
97
views
ATtiny85 software latch with button hold for running / sleeping state change
I'm making a software latch with following features:
ATtiny85 @ 1 MHz, BOD disabled
PB0 = LED, PB3 = Button (with internal pull-up) Interrupt on change
Deep sleep until button press
Change state with ...
2
votes
1
answer
66
views
Rgb565 to rgb888 error in the Nicla Vision
I'm running into a problem converting raw rgb565 into rgb888. I'm getting psychedelic looking images:
I followed the advice from this forum post, but I have not been able to fix the problem. Has ...
2
votes
1
answer
110
views
ESP32 LoadProhibited with FreeRTOS tasks
I am trying to write a class to help me interface a Bluetooth module with an ESP32 over serial, but I am having trouble. Sometimes, the Bluetooth module sends events without being prompted, so I'm ...
7
votes
1
answer
80
views
Light sleep wakeup via UART
I want to wake up the ESP when it receives a message on the UART2 port. However, with the following code it never wakes up, even if a message is received. I am using the Lolin 32 Lite Devboard.
#...
1
vote
2
answers
170
views
How to improve Bluetooth communication between Arduino Uno using HC-05 and Android?
I have an Arduino Uno (atmega328p) and this sketch which sends data every 100ms
#include <SoftwareSerial.h>
const int BT_RX_PIN = 15; // SoftwareSerial RX
const int BT_TX_PIN = 17; // ...
0
votes
1
answer
90
views
Question about behavior when resetting microcontrollers [closed]
I have an embedded systems course in my university and i have a weird question that i don't know the answer to
the question gives us the code (i may have a syntax error but the logic is correct)
void ...
-2
votes
1
answer
124
views
Create and execute a dynamic function pointer list from different instantiated class members (Arduino c++11)
I am using Arduino C++11
I want to create and execute a dynamically function pointer list from different instantiated class members. A function holding the dynamic list of funtion pointerns is called ...
0
votes
1
answer
40
views
SPI Arduino to Arduino
I'm working on a project involving two Arduino boards communicating over SPI — one configured as master, the other as slave. The master sends a byte (0xA5) every 500ms, and the slave is supposed to ...