Newest Questions
25,033 questions
-1
votes
1
answer
1k
views
Connect arduino nano and ESP32 with I2C on the GPIO7 and GPIO8?
I made a mistake connecting SD0 (GPIO7) and SD1 (GPIO8) with the SDA and SCL on my arduino nano. I got confused with GPIO21 and pin21 and GPIO22 and pin 22!
Since I made a PCB prototype, I would ...
1
vote
1
answer
2k
views
Nano 33 IoT rescue from the dead: No USB. No upload mode
First of all: my board used to work fine.
Now my Nano 33 IoT turns ON (green light) when connected to USB on Mac but:
doesn't enter in upload mode after pressing twice on board button.
doesn't shows ...
-1
votes
2
answers
2k
views
RS485 communication problem
I'm trying to achieve RS485 communication between Arduino Mega and Arduino UNO as specified in following link:
https://www.engineersgarage.com/arduino/rs485-communication-between-arduino-mega-and-...
0
votes
1
answer
469
views
Reading data from the MCP3002
I am using a MCP3002 to convert an analog signal to digital data. It works fine actually, sends good data. However; After a while, when the power is turned off and on again a few times, it only ...
0
votes
1
answer
327
views
Using a class inside of another class [closed]
I have a seemingly simple problem that seems to be popular, but after searching several forums I still have not found the answer: How do you use a class inside of another class?
I have simplified my ...
1
vote
1
answer
806
views
Specific ports on Teensy 3.6 not reading correct bit resolution using ADC library?
I have a basic circuit, where I'm reading analog values from 14 infrared receivers.
I set the bit resolution to 16 but specific ports are returning 10 bit values (from 0 - 1024) instead of 16 bit ...
0
votes
1
answer
2k
views
real-time reading of a quadrature encoder at full resolution with only one interrupt on ATmega328
I want to read a quadrature rotary encoders at full resolution with only one interrupt on Arduino Nano (ATmega328). So I found out that we can use XOR to reach a full resolution:
Where pin 3 ...
0
votes
1
answer
320
views
Floating power supply for Arduino - Is it still connected to the USB ground?
I am trying to power my Arduino Mega 2560 from a benchtop power supply. I plan to essentially feed in a 9V supply directly on the Vin pin and connect the GND pin to the floating ground pin on the ...
2
votes
1
answer
397
views
double to char* conversion. Weird results from dtostrf
Here’s the code:
void setup()
{
Serial.begin(9600);
delay(300);
double lat = 1111.11;
double lon = 4444.44;
const byte len{10};
char sLat[len];
char sLon[len];
...
-1
votes
1
answer
1k
views
Program for counting days
I need a program to count days, from day 1 to day 21 for my project.
I'm making an artificial incubator and I need to show the days on an LCD.
1
vote
0
answers
158
views
RS232 to ttl communication of arduino
I have an rs232 to TTL converter and I want to read something in the Arduino serial monitor by using the converter instead of using Arduino serial cable. I have connected the correct wiring in my ...
1
vote
0
answers
280
views
Communication between arduino nano and MCP3424 over I2c pt. 2
I'm am completing a project of mine that uses an MCP3424 i2c 18bit ADC and an arduino nano to measure temperature with an NTC thermistor but am having trouble with the arduino wire library. This is my ...
1
vote
0
answers
1k
views
ESP32: Share I2C bus among multiple freeRTOS tasks - do I have to expect synchronization issues?
I recently inherited some firmware with weird problems in regards to the duration of reading sensor values. The board is based on the ESP32 Wrover MCU and has multiple sensors connected via the I2C ...
3
votes
3
answers
2k
views
Spikes in CO2 and TVOC measurements with CJMCU-811 sensor
Firstly, I'm not sure if this is the right SE to ask this question. Please feel free to direct me somewhere else if needed.
I am observing large spikes in CO2 and TVOC measurements using the CJMCU-...
1
vote
1
answer
179
views
Error reading file
What should be done to solve it?
I have edited the board.txt file and none of my codes are getting verified
it shows this error:
"Error reading file (C:\Program Files
(x86)\Arduino\hardware\...