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
1 answer
59 views

How to add colour change to the strobe coding?

I have this strobe effect working. However, I would like to change the colour of the LEDs after each 'strobe sequence'. How can it be achieved? The code I am using is this one: // Basic code ...
1 vote
3 answers
63 views

Is there a way to strip a library from all unused parts and defines, automatically?

Say you want to investigate part of the code you use from a rather large library, but it's buried between all kinds of #defines and classes etc, that you're never gonna use in your code. Is there a ...
-1 votes
1 answer
43 views

Why does "Get Board Info" not work, but I can still program my Arduino Nano? [closed]

Dear Stack Exchangers, I have been working with Arduinos for probably 10 years, and as a habit the first thing I do when I connect a device to the USB port is run the "Tools > Get Board Info&...
0 votes
1 answer
66 views

How to read and Serial.print the contents (current values) of an 8-bit register?

Currently I'm using: ADMUX = 0b01100000; //example for (int i = 7; i >= 0; i--) { Serial.print(bitRead(ADMUX, i)); } This correctly prints: 01100000 But is there a simpler way? Before ...
0 votes
1 answer
53 views

How to improve button turn on/off experience

I have simple circuit turning lights on and off on button click. It is working quite fine but there is a small issue with button click itself, it is not fully reliable. Turning lights on is pretty ...
1 vote
1 answer
57 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(...
0 votes
0 answers
159 views

MP3-TF-16P only works while connected to serial monitor

I am building a project with Arduino Nano and the component in the subject, which, as far as I understand, can be assimilated to a DFPlayerMini (not sure if it's the same thing or it's just a cheap ...
1 vote
1 answer
38 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
1 answer
25 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 ...
0 votes
3 answers
83 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 ...
1 vote
1 answer
226 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
155 views

How can I read this digital pin for Nano by using AVR's Atmel Studo?

How can I read digital pin 6 in AVR? I set the pin as input as follows: DDRD = B0100000; //this will set pin 6 as input But how can I now digital read this pin?: Another way of putting it: how can ...
-1 votes
2 answers
51 views

Robot car not working

My robot car won’t respond to my command. The code below worked before however, this time there is no response. I’ve tried experimenting with the code in the first while loop. I’ve tried different ...
1 vote
0 answers
50 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'...
1 vote
1 answer
47 views

IF statement to run even if the requirement isn't met anymore

I have built a flasher for the headlamps on my race car. Whilst it works when I hold the switch down, if I release the switch and the circuit is closed my IF statements requirements are no longer met ...
-1 votes
2 answers
90 views

Strange problems driving an Optocoupler (PC123) with a Nano

I'm having some strange issues getting a Nano to drive a PC123 optocoupler properly. What I'm trying to do: In the real world, I need to press a button ONCE, and have the device that I'm connecting ...
1 vote
1 answer
62 views

What is the best way to assign pins to an LED Cube?

I have made an LED cube that is a 3x3x3 design and was wondering if there is way to make a function in the Arduino IDE where each the layers of LEDs can be represented by a list with 1 being on and 0 ...
2 votes
2 answers
703 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 ...
1 vote
1 answer
115 views

Arduino integration with VESC issue

I am trying to integrate the vesc with arduino and I am running a simple code to print the voltage and other data into the serial monitor. Below is the code for reference. When I chekc the output, it ...
0 votes
1 answer
93 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
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 ...
0 votes
1 answer
1k views

Powering 8-channel relay correctly

Replication Steps: 595N shift register powered by arduino Each output on register connected to 1 of 8 relays in relay board Arduino programmed to loop over each 8, triggering 1 relay at a time ...
2 votes
1 answer
138 views

Latency in Websocket

I am using Websocket, for a communication from my mobile phone to a NodeMCU, and transmitting 4 channel, data, through 4 different Websocket Ports. the NodeMCU control code is here: // ============ By ...
0 votes
3 answers
1k views

how do i connect my Arduino Nano to my Linux Laptop

update: I uninstalled the portable package of Arduino IDE, completely, and installed the IDE using sudo apt install arduino. yes, I verified that my Nano was plugged in, the status on the bottom right ...
0 votes
0 answers
58 views

Magnetic levitation failing

I followed a Youtube video here and it has instructions at here. The concept is easy which is try to levitate a magnet and balance it using Hall-sensor by changing the PWM of the electromagnet to ...
0 votes
1 answer
446 views

How to use H3LIS331DL 3-Axis Linear Accelerometer with arduino to detect Harsh braking of vehicle

I am a newbie here, Recently I was working with H3LIS331DL 3-Axis Linear Accelerometer I²C Mini Module Here is code for the X, Y, Z-axis. #include <movingAvg.h> #include <...
1 vote
1 answer
67 views

How to load scal factor external to the code?

We know that, we need calibration factors (scale factors) to read current sensor data (ACS758) to arduino. I am also using voltage reader using voltage divider circuit for my project. I need to build ...
0 votes
0 answers
23 views

SIM800L cannot wait for network

I provided LiPo 3.7V 3 cells 3000mAh to SIM800L. The led blynks stably every 3 seconds which means The module has made contact with the cellular network. I ran the code below and it outputs Waiting ...
1 vote
1 answer
121 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 ...
0 votes
1 answer
192 views

Arduino: how can I search for missing library header files

How can I search for blank library header files (i.e. .h files)?
-1 votes
0 answers
38 views

Help required to refine my Arduino code and run the TEST loop at a specific interval irrespective of the time required to execute the loop

#include <Wire.h> #include <Adafruit_MCP4725.h> #include <Adafruit_ADS1X15.h> Adafruit_ADS1115 ads; /* Use this for the 16-bit version */ Adafruit_MCP4725 dac; const byte numChars ...
1 vote
1 answer
68 views

Pushbutton firing somewhat randomly

I have a circuit which consists of a pushbutton and 2 relays. The power supply is driven either over USB, where the circuit seems to work fine, or powered by a linear regulator board I've knocked ...
-1 votes
2 answers
82 views

How to connect a 4 channel relay switch directly to a 5V power source?

When connecting a 4 channel relay to a Arduino Pro mini, there is a noticeable power drain from the board when relays are active. This is clearly visible as the 16x2 LCD dims. I remember reading that ...
3 votes
1 answer
107 views

I'm using nRF2401 and in my transmitter and receiver the Rx is not blinking and Tx is blinking; why does Rx not blink?

I did a search on the meaning of RX and TX and it seems TX means sending data and RX means receiving data. So when my transmitter is turned off, my receiver looks like this and it works with a battery:...
1 vote
2 answers
2k views

Real Time clock module error-DS3231

This is not a code error I have been using DS3231 RTC module with battery. When I bought this module It worked perfectly now when I get it to use, The time is running perfectly. when I set the current ...
3 votes
1 answer
552 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 ...
1 vote
1 answer
92 views

Can I re-purpose any GPIO pin to work as TX and RX in MKR1500 board

I am using a fingerprint sensor and a VESC which connects to the Arduino MKR 1500 board using TX and RX pins. Is there a way that I could re-purpose any other GPIO pins to behave the same?
-1 votes
1 answer
61 views

NRF24L01 Communication

Good morning you all. I have just recently joined this site, after having problems on the Arduino Forum, with logging in. I'm doing a project with an rc car with Arduino Nano, and the NRF24L01 ...
-2 votes
1 answer
27 views

Is it possible to connect 2 PLC which have Ethernet interfaces using Ethernet shield, arduino Nano and SX1278?

I need to connect 2 PLC which have Ethernet interfaces over 1 km and i was thinking of connecting via SPI an ethernet shield and an SX1278 module to a arduino nano (UNO) board. Do i need logical ...
1 vote
1 answer
368 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 vote
1 answer
61 views

No GPS data Neo 6M DFRduino Nano

I checked several answers for same question but none of them help. I also changed the nano board and GPS module but without luck. I ran it outdoor. This post question had same issue except my date ...
-1 votes
2 answers
1k views

Arduino Nano 33 IoT LSM6DS3: get gyro angle in degrees

I have an Arduino Nano 33 IoT and I want to get the angle of it using the built-in gyro but I can't seem to find any example code that does this. The default gyro and accelerometer example code doesn'...
0 votes
1 answer
104 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 ...
1 vote
1 answer
903 views

vk2828u7g5lf GPS module over SoftwareSerial

So my goal was simple. Trying to get a GPS speed, and show it on a display (later use it to control a stepper motor). I am using the vk2828u7g5lf GPS module from Banggood, which after days of ...
-1 votes
1 answer
42 views

Share interrupt service between class

I would like to share interrupt routine between class. I followed this tutorial. But I need to call a member function in callback function, I have the issue : This is my code : Timer.h static void (*...
0 votes
0 answers
40 views

Cannot upload sketch to DFRduino nano

I previously succeed in uploading the code to DFRDuino Nano (Arduino Nano Compatible) (with wrong digital pins) but after changing pin I cannot upload it again. From the document, I changed back the ...
1 vote
1 answer
28 views

How to receive data from Xbee in AT mode on Arduino Nano

I need to print data on the Arduino serial monitor received from the Xbee in AT mode. I have searched on most forums and have not found anything on how to do this. I have my Xbee tx connected to ...
2 votes
2 answers
435 views

Trouble with Arduino Nano Every and radio transmission using RH_RF69.h

I give some help for students working on the Cansat Contest. I am trying to connect a RFM69 Radio Module to an Arduino Nano Every. Nothing works : compiling the simpliest program: #include <RH_RF69....
0 votes
1 answer
963 views

Two flow sensors, one ESP32, LCD and/or Arduino

I want to build a flow meter but the Gal/Min rating of something like this flow meter is too low. I am thinking of strapping two side by side with suitable plenums for In and Out. I have found some ...
1 vote
2 answers
96 views

How to hook up a HC-06 to Arduino Nano

So I have an arduino nano hooked up to hc-06 however every diagram of the hookup wires shows some kind of resistors (1K and 2K, rather high resistances to ignore), and I completely overlooked them. I ...

1
2 3 4 5
25