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.
1,350 questions
4
votes
2
answers
351
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 ...
3
votes
0
answers
2k
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
182k
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
1k
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
169
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
147
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
816
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
648
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
3k
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
591
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 ...
2
votes
0
answers
334
views
Arduino NANO RF reciever and Digispark Attiny 85 transmitter issues
I am trying to send RF signal from Digispark Attiny 85 (this one) and receive the signal with Arduino NANO V3.0 ATmega328 (this one). Transmitter and receiver are STX882 and SRX882 (these). Library ...
0
votes
1
answer
196
views
DS18B20 doesn't work reliably
like discribed in the title my temperature sensor goes to -127 after a few minutes of run time, it works again after a restart, I have already replaced the sensor and I'm using the same code for the ...
2
votes
0
answers
649
views
GPS speedometer with NEO 6M - latency issue
I have built a speedometer, based on this
youtube video: https://www.youtube.com/watch?v=gKuJxjxNP-k&t=34s
The speedometer is for a car, so it needs to be in real-time and accurate, with the ...
0
votes
2
answers
2k
views
Having trouble uploading sketch to Nano [duplicate]
I have a few cheap Nano clones that I bought online that have worked for the past couple of months. They were working fine today until suddenly the Arduino IDE had trouble uploading sketches to them.
...
2
votes
4
answers
3k
views
How to implement Arduino NANO as a RS-232 to USB adapter (Or do I need a Arduino Mega?) For 3D printer comms
I have a PC upstairs running my 3D printing slicer program (Simplify 3D). In the basement, I have several USB-enable 3D printers. My PC upstairs has a USB-to-RS-232 serial adapter. The serial side of ...
2
votes
1
answer
116
views
Pca9685 & WS2818B, 1 Nano
Arduino n00b here. I currently have an Arduino Nano set up to run 6 servos from a PCA9685 board. I'm looking to add 6 switches and 6 LED indicators to switch servo positions. What I'm curious about is ...
1
vote
0
answers
100
views
Arduino sketch doesn't work when uploaded to arduino nano and OLED display shows npothing (possible issue: lack of memory)
I need some hand here. I wrote some code for a small arduino console-like device that has five pushbuttons, 128x64 I2C OLED display and arduino nano. And it doesn't work when uploaded to arduino nano -...
0
votes
2
answers
2k
views
Arduino Servo MG90S not moving
I'm new with arduino (nano). I am having problems with Servo MG90S, I cant make it move. Im doing the easiest test, Servo cables connected:
Brown -> gnd
Red -> 5v
Orange -> pin 9
my arduino ...
1
vote
1
answer
1k
views
Arduino Nano uploading problems
I am having trouble uploading code to my Arduino Nano. It has been very trusty in the past, but I am getting this new error when uploading any code to it:
avrdude: ser_open(): can't set com-state for &...
1
vote
0
answers
113
views
Which temperature sensor is accurate?
I have an Arduino Nano RP2040 Connect with two temperature sensors. A DHT22 is connected to D2 and pulled up with a 5 kΩ resistor to 5V, and a LSM6DSOX IMU is built in to the board. Here's my code:
#...
3
votes
2
answers
2k
views
USB serial communication arduino nano and jetson nano
I want to communicate between Jetson nano and arduino nano through serial.
I wrote a simple script to test functionality but I receive strange data
here is the arduino code
void setup() {
// put ...
0
votes
1
answer
211
views
arduino nano fried (TWICE!!)
Having the skill to be stupid has managed to fry not one but 2 Arduino nano boards in the same place (I think it is because this part that smoke came out from of has a lump on it that was not there ...
4
votes
1
answer
11k
views
How do I control the onboard LEDs of my Arduino Nano 33 BLE Sense?
I picked up my Arduino Nano 33 BLE Sense for the first time in a while and ran the classic "Blink" sketch to make sure it was alright. After slight usage, I wanted to play with the onboard ...
2
votes
1
answer
195
views
How can I get the Arduino IDE v0021 running on Windows XP to communicate with the latest Nano v3.0
After reading another post
CH340 Nano avrdude: stk500_getsync() not in sync resp=0xa4
I have discovered that the bootloader on current Nano v3.0 has been upgraded. However, the advice given to ...
2
votes
1
answer
741
views
NRF24L01 PA+LNA With Arduino
I am using the NRF module for remote communucation.I have been many research about nrf but my nrf module is not working This is my tranmistter code:
#include <SPI.h>
#include <nRF24L01.h>
#...
2
votes
1
answer
140
views
Need help individually controlling 3 LEDs with 3 toggle switches
I'm trying to individually control 3 LEDs with 3 toggle switches. This is the code I'm using
#define LED_PIN1 2
#define BUTTON_PIN1 14
#define LED_PIN2 3
#define BUTTON_PIN2 15
#define LED_PIN3 4
#...
1
vote
2
answers
1k
views
Rotary encoder weird values
I am trying to understand this rotary encoder I have, but it makes no sense to me.
I am using this rotary encoder:
https://www.amazon.com/gp/product/B07DM2YMT4/
CYT1100 aka CY110 aka EC11
I am using ...
1
vote
1
answer
70
views
Making a servo work for just once after a specific time period without hindering the sensors that are reading the data in a loop
I am making a cansat which will be launched on a sugar rocket. The cansat's Arduino nano will be operating sensors which will read the data and store it in an sd card and also a servo to deploy the ...
1
vote
2
answers
114
views
converting comma delimited Serial message to 7 Unsigned Long variables
Working on a project where I get an input where its a comma delimited string like:
"255,10000000,42949672950254,12,22".
and then the numbers (no commas), would be split into 6 Long ...
4
votes
1
answer
2k
views
Bad readings from 12V pwm fan tachometer signal
I have the following circuit:
(The Arduino is powered via the USB)
The problem is that I the reading from the fan's tachometer signal are incorrect,
I tried to add the two resistors as voltage ...
2
votes
0
answers
183
views
MacOS Ventura freezes/crashes when i plug in my Arduino Nano Clone
I'm using a MacBook Pro 2013 Late with OpenCore Patcher. Currently Ventura 13.3.1 is installed. Before this version was installed, I had no problem using arduino on my MacOS computer. But right now, ...
0
votes
0
answers
223
views
MPU6050 when searching is at address 0x68 but as a result shows only "0"
My circuit uses an Arduino Nano which I communicate via Α4 and A5 via I2C. There are several BMP280, HMC5883 and MPU6050 sensors on the I2C line. While I was dealing with these other two sensors, my ...
0
votes
1
answer
2k
views
Wiring up an ESP 01 to Nano
I've been at this for over a week now and still cant get things working. Im attempting to wire up an ESP-01 chip to a Nano to send AT commands over Serial. I've followed many different tutorials, but ...
1
vote
0
answers
209
views
try to send AT commands from Arduino nano to ESP01
I encountered an issue when I try to send AT commands from Arduino nano to ESP01 I tried to find any tutorial for more helps, but I find nothing. please someone can help me.
I tried the tutorial from ...
2
votes
0
answers
1k
views
Problem using CH340 driver for Nano
I am at my wits end and hope somebody here can provide some much-needed guidance.
My platform is an Asus ROG AMD laptop running Windows 11.
I recently decided to try working with Arduinos and ...
1
vote
1
answer
1k
views
Correct usage of SPI with ISR
My Arduino needs to do:
Run ISR as many times as possible/ as fast as possible.
Occasionally receive data over I2C.
Output data over SPI in ISR.
My question is regarding SPI and ISR.
The ...
1
vote
0
answers
471
views
Arduino Nano 33 BLE power consumption optimization
I am working on building a sensor using Arduino Nano 33 BLE that will measure temperature using two thermistors and angle changes. The measured values will be transmitted over Bluetooth to a ...
2
votes
0
answers
117
views
How to show repeated result on LCD while button is pressing
my results are here.
0 press--"a"
1st press--"b"
2nd press--"c"
3rd press-- still showing "c"
When button pressed 3rd time, It must be repeated to show "a&...
1
vote
1
answer
99
views
What do I need for a plug?
I've manage to build myself an RFID music player which I'm pretty chuffed with. It's definitely a bit home made but it woks and I'm proud of it. I don't know what plug type to buy to sort my problem ...
1
vote
1
answer
690
views
50% duty cycle PWM signal with calculated frequency
#include <PWM.h>
int led = 9;
void setup()
{
InitTimersSafe();
Serial.begin(115200);
Serial.println();
variable_freq();
pinMode(A0,INPUT);
}
void variable_freq()
{
while(true)
{
...
1
vote
0
answers
92
views
Arduino Nano not receiving MIDI messages
so I am currently creating a MIDI to CV module and am still having trouble with my MIDI input circuit. I am following this circuit as my guideline and am sending MIDI messages via MIDI interface with ...
1
vote
0
answers
51
views
Arduino Nano not recieving MIDI Message
I'm building an MIDI to CV converter using an Arduino nano along with a MIDI input circuit, however, when uploading the code and connecting the MIDI to a laptop via USB, the Arduino doesn't recognize ...
1
vote
0
answers
428
views
How to query data from my ELM327 via BLE?
I have a HM-10 module connected to my Arduino Nano that I want to use to get data from a ELM327 OBDII.
I have been able to successfully connect to the ELM327 via:
AT
AT+RESET
AT+BAUD2
AT+ROLE1
AT+...
1
vote
1
answer
978
views
Arduino nano + 4x 7 segment display + 74HC595 - Only dot points are turn on
I am trying to run a thermometer with thermocouple sensor on Arduino Nano.
I have bought 4x 7 segment display and 74HC595 chip. Everything is connected like in the attached diagram below (without ...
2
votes
0
answers
808
views
4x TPIC6B595 + 4x 7 segment display
I am going to use 4x TPIC6B595 and 4x 7 segment display with common anode.
Below You Can find vendor site of this display.
https://sklep.avt.pl/wyswietlacz-led-2-30-57mm-zielony-wa.html
Here is my ...
0
votes
1
answer
2k
views
Arduino nano Serial port not recognized
First sorry for my bad english, not my native lenguage.
Today I started working on my Arduino nano (first time used). When plugged for the first time the "L" led started blinking, after that I tried ...
2
votes
0
answers
78
views
How to connect Arduino to a switch that doesn't accept 10M?
I've been playing around with several Arduino ethernet modules based on the ENC28J60 and the W5500 chipset. All modules are advertised as 10/100M, but in reality only work when the port of a switch is ...
1
vote
1
answer
2k
views
Random artifacts on SSD1306 OLED screen
I'm having a really strange problem with my screen. It's connected in i2c to my Arduino Nano and I'm using a rotary encoder to navigate through a menu.
At startup everything is fine, but when I change ...
0
votes
1
answer
319
views
Have I ruined my Arduino Nano with my terrible soldering (technique and tools!)
So I bought a Arduino Nano and a very cheap soldering iron and solder from Alibaba. I was attempting to solder in some connections and failing pretty hard. A small resister popped off when trying to ...