Questions tagged [arduino-nano]

The Arduino Nano is a small board based on the ATmega328 or 168. It has male headers, so it can be plugged directly into a breadboard. It is small and compact, and features a USB chip.

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

FreeRTOS only runs one of my tasks and not both

I have 2 tasks to run at the same time, but only the task with the second priority is running. /* * LiftBot: Self-Guided Robot car with Accelerometer for Packet Stability * Components Used: - 1 ...
-1 votes
0 answers
44 views

Circuit only runs properly when powered by USB to laptop [closed]

I am trying to run 3 solenoid valve taps and a 24v DC pump. for this, I used 24v AC to DC and I am powering them separately. Everything works fine when I connect Arduino Nano to the laptop, but when I ...
1 vote
0 answers
51 views

Sampling rate too slow

I have an Arduino Nano connected to an Adafruit H3LIS331 accelerometer. The sampling is initiated by a button press, which sets a delay to prepare for the measurement, and then the sampling begins. ...
-2 votes
0 answers
27 views

Arduino NANO delay issues [closed]

I am designing a alarm sytem which will turn the buzzer on after a certain given time. I want to turn the buzzer on after a 2 hours, so i put the delay to that much microsend and then turn the buzzer ...
1 vote
1 answer
120 views

Why does a simple LED Blink not work using mbed.h PWM and Arduino Nano BLE?

I have set up a very simple test program to blink an builtin LED using PWM. Following the mbed example and setting the period to 4 seconds (0.25 Hz) and duty cycle to 0.5, the expected behaviour is ...
0 votes
1 answer
349 views

Connecting microSD reader and e-paper display to Nano at the same time?

Pretty much as the question states, I'm wondering if it's possible to connect (this: https://www.waveshare.com/7.5inch-HD-e-Paper-HAT.htm ) 7.5" e-paper display that has raspberry pi HAT and an ...
-1 votes
0 answers
32 views

MD Parola Animated Clock Help

I wanted to create a clock with the animation as shown in this article given below, please watch the video almost at the end to view the animation (if the first link doesn't work for some reason try ...
0 votes
1 answer
22 views

Arduino Uno/Nano + ML

I couldn't find any clear answers elsewhere, hence I'm asking here. I have a TensorFlow/TensorFlow Lite model which I have already trained on some sensor data. Now, how can I utilize this model on my ...
0 votes
0 answers
27 views

Arduino Nano ESP32 digitalread() frequency

for a project I'm trying to read an digital sensor signal with an Arduino Nano ESP32. I read on a different forum that the digitalread() function lasts 79 ticks, so with a clock speed of 16MHz this ...
2 votes
2 answers
65 views

I'm trying to make a game of life using an arduino nano and a 24x8 Led Matrix. When I try making area bigger it says not enough memory. What can I do?

I have a problem when changing MAX_X from 8 to 24. I know that the problem is that I am using to many global variables but I don't know how to fix it. #include <LedControl.h> #include "...
-1 votes
0 answers
22 views

Help with Linear Actuator problem 12V

I'm new to the community, I would like your advice to help me with this project. Thank you in advance! I want to power these two 12V Linear Actuators using this LiPo Battery which I bought. And an ...
0 votes
0 answers
17 views

Arduino Nano Er.43

I am using an Arduino Nano clone on Windows 10. Worked perfectly fine for a year until I uploaded a code with some Serial functions. After trouble shooting for hours with drivers, and checking all ...
4 votes
0 answers
292 views

Problem with reading data from ELM327

The idea was to create a bluetooth device on the arduino to read data from the machine (ELM327 v2.1) using the HC-05 bluetooth module. In this code the bluetooth module is switched to MASTER mode and ...
0 votes
0 answers
32 views

I2C: Nano vs Nano 33 BLE

I am using the following sketch: // SPDX-FileCopyrightText: 2023 Carter Nelson for Adafruit Industries // // SPDX-License-Identifier: MIT // -------------------------------------- // i2c_scanner // // ...
2 votes
0 answers
67 views

Reading MAX31888 works with Nano, but not with ATtiny85

I'm using the OneWire library to try and read temperatures from a MAX31888 sensor using this Arduino program: #include <SoftwareSerial.h> #include <OneWire.h> #define RX PB4 #define TX ...
0 votes
1 answer
56 views

Is it possible to use analogWrite() using an external Power Supply Unit?

As far as I know, my Arduino Nano can perform analogWrite() ranging from 0 to 1023 for 0 to 5 V respectively, but I want to control a DC motor which requires 9 V for good performance. Is it possible ...
0 votes
1 answer
33 views

Issue with uploading Arduino sketch on Ubuntu 20.04 [duplicate]

I'm encountering an issue while attempting to upload an Arduino sketch on my Ubuntu 20.04 system. Despite ensuring that the correct board is selected and the USB port is recognized properly, I ...
-1 votes
1 answer
44 views

Arduino works indefinitely without PC contact [closed]

I'm studying H-Bridge for DC motors. I have a 9V battery, DC motor (9v), Arduino Nano and L293D. I'm following Jeremy Bloom's book about Arduino. Well, the system works perfectly with a PC connected. ...
1 vote
0 answers
53 views

PCA9685 servo not working

I am working on a project where I want to connect 12 servos together. I got: Arduino Nano Every PCA9685 16-channel, 12-bit PWM/servo shield Power supply 5 V, 10 A I got a PCA9685 16-channel, 12-bit ...
1 vote
0 answers
74 views

LED button alarm with DS3231 RTC problems

I am a PHP web programmer, but I am a beginner studying Arduino. I would like to inquire about a problem with the following function that I am creating while looking for various references. (This ...
1 vote
5 answers
5k views

Watchdog on Arduino Nano does not recover

I'm trying to add a watchdog on an Arduino Nano, for my code, and I'm following the code in this manual exactly, but after the amount of time for not resetting the watchdog, it resets but does not ...
-1 votes
1 answer
130 views

Code does not run when Arduino is powered by AC adapter

I'm trying to implement the circuit as shown with an Arduino Nano. The project runs fine when powered via the USB port of the Arduino. However, the code freezes when connected to an AC adapter. When ...
0 votes
1 answer
76 views

Addressable LEDs using SM16704

I've been asked to interface with some LED strips that use SM16704 pixel chips. A site search here doesn't show any mentions of this chip, so I wonder if anyone knows if they're compatible with the ...
1 vote
0 answers
53 views

Inaccurate and changed results with ultrasonic sensor

I have an issue using an ultrasonic sensor. The problem is that when I connect the ultrasonic sensor to my Arduino Nano, it always gives some random values, usually 130 cm, I don't know why. I bought ...
1 vote
1 answer
101 views

I can't connect a microSD card

I can’t connect a microSD card to either the Arduino or the ESP32. It needs to be connected to the ESP32; I just tested it on the Arduino to see if it works at all. Equipment: ESP32 devkit v1, Arduino ...
-1 votes
1 answer
151 views

Playing Audio from SD - Get VU, or audio waveform

I am using the library SimpleSDAudio to play a song from my SD card to an op-amp later in the circuit. I would like to take a sample from the audio pin (possibly with a Analog read) to power some ...
1 vote
1 answer
236 views

Multiple Arduinos connected to one display

I have one display screen, and 5 Arduino Nanos. They are checking to see if passwords in a text file hash to a specific hash, then display it on the screen when found. Since they aren't all sending ...
-1 votes
1 answer
159 views

Incorrect reading from DHT22 (on a Nano board)

I have rigged two different DHT22 sensors to an Arduino Nano board. Both temperature readings are more or less comparable but they produce very different humidity readings. The sensors are: Sensor No....
0 votes
3 answers
91 views

Arduino interrupt for serial data on digital pin, that is too large for the serial buffer

I am using an Arduino Nano in combination with a NEO 6m GPS module. The GPS module is sending data, consisting of a few hundred chars, every second. Since I am communicating with my PC over the ...
1 vote
1 answer
720 views

How to pass AT commands to Lora from ESP32 UART?

I have connected "Reyax RYLR998" Lora module to ESP32 UART2, but AT commands passed through Hardware serial not working. #define RXD2 16 #define TXD2 17 void setup() { Serial.begin(...
1 vote
1 answer
248 views

Arduino Nano: MAX30102 and memory problems

We are making a simple pulse oximeter device with an Arduino Nano and a MAX30102 sensor. The problem is the SpO2 reading and processing algorithm of the MAX30102 library literally does signal ...
3 votes
1 answer
237 views

Arduino hangs / freezes - can't figure out why

I am building a remote controlled boat. My remote project freezes after an arbitrary amount of time. The serial stops output, the OLED doesn't update anymore and instructions are not send / received ...
2 votes
1 answer
614 views

Nema 17 stepper motor speed problem

This code is quoted from here. May I know how to increase the speed of the NEMA 17 stepper motor further? I tried to increase the step speed to 2000rpm but it does not even work. It only works for ...
0 votes
3 answers
2k views

`.readFileCounts()` not working on DFPlayer mini module

I just played around using a MP3-TF-16P module, aka DFPlayer mini. The library and the examples I used as a basis can be found here. My current setup contains a button (NC, normally closed), which is ...
0 votes
3 answers
183 views

Arduino Nano Every USB Connection not working

I have two original (designed and assembled in Italy) Arduino Nano Every Boards from a German Web Shop. They came sealed in original packaging. When I try to connect them to my PC, they don't power up....
2 votes
2 answers
207 views

Arduino read thermocouple Type K with ADS1115

I ordered a ADS1115 so I could measure temperature of a type K thermocouple, but I am not managing to get accurate readings. I had it working while having a normal A0 pin, but since the type K table ...
2 votes
3 answers
437 views

Unable to find/connect I2C devices (SHT31 & SGP30)

I have recently purchased an Arduino Nano 33 IOT together with two sensors: Adafruit SHT31-D (https://learn.adafruit.com/adafruit-sht31-d-temperature-and-humidity-sensor-breakout) Adafruit SGP30 (...
0 votes
1 answer
290 views

Building a VU meter

I am building a VU meter with two 5v neopixel rings, two potentiometers, a headphone jack and an Arduino nano. Will 5 volts 1 amp cut it, or do I need more power? FYI I'll be powering it via a DC jack ...
4 votes
2 answers
316 views

"if" condition problem / question

I'm new to Arduino and my question is rather theoretical. I have an Arduino Nano board (Atmega168 processor), a button, a display. I have written a button handler that does not stop code execution. My ...
0 votes
1 answer
399 views

LoRa Ra-02 Module begin and beginPacket not working in Arduino Nano

Here there, recently I am testing Lora Ra-02 module I saw many videos and it is easy to set up, according to this schematic: LoRa SX1278 Module-----Arduino Nano Board 3.3V------- Gnd---------Gnd En/...
3 votes
0 answers
1k views

Arduino Bluetooth upload problem HC-05 v4.0

I upload code into arduino nano using a self-made PCB with bluetooth using this method. I was initially using Arduino Nano (chinese Clone, the one with CH340G) and Bluetooth module HC-05 (version 3.0) ...
11 votes
4 answers
147k views

avrdude ser_open() can't set com-state

When trying to upload the blink sketch to my (unofficial) Arduino Uno, I get the following error: avrdude ser_open() can't set com-state for "\\.\COM3" I have programmed this Arduino before using ...
2 votes
2 answers
1k views

Can’t set duty cycle to 0% with custom PWM

I'm trying to control a heating element with PWM with an Arduino Nano, but the problem is even if I set the duty cycle to 0 it gives a tiny spike. I want to generate a square wave of 1Hz and that's ...
1 vote
2 answers
998 views

Wireless Bluetooth USB HUB using Arduino nano

I have the following problem/idea: I have a electronics workbench and a separate PC desk. Now I have a USB HUB on the workbench, but it doesn't properly work, because the USB-cable to the pc is too ...
0 votes
0 answers
89 views

OpenCV on ESP32 Arduino Nano

I am implementing a program on Arduino Nano ESP32: the KY-037 microphone is connected to the board and collects five seconds of analog signal. Then, an algorithm is applied to create a 128 x 128 ...
0 votes
1 answer
38 views

Confusing stepper reaction to increase in delayMicroseconds()

I have been following this tutorial using the same hardware, TB6600 driver, 42HS48-1704A (yes I think its supposed to be 42hs40 but thats not what it says the sticker) stepper but am controlling via a ...
3 votes
1 answer
647 views

Arduino Nano is performing really slowly, even though the calculations are simple and there are no delays

I'm working on a tiny ping-pong game based on Arduino Nano. Its modes are "person vs person" and "person vs computer" (the computer just tries to keep its racket at the same Y ...
2 votes
2 answers
201 views

Using Internal Timer Interrupt to Read Analog Sensor

I'm having difficultly using an internal timer interrupt with my Arduino Nano to properly capture a specific value from a linear potentiometer and then instantly stopping the actuator. I basically ...
2 votes
1 answer
2k views

How to debug "No device found on cu.usbserial, An error occurred while uploading the sketch"

I am testing a project on Arduino Nano. I copy-paste the code on the Arduino IDE and click "Upload". I see: No device found on cu.usbserial-<unique id> An error occurred while ...
3 votes
1 answer
537 views

led chaser fill color effect

Please help. I am learning a lot about Arduino. Most all in lightning. I am a newbie. I play with nano and LED ws2812 and use fastled library. What ask is to make effect like fill effect. For ...

1
2 3 4 5
27