2,209 questions
-1
votes
0
answers
46
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 ...
Advice
0
votes
2
replies
101
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 gameboy.
Currently for the POC im using the Arduino Uno, seperate SD Card Reader Module and 2.4 inch TFT Display. I want to put the game ...
1
vote
0
answers
92
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
58
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
64
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
72
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 ...
0
votes
0
answers
28
views
IRremote always returns 0x6000000 for all Panasonic AC remote buttons on Arduino UNO
I'm using an Arduino UNO and the IRremote library to decode signals from a Panasonic air conditioner remote. I connected the IR receiver to pin 2, and the code below works in that it prints something —...
1
vote
2
answers
123
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
109
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
101
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
0
answers
36
views
Displacement variable not updating during test in Arduino project
I'm working on a project using Arduino to control a test machine for compression/tension. The displacement is calculated based on pulses from a sensor connected to a digital input. The logic for ...
0
votes
1
answer
99
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
55
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
26
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
58
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
25
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 ...
2
votes
1
answer
138
views
ATmega328p Memory Addresses
I learning to program the ATmega328p microcontroller in C and Assembler:
In C, I define DDRB = 0x24.
In Assembler, I define DDRB = 0x04
Can someone explain this difference in addresses (does that ...
0
votes
1
answer
74
views
Arduino Relay control using Analog Outputs
I'm working on a project where a Mixer mixes the perfect drink for you. However I used every digital pin for sensors and now I thought I could just use the Analog Pins to control the Relays for the ...
-2
votes
3
answers
148
views
Creating a time based system—hours minutes seconds
I'm currently trying Arduino C and trying to figure out the best way to convert the given added values into the correct seconds, minutes, and hours. I'm aware this needs division and modulo; it's just ...
0
votes
0
answers
57
views
Arduino R3 trouble connecting to ESP8266 - Timed Out Error
I am attempting to turn my generic Arduino R3 (an ELEGOO UNO R3) into an IoT device by connecting an ESP8266 ESP-01 WiFi module.
Here are my wiring connection:
GND - GND
TXD - RX
IO2 - 3.3v (through ...
2
votes
1
answer
622
views
A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x00): Possible serial noise or corruption
I keep getting the error in the title when trying to upload a sketch. I have tried to switch to different USB ports, resetting the ESP32 camera wrover, resetting the IO extension board and the UNO and ...
1
vote
1
answer
104
views
Arduino c++ phone toy
Hi i have a problem with my device. I used arduino uno, old keypad, SD card reader, and low quality speaker. Every singel pice works perfectly but all together it doesn't work like i want to. Keypad ...
0
votes
0
answers
182
views
How to Record Calls to an SD Card using AT Commands with SIM800C GSM Module and Arduino UNO?
Im working on a project using an Arduino Uno and a SIM800C GSM module where I need to record phone calls directly to an external SD card. However, I'm unsure which AT commands to use and how to ...
1
vote
1
answer
175
views
ATmega328 Timer1 Fast PWM Mode 15 Not properly set up
I am having issues with properly setting up the fast PWM mode 15 in my Arduino Uno (ATmega328).
Most of the registers seem pretty straight-forward, but I am not sure about a few of them.. For example, ...
0
votes
1
answer
60
views
Why are my arduino pins not activated after the first main loop?
Below is a description of what the Arduino should do, however I found that after the first loop in main, the pins are not activated again:
The mainRoutine function retrieves the current time from the ...
-1
votes
2
answers
158
views
uint8_t elements exceeding one byte?
I saw this code:
uint8_t broadcastAddress[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
I know uint8_t holds a byte, so how does this line of code work when a single
element, 0xFF, is in itself one whole ...
0
votes
0
answers
418
views
Connecting Arduino to Android Studio
Is it possible to connect Arduino project in android studio? I have here the Arduino Uno 3 and my GP2Y1014AU0F Compact Optical Dust Sensor. Im having a problem, I think the implementation ("com....
0
votes
1
answer
70
views
Arduino: String to HEX String representaion for AT commands
Sensors values:
float temperature = 29.5;
float humidity = 32.56;
float lightLevel = 17365.83;
int co2 = 452;
int noise = 583;
String dataString = ""+String(temperature)+","+...
0
votes
0
answers
85
views
How can I write two digits on a quad 7-segment display with Arduino?
From a DHT sensor, I'm reading the ambient temperature and my goal is to display the temperature on a quadruple 7-segment display, ending with the letter C for Celsius degrees.
I receive the ...
1
vote
1
answer
83
views
Same code for ATmega2560 works on Arduino Sketch but doesn't work on Microchip Studio
#include <SoftwareSerial.h>
void setup() {
uint8_t ubrr = 103;
UCSR3A = 0x00; //reset; Bd factor is not doubled,
UCSR3B |= (1 << RXEN3) | (1 << ...
0
votes
1
answer
50
views
Waiting for pyfirmata subroutine to end before capturing image
I am trying to control the intensity of an LED using a PWM port on an Arduino, and capture with a camera the resulting brightness of the LED at a given setting. What I would expect is that at a ...
1
vote
0
answers
48
views
Arduino Uno, TCA9548, BME280 - Not Found Sensors BME280
It is not recognizing the BME280, however, when I run the I2C Scanner, it finds them.... I have checked many times and I can't find any problem / solution.... Please help!
enter image description here
...
2
votes
0
answers
81
views
Arduino Cloud Editor not detecting the Ardiuno board
I've been programming my Arduino Uno R3 just fine, but when I updated to the new editor (I took a long break), it doesn't detect my board. I've looked around in a bunch of places for a solution but ...
0
votes
1
answer
81
views
Arduino UNO: Everything is working except light censor
This is a simple Arduino UNO project that can turn on and off the LED light with push button or light censor.
The push button is perfectly working it turns on and off the LED light without any problem....
0
votes
1
answer
235
views
Problems with BNO055 (Arduino)
I'm facing a problem that I've tried everything and it doesn't solve it. I just want to read the acceleration on the serial monitor and plotter for now, the code runs, works and is OK, I've already ...
0
votes
1
answer
60
views
Ardurino UNO - Servo Control
I am having problem desinging ardurino code that turns mini servo acording postion of 10kOhm Potentiometer.
This is my code:
#include <Servo.h>
Servo myservo; // create servo object to ...
0
votes
0
answers
48
views
Arduino BLE and website communication issues; SerialCharacteristic not changing?
For a group project I was trying to use the Arduino BLE to connect to my computer, which would be connected to a website that would then return an appropriate value to the Arduino BLE. The issue ...
0
votes
1
answer
73
views
Having trouble sending SMS from serial, Arduino, Python
I have a python script producing an output which I want to send as SMS. Here is the Python code to send message over serial port.
def blinkLED(color):
ser.open()
ser.write(color....
0
votes
1
answer
404
views
arduino "Compilation error: 'class DateTime' has no member named 'get'"
I have the arduino uno r3 and the adafruit data logger sheild (https://learn.adafruit.com/adafruit-data-logger-shield/using-the-real-time-clock-3).
Below is my code, however when I try to compile I ...
0
votes
1
answer
75
views
P5.js and mapping Arduino Button
I am new here! I have a school project that I am working on. I am trying to make a etch-a-sketch using an Arduino Uno, Arduino IDE, and p5.js. On the Arduino I have two potentiometers and a button. ...
1
vote
1
answer
313
views
Mapping P5.js to Arduino potentiometers and push buttons
I have a school project that I need help with. I am trying to create an etch-a-sketch with p5.js and an Arduino. I have two potentiometers hooked up and one button. The potentiometers should control ...
1
vote
1
answer
550
views
"p5.SerialPort is not a constructor" Need help connecting p5.js with Arduino
I am tyring to connect my arduino to P5.js through node js for a school assignment. We need to download the Serial Port application from github, install it in our terminal, connect our arduino, ...
-2
votes
1
answer
57
views
error: request for member 'write' in 'sg90', which is of non-class type 'int' sg90.write(180); [closed]
I was trying something for my first project working with Arduino about an automatic trash that open when a hand get close to her. While I was coding, I got an error.
Here is the code:
#include <...
-2
votes
1
answer
431
views
HI there, I am writing a simple python to Arduino Bilnk Code with pyfirmata. But the there seems to be an issue
I want to execute the blink example in Arduino UNO using LED pin 13 (inbuilt)
And I want to use Python to do so....
"I did upload the Standard Firmata code in Arduino using the Arduino IDE"
...
0
votes
1
answer
99
views
First commands from TerraTerm to Arduino contain junk characters. How to remove them?
I have an Arduino Uno Program that takes a string (a command) send via Telnet from a TeraTerm Console to set I/O Expanders. The first 4-5 strings I send always contain junk characters before the ...
0
votes
0
answers
358
views
Fingerprint Sensor AS608 Not Detected on Wemos D1 R1 (ESP8266)
I'm encountering an issue where my AS608 fingerprint sensor works flawlessly when connected to an
Arduino Uno but isn't being detected when connected to a Wemos D1 R1 board (ESP8266). The sensor doesn'...
0
votes
0
answers
595
views
AP_SimpleWebServer example times out on Uno R4 Wifi
I am a beginner with arduino, and I've just bought a uno r4 wifi for a project I want to make. To get practice using the board over wifi, I tried to use the example sketch "AP_Simple Web Server&...
-1
votes
1
answer
310
views
PyFirmata servo control issue (Arduino with Python)
I am trying to control my servo with PyFirmata2 (Using an Arduino Nano). It works half the times and stops at random angles the other half. Why aren't the results consistent and reliable?
Same result ...
0
votes
1
answer
296
views
Error running code on Uno r4 wifi which works great on Nano
I have some code that I can use to turn my TV off and on with an arduino nano and an IR LED. It works great. However, I want to run it on an uno r4 wifi so it can be controlled remotely. When I upload ...
0
votes
0
answers
165
views
Sending data from mysql via php to arduino
I'm trying to receive data from the MySQL server hosted on AwardSpace to my Arduino MEGA2560 using the SIM7600CE, but I'm not receiving any response.
The SQL code attempted to extract the data and ...