2,204 questions
1
vote
2
answers
95
views
How can I run multiple separate loops independently from one another in Arduino IDE?
I'm trying to make 3 LEDs (a red, a green, and a blue) flash simultaneously. The blue one should flash slowly, the green one should go quicker, and the red should be fastest. I tried putting multiple ...
1
vote
1
answer
166
views
comparison logic with signed integers and noise giving unexpected outputs
I’m working on an Arduino Morse code decoder that interprets durations (positive/negative for tone on/off) into dots, dashes, and spaces. I add random noise to simulate real-world signal variance, but ...
Advice
0
votes
2
replies
119
views
How to run and test software code and then put it in hardware
I'm trying to build my own handheld games console similar to a Game Boy.
Currently for the POC I’m using the Arduino Uno, separate SD card reader module and 2.4 inch TFT Display. I want to put the ...
1
vote
1
answer
142
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
0
answers
108
views
ESP32 cannot connect to Arduino Uno via HC-05 Bluetooth module
I'm trying to connect an ESP32 (as Bluetooth master) to an Arduino Uno that has an HC-05 Bluetooth module attached. My goal is to send serial data between the ESP32 and the Uno.
Setup:
Arduino Uno ...
0
votes
0
answers
68
views
Repeated/Missing data in I2C transmission from MSP430FR5972 (slave) to Arduino Uno (master)
I am very new to embedded programming and I2C protocol. I would like to develop a command "CMD_READ_V" which will eventually read an analog voltage from the MSP430 A0 and report it back to ...
1
vote
2
answers
79
views
Arduino Nano ATmega328P C++; unsigned 8bit shift right generates 16bit code. This wastes time and memory. Can this be fixed or avoided?
With an Arduino Nano ATmega328P (Arduino IDE 1.8), the following C++ code (with 8bit operands):
volatile uint8_t un8 = 123;
volatile uint8_t res8;
res8 = un8 >> 1;
generates a 16bit shift ...
1
vote
2
answers
153
views
Why do any other baud rate than 9600 corrupt my serial communication from my python program to my elegoo uno?
I am working on a personal project that consists of synchronizing my addressable ws2811 light strip to Spotify. There is no real-time audio analysis. My python program reads a JSON file, and based on ...
0
votes
0
answers
124
views
Having Trouble Getting CAN-bus Data to Display on an LCD
I am using an Arduino Uno with a SEEED CAN-bus shield and a 4x20 LCD with the Adafruit I2C backpack. I'm trying to make the Uno recieve several different messages via CAN, then display the data it ...
1
vote
1
answer
118
views
Communication between my arduino and my Python code doesn't seem to work
I need to use data collected from a sensor connected to an arduino Uno in a Python code. It's a basic question of getting the state of the digitalPin to my Python code. I first wanted to try my hand ...
0
votes
1
answer
127
views
Arduino UNO with Bluetooth HC-06 on macbook cannot get data
I using Arduino UNO with HC06
This is my code
include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11);
void setup() {
Serial.begin(9600);
BTSerial.begin(9600);
}
void loop() {
if (...
0
votes
2
answers
61
views
Arduino Uno INTF0 flag not being set without main() function in WOKWI
The code can be found in Checking INTF0 Without ISR
The code works as expected when the main() function is present but it does not when main() function is left out of the code. I do not want to use ...
0
votes
1
answer
34
views
Error while writing file to SD in Arduino Temperature logging station
I try to write a Temperature Logging station using a RTC 1307 and timestamping my measurements. The issue is at the beginning, creating the filename:
#include <dht_nonblocking.h>
#define ...
1
vote
0
answers
77
views
I'm using an nRF24L01 transceiver hooked up to an Arduino Uno as a transmitter. The messages don't send and I don't know why
The end goal is simple: use one arduino + nRF24L01 setup to remotely turn on an LED on another arduino + nRF24L01 setup.
I'm stuck on the the transmitter side. The transmission keeps failing and I'm ...
0
votes
0
answers
39
views
Shift register receiving 33 bits - all outputs high instead of in sequence (Arduino Uno)
I seem to have an issue where, when I send 33 bits out through 5 shift registers to LEDs (only using one output on the final register) it loops through array entries 1-15 just fine, but then flashes ...