Most Popular
1500 questions
5
votes
3 answers
How to calculate phase shift between two square waveforms with Arduino DUE
I have two square wave signals with the same frequency. I want to measure the phase shift between these two signals. There will be a small phase difference between two signals. (0-90 degree) and the frequency will vary in the range 100mHz - 50kHz. I…
chaya
5
votes
1 answer
MQTT connection fails when using String objects
On my ESP32 I am trying to connect to my HomeAssistant server using ArduinoHA library.
I can easily connect when hard-coding the credentials: mqtt.begin("server", "username", "password");
But I recently tried to move the credentials to a config file…
SagiZiv
- 201
- 8
5
votes
3 answers
74HC595 chip with 7 segment display constantly displays either all 1's or all 0's
I made a simple circuit with an Arduino Nano ESP32, where I have connected a 74HC595 8-bit shift register chip, as well as a 7 segment display with a 100 ohm resistor on common (cathode) to show the shift register's state.
Expected Behavior
Seven…
Niko
- 93
- 8
5
votes
5 answers
How can I make a garage door laser sensor?
I would like to make a sensor that detects when my car is clear of a certain point. So, when backing in my car to my garage, I would have a beam and sensor. When the beam is broken, an LED light would turn on and then when the beam gets through, the…
Armstrongest
- 151
- 1
- 3
5
votes
1 answer
How to generate gcode for Arduino Mega 2560 and Ramps 1.4 CNC Router
I had a Prusa I3 3D Printer which use Arduino Mega 2560, Ramps 1.4 and Pololu - A4988 Stepper Motor Driver.
I want to convert my 3D printer to CNC Router using my Dremel with Flexible shaft like this.
I found the one project on instructables.com…
ANKIT JAIN
- 185
- 2
- 4
- 12
5
votes
3 answers
ESP8266 I2C doesn't respond
I've got a huge problem using an ESP8266 from a Wemos D1 mini.
I am using an STM32L073RZ to send a request to an ESP8266 to send me the time it has acquired from a WiFi connection.
ESP code:
#include
#include
#include…
Jackob2001
- 53
- 6
5
votes
2 answers
First Uses of Digispark can't get past upload error
Windows 7 (64Bit) Parallels VM on Macbook Pro running BigSur. Arduino version 1.18.19, Digispark ATtiny85 Micro USB.
Loaded Boards Manager http://digistump.com/package_digistump_index.json and updated all.
Installed Windows Driver DPinst64 from…
Dave
- 51
- 1
5
votes
3 answers
Arduino to Arduino communication
When I send data to an Arduino Uno via the serial monitor, the serial data goes down the same USB cable used to program the Arduino. So there must be a device on the Arduino board like a FTDI or USB-capable AVR that drives the RXD pin of the…
Neil Stockbridge
- 161
- 4
5
votes
2 answers
How do I change the Console colour of Arduino IDE?
Leading on from the question Can I change font Color and/or Type for IDE 1.5.6r2?, in 1.6.0, or 1.6.11 it does not seem to be possible to change console.color or console.error.color. To be precise, you can change the settings in the preferences.txt2…
Greenonline
- 3,144
- 7
- 36
- 48
5
votes
4 answers
Generating a PWM frequency greater than 125 kHz using Arduino Uno
I need to obtain a PWM frequency of at least 125 kHz. I plan to drive a pair of MOSFETs using this PWM as the driver signal. The below code gives a 1 kHz frequency. Can I just change the delay values to obtain a lower time period, and thereby a…
user276998
- 59
- 1
- 1
- 3
5
votes
2 answers
UNO analog input voltage reading not accurate
My loop code is this:
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(float(sensorValue*5000.0/1023));
delay(1); // delay in between reads for stability
When I read 5V it…
user30878
- 112
- 1
- 8
5
votes
1 answer
Pin Change Interrupt Flag timing on 1284P
I want to ask about pin change interrupts on a 1284P chip using MightyCore. I have a question about the timing of multiple interrupts on one port. Specifically, if I am servicing a PCINT vector and another pin in the port changes while I am in the…
Delta_G
- 3,391
- 2
- 13
- 24
5
votes
2 answers
Simulation of Arduino Mega 2560 with GSM Module using Proteus
I have really been suffering with my simulation! Tried connecting my arduino mega 2560 to COMPIM (used as GSM Module) in my circuit and also loaded sample code but damn! In vain! I wanted to view the data sent in virtual terminal but am getting…
Joshua Kusaasira
- 151
- 1
- 1
- 5
5
votes
0 answers
Internet in ESP32 is not working with IPv6
I am using ESP-WROOM-32D in STA mode with Arduino IDE(2.0.5) ESP32 board(2.0.9).
I am trying to do http post request with ESP32. Router that provides internet supports only IPv6.
Here I am getting http code -1. I have tried different network with…
dharmikP
- 159
- 2
5
votes
2 answers
Arduino Freezes (probably because of I2C) - Need help to write robust script
Arduino Pro mini 3.3V stucks few hours after startup. After repowered, it begins to stuck within a few seconds. If I wait long enough before turning it on it stucks little later for example now it lasted 45 seconds before stuck. Whenever it is stuck…
CaveScientist
- 151
- 3