Newest Questions
25,002 questions
0
votes
0
answers
35
views
ItsyBitsy 32u4 missing keyboard.h [closed]
the ItsyBitsy 32u4 has the HID and can emulate a mouse, but when I do the #include "Keyboard.h" it says file not found in the board definition in the IDE.
Is there something missing in the ...
0
votes
1
answer
45
views
Using Serial Port names as a variable array for looping access to same block of code
If I have multiple NODES one on each Serial port (and / or SoftwareSerial port) all of which have the same code for execution can the names of each Serial port be put into an array such that I can say:...
0
votes
0
answers
62
views
Arduino Not Activating Solenoid with Active-LOW Relay
I'm trying to control a 12V normally closed solenoid valve using an Arduino Uno and a 2-channel 12V relay module. My goal is to have the solenoid turn ON and OFF every 10 seconds.
I've tested the ...
0
votes
0
answers
25
views
BPW21R photodiode with OPA2134UA op-amp circuit reading constant 5V instead of expected signal [closed]
I have built a circuit using a Nano, a BPW21R1 photodiode, and an OPA2134UA dual op-amp IC to amplify the signal, but I'm getting a constant 5V reading instead of the expected varying signal, ...
0
votes
0
answers
24
views
How to adapt this ESP32 + TMC2240 stepper controller design to my project?
I’m trying to build a wireless stepper motor controller using an ESP32 with a TMC2240 driver. I came across this reference design: Wireless Stepper Motor Controller with ESP32 and TMC2240 https://www....
-1
votes
0
answers
24
views
How to get HC05 module into pairing mode? [closed]
I have set my HC05 (connected to my Nano) to "master" using AT commands. But I cannot get the light to blink rapidly anymore, it remains blinking slowly as if it is still in AT mode. I have ...
0
votes
0
answers
36
views
Why does my stepper motor have jerky motion with DRV8825 microstepping?
I’m using a NEMA 17 stepper motor (model 42SHDC3030Z-23WB-1 / 17HS4401S) with a DRV8825 driver with small radiator and an ESP32. Even when set to 1/16 microstepping, the motor motion is very jerky.
It ...
1
vote
1
answer
58
views
HC-12 receives garbage, but the garbage is consistent
I'm playing with two HC-12 wireless communication modules. After setting AT+FU4, I tested the modules, but the communication appeared to be unreliable in one direction. I tried to simplify the code as ...
0
votes
0
answers
37
views
Information about PWM frequency
Previously, the reference page for the analogWrite function showed the PWM frequencies for different pins on different Arduino boards, but now it doesn't mention it anywhere... Where is this ...
1
vote
1
answer
38
views
Send uint32_t over i2c from attiny85 slave to atmega328p master
I run into an issue with querying a uint32_t with an atmega328p master from an attiny85 master.
I have put both codes below.
I did run the equivalent code for just sending a uint8_t and all works ...
-1
votes
0
answers
78
views
enum class not in scope but auto works
I'm writing a program to display leds that sequentially light up in one direction until the last led at which point the process reverses. I'm using an OOP approch for practice. Below is my code in its ...
-1
votes
1
answer
88
views
Connecting the device to Arduino via the UART protocol [closed]
The essence of the task
I have a task to connect an external device with my arduino and transfer data to each other via the UART protocol. The external device has 4 pins (Two for power supply and RS-...
0
votes
2
answers
101
views
problem with scripts in Arduino Lab for MicroPython
I am trying to set up an Arduino Nano ESP32 so that I can code in MicroPython. I successfully installed Arduino Lab for MicroPython and flashed the firmware onto the device, but when I try to run the ...
0
votes
0
answers
71
views
Cannot get Arduino Nano with CH340 chip to keep working
I have a bunch of Arduino Nano boards with the CH340 chip. When I want to upload code to a board, it sometimes works the first time, sometimes it doesn't. Afterwards, it mostly doesn't work anymore.
...
0
votes
0
answers
66
views
ASync Timer2 based OSCCAL value
How to calibrate the internal RC oscillator off of a 32768 Hz crystal serving Timer2?
void OSCCAL_calibrate(void) //This version specific to ATmegaXX8 (tested with ATmega328)
{
unsigned char ...
0
votes
0
answers
43
views
Cannot ping a host unless I use parseIP from Ethercard
I'm trying to write an Arduino sketch which pings multiple hosts and switches some RGB LEDs to indicate the status of the devices on my network. This question is a followup of ParseIP in the EtherCard ...
0
votes
0
answers
41
views
After an USB disconnect the program I've uploaded to the Arduino Mega 2560 doesn't work properly anymore, why?
For a race simulator I'm using several Arduino Mega 2560 boards on which the code that will post below will be running. (not my code! But freely available on the internet)
Everything works fine, just ...
-1
votes
0
answers
22
views
Why are there silver strips around the voltage regulator on an Ethernet 2 shield? [migrated]
The following image is a crop of an Ethernet 2 shield. It shows the 1117 voltage regulator soldered to 'something'.
Typically these are soldered to a copper pad, with /without vias to other copper ...
1
vote
0
answers
51
views
Why LoRa Ai Thinker 433Mhz doesn't go in Receive mode after we send ACK? [closed]
So basically I created a simple Receiver and Transmitter using Two Lora Ai Thinker 433Mhz (Sx1278). I am using Esp8266 with one Lora (as transmitter). It sends packet when we press button. On Receiver ...
0
votes
1
answer
94
views
Arduino DUE - I Have enabled A14, will this break anything?
I developed a quick custom PCB using the ATSAM3X8EA-AU as I wanted to use Arduino to program it as an Arduino DUE, I kept most of the schematic the same, however I used pin A14 pin 52 as an analog ...
0
votes
1
answer
70
views
How to timeout hung incoming connections to the Ethernet port?
If I telnet to an Ethernet capable Arduino (e.g. shield, Leonardo, Leonardo Eth) with something like telnet [ip] [port] and then do nothing, the connection hangs. Seemingly for ever, or at least ...
0
votes
0
answers
32
views
Reassigning GPIOs 6-11 on a 30 pin ESP Wroom 32
I am trying to wire up the ESP 32 based Crunch-E keychain synth (gituhub repo with wiring diagram here).
In my case I am using a 30 pin ESP Wroom 32 board with pinout diagram here.
The Crunch-E wiring ...
-2
votes
2
answers
106
views
Trying to program atmega328p-an via arduino leonardo isp
a friend of mine gave me broken hw-308 (chinese meter).
https://besomi.com/media/catalog/product/t/m/tmet0006-1.jpg
Atmega chip was broken so i replaced it with the new one i bought recently. Now i ...
3
votes
2
answers
160
views
Why are there extra steps on DAC output?
Testing the DAC on the Feather M4 Express (SAMD51 microcontroller). Tried to generate a square wave with the DAC.
void setup() {
analogWriteResolution(12);
}
void loop() {
analogWrite(A0, 0);
...
2
votes
0
answers
36
views
Unnecessary recompille after connection error
I sometimes multitask during a large compile (wifi, etc libraries) and don't get back in time to press the ESP32 upload button. If the connection times out, the IDE recompiles all the source again. ...
0
votes
0
answers
57
views
Arduino R4 Minima, trigger function being bypassed?
I am running a trigger function in a while loop in setup that takes in 3 analog inputs, checks if they are within a certain range, then outputs true if they are, false if none of them are.
The code I ...
0
votes
0
answers
68
views
Gross timing error between crystals
Got two boards, getting a stable counter error ratio between the two of ~0.9895 (counted ticks divided by calculated ticks). Is this not a bit too low ? With +/- 50 ppm between the two crystals I was ...
-1
votes
1
answer
99
views
Difference between using GND and digital LOW for 7-segment display pin
I am using this 4-digit 7-segment display.
So my circuit is basically 220 ohm resistors for all the segments (display pins 6 through 16 on the bottom each go through a resistor before going to a ...
1
vote
1
answer
225
views
Can one re-program a Leonardo Eth via its Ethernet port only?
Let's assume we have an Arduino Leonardo Eth running some sort of networking application, perhaps a very simple web server. Importantly the server is read only and static HTML. There is no ability to ...
0
votes
2
answers
134
views
I need more free memory on my Arduino. What can I do if I don't want to use float? [closed]
I realize that using float results in loading all or at least parts of the floating point library, which consumes a significant amount of memory.
How can I avoid using float?