All Questions

Filter by
Sorted by
Tagged with
-1 votes
0 answers
11 views

Arduino Nano RP2040 Connect keyboard

1.Hello, I am working with the USBHID library with the keyboard, I already understand how it works, this would be the command to send the key keyboard.key_code(UP_ARROW) but I can't get the ...
-1 votes
0 answers
26 views

How to transfer a data file from Arduino to a computer over USB connection

I have a project logging sensor values to an SD card. I want to transmit the current file to a computer over USB. The current brain is a Feather M0 Adalogger. I guessed that accomplishing this ...
  • 183
0 votes
1 answer
19 views

Do I need to connect a capacitor to AREF if using internal reference? _BV(REFS0)

This is from the Atmega328p datasheet. But I see no mention of it in practical examples. So when I'm setting up the timer for ADC with: ADMUX = _BV(REFS0); Should I add the cap? Or might it be ...
  • 3
0 votes
1 answer
38 views

Do these bit settings all mean the same?

ADMUX = ADMUX | _BV(REFS); // uncompounded bitwise OR ADMUX |= _BV(REFS0); // #define _BV(bit) (1 << (bit)) ADMUX |= bit(REFS0); // #define bit(b) (1UL << (b)) bitSet(...
  • 3
0 votes
0 answers
18 views

SerialGPS.available() returns 0

I am using ESP8266 Wifi module and Neo-5m GPS module. I am trying to print the latitude and longitude on the Serial Monitor. However, SerialGPS.available() is returning 0. The following is my source ...
0 votes
0 answers
17 views

Flashing ESP32 under Linux - cannot determine device

I want to flash my ESP32 cam module using Ubuntu 22.04. I downloaded the python version of esptool plugged my esp cam in and tried to flash using the command $ esptool.py erase_flash esptool.py v4.3 ...
  • 101
0 votes
0 answers
46 views

Why wont my custom Arduino-Micro-based board connect over USB?

