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 vote
2 answers
57 views

Why is my SPI clock voltage lower at higher frequencies?

I measured that the SPI-Clock of my Arduino Nano in my project didn't reach near 5V. So I quickly tested with a new one, nothing attached except a (mydaq) scope. I measured the SPI clock: 2.5 V @ 8 ...
0 votes
1 answer
65 views

A strange bug in my Arduino ALU

I have discovered a strange error in my Arduino. It's not in the code. I think it's a hardware bug in the ALU of the microcontroller, maybe in clone only. So there is a variable called feedLimit and ...
0 votes
1 answer
37 views

Controlling Arduino through python

How to set the registers of Arduino through python code to vary the sampling rate of Arduino? Can we control Arduino through python?
  • 21
1 vote
1 answer
56 views

Insufficient RX signal delta when using MKR RS485 + Nano, but not Mega

I'm having an issue where an arduino Mega has been used to communicate with an RS485 bus, using an MKR shield [1] as a breakout board. When I build it with a Mega, the system works fine. I've torn ...
1 vote
0 answers
55 views

Error compiling arduino sketch to seeduino xiao for RF24 Module

I am trying to get 2 rf24 modules talking to each other. This is my first real arduino project so bear with my ignorance please. I could get them to work with 2 arduino nano but, when trying to ...
  • 11
1 vote
0 answers
43 views

Relay switch problem: Arduino Nano with a 312 PIR sensor

I am working with a 312 PIR sensor with an Arduino Uno Nano. When sensing motion Port 13 goes High for Time_A (10 minutes). If I then press a push button on the Arduino board it takes Port D2 LOW, ...
  • 11
1 vote
1 answer
124 views

`time.sleep` in python script reading serial output causes erratic behavior

I am attempting to control the position of my computer's cursor using a potentiometer hooked up to my arduino nano. The arduino is running the following code: int potPin = 3; // select the input ...
-1 votes
2 answers
49 views

reading strings from multiple Arduinos

So I have 5 Nanos all trying to crack a password, the idea is each one has one fifth of the list so they can test 5 at a time, then when it is found, I want it to be displayed on a screen I have, the ...
1 vote
1 answer
76 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 ...
2 votes
1 answer
491 views

Space taken by Global Variables

Using Nano's for small programmes I get compilation reports about the amount of space taken by global variables. On a typical progamme it says something like Sketch uses 16316 bytes (53%) of program ...
1 vote
0 answers
36 views

LightBlue to Arduino connection log does not display serial monitor printed data

I'm writing code so that, every time a hall monitor senses, my code additively measures 5 liters of volume as it prints each detection. Then, this data is sent via Bluetooth to a phone. (This is for a ...
2 votes
0 answers
33 views

How to input delay and increase volume measurements with hall sensor detection

I'm writing code so that, every time a hall monitor senses, my code additively measures 5 liters of volume as it prints each detection. Then, this data is sent via Bluetooth to a phone. (This is for a ...
1 vote
1 answer
63 views

I am trying to add a countdown to my Arduino code but it does 0 days, 04:09:36 instead of starting at 7 days

The code I use probably has a math problem since an Arduino can only count a 16 bit integer. This problem is with the WeekDelay() function. The project is for an Aerogarden. It pumps water into the ...
0 votes
2 answers
70 views

Arduino Nano: Send a few bytes over Serial with as little delay as possible

My scenario is the following: I have a few buttons connected to an Arduino Nano, which is connected to my PC over Serial. Now I want to send a few bytes whenever a button is pressed, to be interpreted ...
-1 votes
1 answer
121 views

I have been having a lot of trouble adding a countdown to a piece of code [closed]

This is the code. The /// are where I added the countdown. Unfortunately the countdown only goes down 9 seconds. What I want it to do is go down the full 24 hours. I have been trying to fix this error ...
0 votes
1 answer
36 views

Bootload from a Nano to an ATMega328 without a crystal

I have a program to load from a Aduino Nano as ISP to a ATMega328p chip that will have an internal clock at 16M, but I don't have a crystal handy. Is there a way I can not have to buy a crystal? What ...
  • 167
1 vote
1 answer
73 views

Using 4-digit 7-segment display on Arduino Nano

I want to merge two projects: a "Don't touch your face" hat for Nano and a 7-segment 4-digit display for Uno. I tested both independently and they work. I added an RGB LED to the first, so I ...
1 vote
1 answer
325 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 ...
0 votes
1 answer
74 views