I designed and printed a PCB for my MIDI controller project with a modified Arduino Micro microcontroller essentially built into the design. I swapped out the USB Micro for a USB-C type port (just ...
  • 13
0 votes
1 answer
28 views

Controlling the 5V pin on the Arduino nano 33 BLE

Following the guidance on this post I have enabled the 5V pin. That same post suggests that I control that pin with D12, though I find it weird since there is already a D12 pin. When I try and run ...
  • 103
1 vote
1 answer
28 views

Can't upload sketch after overheating

I'm using an Arduino nano, after an unfortunate event, The mega chip heat up and when I tried touching it, it burned my finger. After that, I connected to my laptop's USB port and the computer ...
0 votes
0 answers
21 views

NodeMCU does not receive data from Arduino

I have to establish a serial communication between Arduino and NodeMCU. he devices should be connected as follows: Arduino Pin 10 and 11 are connected to NodeMCU Pin 5 and 6, respectively. Arduino Pin ...
  • 101
0 votes
1 answer
33 views

#define from main (.ino) not considered by comiler in own libaries

I have got the problem, that my #define from main (.ino) is not considered by the comiler in my own libaries. This #define MQTT_MODULE is only considered in the main (.ino) programm, but not in ...
  • 21
0 votes
0 answers
20 views

MONTEREY MACBOOK AIR M1 ARDUINO DUE PORT NOT FOUND

Same old question about serial port not showing but with Mac Monterey on M1 . I tried the old known trick with CH34x v5 package, i bought a new cable. Still doesn't work ! Any idea ? I'm desperate ...
-1 votes
0 answers
40 views

Multiple components connected but not being used , does this affect items being programmed

I am thinking of building a Bit of kit with 2 Arduino Mega's into a case with multiple input output components ( A bit like the Elecrow Crowpi but an Arduino Version ) The question is, With multiple ...
0 votes
0 answers
15 views

Digital Microwave Sensor v2.0 - distance adjustment pot doesn't change anything

I bought Digital Microwave Sensor v2.0. I made the connection as in the example (https://wiki.dfrobot.com/MicroWave_Sensor_SKU__SEN0192). The code and circuit work fine for short distance about 15cm. ...
  • 235
2 votes
1 answer
97 views

Voltage reading problem in Arduino mega based 10 cannel battery capacity tester

I want to make a 10 channels Arduino mega-based battery capacity tester using 4.7 ohms 10w resistors controlling them with IRFZ44n MOSFETs with respected digital pins. An 8.4V battery powers the ...
0 votes
0 answers
10 views

Can we set Rx Callback function for Characteristics of a Service?

I'm working on a BLE project based on the nRF52832 module here Server Node which is peripheral. Client Node which is central. What I want is to send data from the Central/Client node to the Peripheral/...
0 votes
2 answers
29 views

Question about Buttons and INPUT_PULLUP

I am ok as a developer but have very little experience if it comes to electronics/hardware. I am always too cautious and have the fear that I could wreck something with the wrong wiring. This question ...
0 votes
3 answers
73 views

How do I go about pausing/stopping the timer1 task setup in this library, so I can use timer1 for something else in my code

So I want to use this library, that uses timer1 to fetch samples from analog input on pin A0. It works great, and so after proper detection I'd like to perform all kinds of different tasks. But for ...
  • 3
1 vote
1 answer
63 views

Why wont my custom Arduino-Micro-based board receive power via USB?

UPDATE: I believe I have mostly solved the power issues, but now have USB connectivity issues described in EDIT 3 at the bottom. I designed and printed a PCB for my MIDI controller project with a ...
  • 13
0 votes
1 answer
24 views

DHT11 stops working when power comes from a power supply board

I had a mini project with a DHT11, a temperature and humidity sensor, working perfectly on my Arduino UNO clone. Then, I bought a power supply board, that can feed the sensor with the 5V it requires, ...
0 votes
0 answers
26 views

MCP23017 working with arduino uno but not working with atmega328p on breadboard

I have connect the MCP23017 to Arduino and it's working fine. but I want to use atmega328p on breadboard. this is the link which I referred for atmega328p on breadboard. https://docs.arduino.cc/built-...
  • 1
0 votes
0 answers
18 views

How to keep a persistant connection given a list of wifi ids and passwords?

I'm using a lolin v3 esp8266 to build a portable device that performs some HTTP requests and I'd like to give it a list of wifi id-password pairs and automatically connect (or reconnect) to the ...
  • 113
0 votes
0 answers
12 views

How to get the scan duration below 1sec with ArduinoBLE?

I want to scan continuously for other Bluetooth devices with my ESP32 using BLE. The scan method only accepts integers larger than 0, such as scan->start(1, false). However I want the results to be ...
  • 101
-1 votes
0 answers
16 views

stream mp3 from sd card to bluetooth headset

I have a sport Bluetooth headset. I connected my phone to it via Bluetooth and listen to music. is there any way for Arduino and sd card(any kind module) and Bluetooth module or ic (any kind) to ...
-1 votes
0 answers
18 views

Control AC Motor via arduino for beginner

I have the following AC motor: Actually it runs full speed in a certain direction, I would like to control it's speed, stop and inverse it's speed at my command. Basically the same you do normally ...
0 votes
1 answer
45 views

What happen with my code? My sensor module LED2 Always ON

I got this code from robojax.com i have follow all the step but when i try to clap its not turn off or turn on but when i blowing on the sound sensor it reacts and makes the light turn on int ...
0 votes
0 answers
36 views

Fail to upload files OTA, using ArduinoOTA on ESP32

Prolem: Fail to upload files stored in data library, when using OTA (more specifically - transmission fails the second it begins). Enviroment: Arduino IDE v1.8.19 ESP32 DEVKIT module. ESP32 LittleFS ...
  • 870
1 vote
2 answers
58 views

When Writing Library, return String or return char *

I am trying to write my own Arduino library and I would like to make it useful not just for ESP32/ESP8266 boards but also with Arduino boards. I have created my header file like this test.cpp #...
2 votes
0 answers
43 views

How to correctly synchronize time with NTP server?

I want to synchronize time with NTP server once in some time. I am using DOIT ESP32 DEVKIT V1, I tried with getLocalTime() function but it returned true even without wifi, but as I know without wifi ...
-1 votes
0 answers
22 views

Could I connect two Arduino nanos to one Arduino uno R3 [closed]

Could I connect two Arduino Nanos to 1 Arduino UNO R3 and use the HID chip on the Arduino uno for the joystick? Still new to this and trying to keep the cost down for Arduino boards.
-2 votes
1 answer
30 views

SIM800l not turning on

Just need a little help... I'm trying to turn on the SIM800l, but the device is not working. I'm using a 5V power with a voltage divider (10K - 47K) to the device requirement of 4V Vcc, but the LED ...
  • 1
-2 votes
1 answer
19 views

https post using custom "Fetch" lib

I`m trying to do POST request to my ssl server, using https. Here is my arduino code example: #include "recipes/WiFi.h" #include "Fetch.h" #define SSID "My_wifi_name" #...
  • 1
0 votes
0 answers
37 views

Fatal error: freertos/FreeRTOS.h: No such file or directory

Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano 33 BLE" I'm just following the blog How-to Get Started with Machine Learning on Arduino and I have installed all the library which they ...
-2 votes
0 answers
23 views

Number of cycles for ADC conversion

How do we calculate the number of cycles needed for X-bit ADC conversion? For example, why 10-bit ADC takes 13 ADC cycles? 10 cycles are needed for the core information. What are the other 3 used for? ...
0 votes
0 answers
28 views

ESP32 connects yo PC, flashes but won't work

I have been using my ESP32 for 4 months now. Recently, it just won't work - It won't even blink an LED with the blink program. Observations: My esp has only 1 onboard LED. The onboard LED does not ...
-1 votes
0 answers
40 views

I don't understand why this code doesn't do anything...no errors no nothing [closed]

#include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <Fonts/FreeSans9pt7b.h> #include <Fonts/FreeMonoOblique9pt7b.h> #...
1 vote
0 answers
17 views

Fedora 36 cannot find TTGO32 arduino board

I've been trying to solve this problem for a while now. Fedora 36 cannot recognise my arduino board. Well, not correctly at least. Arduino IDE v2 picks it up as ttyS4, but platformio only has an empty ...
0 votes
0 answers
32 views

Getting angles from MPU6050 on ESP32

I'm trying to build a 2-wheel balancing robot, but it is way to jerky to balance properly. Hardware: ESP32, MPU6050, L298N, two motors and a 9v battery. I've tried playing around with the PID settings ...
  • 135
1 vote
2 answers
188 views

Arduino keyboard Input language problem

I need my Arduino (Leonardo) to open cmd, but if keyboard input language isn’t English it prints another language letters. ——— code ——— Keyboard.begin(); Keyboard.press(KEY_LEFT_GUI); Keyboard.press('...
0 votes
0 answers
13 views

How does the mpu6050 offset functions work?

I have a problem with understanding the mpu6050 library set offset functions to calibrate accelerometer. I wrote a basic example (obviously final calibration should be done on average of samples) but ...
  • 111
0 votes
0 answers
23 views

Arduino not receiving RS485 properly

I have two Arduino MKR WiFi 1010 with MKR RS485 shields connected. I can get this tutorial to work: https://docs.arduino.cc/tutorials/mkr-485-shield/mkr-485-communication. Now I want to send an array ...
  • 1
1 vote
0 answers
45 views

DS18B20 doesn't work with pinMode for other devices

i do some project. There is DS18B20, 3 mosfet modules, 1 relay, display 1602, buzzer... I built it on bread board, everything worked. Now i soldered it: arduino works, display works but DS18B20 doesn'...
-3 votes
0 answers
20 views

Arduino ONE and SHT75 don't work [closed]

Is is possible to run some code for this temperature/humidity sensor on arduino ONE?? Whith this code I got the error message "library Sensirion.h doesn't found"
0 votes
1 answer
18 views

How does a callback function get revoke itself eg. Connect function get revoked when there is new connection

Further to my previous question here Can anyone help me understand how the callback function gets revoked itself? The connect function, disconnect function. BLE custom UUID code source here Another ...
0 votes
0 answers
35 views

How does C2 work on the ATMega328P?

What is the purpose of C2 on this schematic below? How does it work when the microcontroller is being programmed?
0 votes
0 answers
17 views

Receiving an exception when using ADS1015 with ESP8266 Thing Dev [closed]

I have an ADS1015 connected to an ESP8266 Thing Dev via an I2C connection. I'm running the following code to read a value from a turbidity sensor and run it through the ADC. #include <Wire.h> #...
0 votes
0 answers
15 views

Dynamic Phase Shift using Arduino Due TC?

Looking to add dynamic phase shifting to this h-bridge code. I essentially have two working complimentary pairs of signals running @ 100kHz with a 49% duty cycle. Here's what I have now. I want to be ...
-4 votes
0 answers
23 views

8266 HTTPS POST with sert [closed]

I'm new with Arduino, my IoT project, but most of the code is backend, which is my thing. For arduino, there was a need to send a JSON dictionary with sensor data in a POST request to my domain https:/...
-1 votes
0 answers
23 views

How can I merge these 2 sketches? [duplicate]

How can I merge these 2 sketches? #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <ArduinoOTA.h> const char* ssid = ".........."; ...
  • 1
-1 votes
0 answers
14 views

Detect if Adafruit Feather 8266 is charging

I have an adafruit feather 8266 powered by battery and connected to an USB solar charger. The chip goes into deep sleep to conserve battery. However, I want to detect when the charger is connected and ...

15 30 50 per page
1
2 3 4 5
475