Procedure for changing frequency of Nano or similar

I need to get interrupts at one of three specific rates: 1920, 2000, and 2400 per sec, at a fairly high precision (~10 ppm). I've asked about this on Electronics but I think here might be more ...
  • 221
1 vote
1 answer
434 views

Keyboard.h not found on Arduino nano

I am trying to use keyboard on my Arduino nano, but i get this error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'? As per the answer in Keyboard.h not found, ...
1 vote
0 answers
46 views

Can I use AREF to supply a circuit, when in internal mode? (Nano)

When analogReference(INTERNAL) is set (1.1V), can I use the AREF pin to supply a circuit? E.g. like this: AREF —— R1 —— button switch —— A4 —— R2 —— GND where A4 is configured as analog input (...
  • 111
1 vote
0 answers
51 views

SoftwareSerial fails to receive on Nano but works with Uno [duplicate]

I have built a circuit board that includes a BLE module and an oxygen sensor that has a UART. Writing arbitrary data to the BLE works fine, but for some reason every configuration of SoftwareSerial I ...
1 vote
0 answers
59 views

Store files in AT45DB161D SPI chip to use them from arduino

I am new to this concept but I am wondering if it is possible to store some files on the AT45DB161D dataflash chip. these files must be read by Arduino. I know that I should use a file system and I ...
  • 11
1 vote
1 answer
120 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
80 views

RTClib.h problem

In Library Manager RTClib and DS3231 work somehow with older versions. RTC time can picked only once and then it give bullshit. Using newest versions screen is empty. In picture first time is right, ...
1 vote
1 answer
81 views

Arduino Nano I2C OLED display 0.96 inches 128x64 pixels

I have a strange issue while trying to run the hello world code on an arduino nano connected to an OLED display. This is the code I used: #include <Adafruit_SSD1306.h> Adafruit_SSD1306 ...
  • 21
1 vote
0 answers
49 views

Model locomotive circuit review

I am building a model scale locomotive and therefore use Arduino for the DC motor, smoke generator, sound and lights. Can you help me with reviewing the circuit? Power comes from rechargeable ...
1 vote
1 answer
63 views

Adding an Interrupt to ATtiny45 with Arduino

I recently wrote a simple script to...we'll say, "flash some LED's" and uploaded it to an attiny45. In short, the script cycles through 3 LED's and turns them on for a specified frequency, ...
2 votes
0 answers
64 views

SPI problem with Bitcraze PMW3901 sensors and Arduino NANO

I am currently trying to connect four Bitcraze PMW3901 sensors to an Arduino NANO, but I seem to have issues with the SPI. When I connect two sensors using the code below, it works perfectly: I am ...
  • 21
10 votes
3 answers
3k views

Why are the pin numbers of the diagrams and of the code different?

If I search Google for "arduino nano pin numbers", all results show that the pin number of D2 is 5. But that did not work. I searched for some sample codes, and they were 3 for D3 and 5 for ...
0 votes
3 answers
180 views

Where are these junk characters (from serial) coming from?

I currently have 2 Arduinos both hooked up to HC-12s and have successfully got them communicating. But I am now trying to be able to process the data sent across and store it as a variable so as to ...
  • 3
0 votes
1 answer
153 views

Problem Using pins A4 and A5 for input and output I2C

Hardare used: Arduino nano ( old Bootloader ) Oled Monochrome Display ( 4 pins, 128 x 32 ) MPU 6050 Both display and MPU use A4 and A5 as I2C communication protocol, They interfere, as the MPU is used ...
1 vote
1 answer
84 views

I can change value of only one register on 8-Bit Register integrated circuit (74hc273 / DM74LS273)?

First, please be patient, I'm not electronical person. I am learning Arduino and electronics for hobby and this is my fist time with integrated circuits. Situation: I'm want to extend the Arduino ...
-1 votes
1 answer
65 views

Arduino Sleep to conserve battery - How to intergrade it to existing sketch - HELP pls

My sketch below is simply using a touch sensor to activate a servo motor to go from from initial position 0 to 180 then back to 0. then I want the Adruino NANO to go to sleep to conserve some battery ...
5 votes
0 answers
305 views

nRF24L01 continuously reading closed pipe

I am testing communication between two nRF24L01 modules. The receiver is getting the transmitted message but is also continuously reading (null) data from a closed pipe? I am using the RF24 by TMRh20 ...
  • 111
3 votes
1 answer
157 views

Prevent flash cloning

I need a way to prevent someone from cloning code from arduino. Without protection it can be cloned with advdudees in 2 min. I'm using atmega328p chip on nano. In this state arduino acts as a ...
1 vote
0 answers
65 views

No communication between two stations that include Arduino Nano and nRF24L01

I'm struggling to establish a link between two Arduino Nano using nRF24L01 (the module that contains PA and LNA). I assume I made a coding mistake (May be in the setup method?), and I need help in ...
2 votes
1 answer
199 views

Programming ATMega4809 via Atmel-ICE with Hex File from Arduino IDE - why doesn't the code loop / work?

Background I am programming a 40-pin ATMega4809 (datasheet) using ATMEL-ICE programmer. I'm simply using the Atmel Studio to upload a HEX file to the chip. I generate the HEX file using the Arduino ...
  • 384
1 vote
0 answers
196 views

Battery supply vs laptop supply [duplicate]

Setup: I have wired up the arduino, motor and battery as shown. (12 and 5 of L293D are not connected to anything) D11,D10...D6 means that those pins on the L293D are connected to digital pins 11-6 on ...
1 vote
0 answers
29 views

Is it possible to control android accessibility with arduino nano?

I am trying to build an ACC device. when a button is pressed the changes should be made via android accessibility mode. I am using arduino nano, and I don't know how to control android using arduino.
3 votes
1 answer
550 views

DFPlayer Mini does not boot reliably after being powered down

For a low power project, I need to power up the DFPlayer Mini module, let it say something, and power it down again using an Arduino Nano (w/o power regulator and LEDs). In the idle time, the Arduino ...
  • 51
1 vote
1 answer
127 views

arduino nano with lora only runs once if connected to battery

this code works perfectly if connected with usb cable. but as soon as i connect my Arduino nano with battery (two 18650 batteries in series connected to VIN) it runs loop only once. it sends only 0 to ...
1 vote
0 answers
162 views

NRF24L01 receiver flooded with data packets

Following this tutorial I attempted making an NRF transmitter and receiver using an Arduino Nano. On the transmitter side I used the following code: // SimpleTx - the master or the transmitter #...
4 votes
3 answers
1k views

Arduino voltage misunderstanding

For arduino nano. I set digital pins 1,2,3,4,5 to HIGH (I do this using digitalWrite(pin,HIGH) for each pin). Does this mean that 5V is being sent through each of the pins so in total there is 25V ...
2 votes
0 answers
88 views

Low Power, SD Card module and SCK

in order to minimise power consumption in a project using the Arduino Nano, I need to set pin D13 to HIGH after using it as SCK for transferring data to an SD card module (I use the SD.h module. I ...
  • 51
3 votes
1 answer
83 views

How do you get 2 PWM pins to inversely bitbang at 25 KHz on a Nano?

I need 2 PWM pins to oscillate at 25 KHz but they need to oscillate inverse to each other. When one is high, the other must be low and vise-versa. I want to do this with a Nano.
  • 151
1 vote
1 answer
137 views

AW9523B I2C on Arduino Nano

I'm testing the AW9523B IO expander with an Arduino Nano. I can't get the device to be recognized. Using I2C scanner to find all attached I2C devices. I've connected AW9523B to the correct pins to the ...
  • 151
1 vote
2 answers
159 views

Arduino Pull-Down Resistors

I'm building what I thought was a simple Arduino Nano project... right up until it caught fire! I am a long-time reader of stack exchange and I always find the answers to my questions somewhere on ...
  • 11
1 vote
1 answer
744 views

How to fade LED in a defined time using FastLED

I'm using FastLED library, Arduino Nano and 5 addressable LEDs (WS2812B). I'd like to create the sequence in the image attached. (all in white color for example) I know how to turn ON each LED every 0....
1 vote
3 answers
301 views

Can I pass data from an Arduino Nano to a Websocket Server via USB?

I have an Arduino Nano, and a local Java WebSocket server (ws://localhost:8888) run by a .jar file on my computer. I'm wondering if it's possible to send data (text, numbers etc.) from the Arduino ...

1
2
3 4 5
25