Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
vote
0answers
557 views

Arduino nano stk500_getsync() attempt 1 of 10: not in sync: resp=0xe1

I have been building a project using an arduino nano clone. It uses the CH340 chip. It worked perfectly, and a week later it now doesnt. When I want to upload code in arduino IDE I get the error ...
0
votes
3answers
486 views

How to use the HC-05 properly?

It all started when I was working on my Arduino project, which involves an Arduino Nano, an HC05 module and a bunch of sensors (DHT 11, soil moisture and LDR) with Blynk App. Everything worked as it ...
0
votes
2answers
918 views

Measuring Lithium ion cell voltage used to power Arduino via a boost module

Can I measure lithium ion cell voltage with Arduino ADC which is used to power the same Arduino through a boost module (XL6009)? The output voltage of boost module is 9 volts.
1
vote
1answer
328 views

Nano v3 dual power source use & detection

I would like to run a Nano 3.0 from both the VIN (mains power supply 7V) and USB power (backup). I understand it selects the highest voltage and switches to VIN at 6.6V. However I am unsure of the ...
1
vote
1answer
409 views

HC-05 bridge using Arduino Nano and GNU Screen

I connect an HC-05 module to an Arduino nano with CH341 serial chip (voltage divider on RX pin). I am trying to make a bridge for a test, i.e. serial in, echo local and echo to Bluetooth and vice ...
0
votes
2answers
639 views

Rfid reader and SD card shield won't work together

I recently encountered a problem that's been bugging me for days. I want to make a project using a RFID reader and log data on an SD card with an Arduino Nano, but apparently no matter what I do, I ...
1
vote
1answer
448 views

Templated class: How to create instance and work with it?

I have created a class like this: #ifndef MyList_h #define MyList_h #include "Arduino.h" template <typename T> class MyList { public: MyList(void); ~MyList(void); void addItem(T* ...
1
vote
2answers
121 views

Arduino doesn't boot unless I short USB pin 1-2 (VCC/Data -)

I've made my own AVR programmer with an Arduino Nano V3 clone. It has been working fine, but yesterday I was trying to program a faulty board that pulled too much current. Was powering via USB and my ...
0
votes
0answers
73 views

Spurious temp readings with DHT11

I have a very simple circuit and program to read the temperature and humidity from a DHT11 sensor and an Arduino Nano. When connected to the PC all works as expected but when I switch to a battery (...
0
votes
3answers
332 views

Battery life calculation using Nano, NRF24L01+ and window magnetic reed switch

I'm trying to make my own home wireless security system. I will be using probably 3 AA batteries to power these devices. My problem is that I need to know if the batteries will be enough to power ...
0
votes
0answers
51 views

How to keep Arduino buzzer off if changes are less than 3%?

I am using the following sketch to monitor water level in a tank. It triggers the buzzer if water level crosses 99%. If the water level is at 100%, the buzzer will turn of after few seconds, but it ...
0
votes
1answer
125 views

Interfacing Aduino Nano and RDM8800

I'm attempting to use an Arduino Nano with the RDM8800 to read data from NFC tags. After soldering wires between the Nano and the RDM8800, I attempted to test these devices using code similar to what ...
0
votes
0answers
582 views

Using a 12V DC adapter to power Arduino nano, 12v Solenoid and an Hygrometer

First of all I am very novice in electronics so bare with me. I am trying to make a self watering system using arduino nano, first I tried the fly fish hygrometer module with the 5V power of the ...
0
votes
3answers
264 views

Why doesn't millis() use 1 µsec or 1 msec interrupt?

Arduino millis() does not make use of one millisecond interrupt. Instead they make use of 1,024 µsec interrupts and manipulate. Any specific reason why this was implemented this way? In one case, we ...
3
votes
4answers
2k views

Using millis() to toggle an LED every 500 milliseconds

I thought the code below would toggle an LED every 500 milliseconds. But it does not work. I'm not able to catch the mistake, which must be very silly. void setup() { pinMode(3, OUTPUT); } void ...
0
votes
2answers
7k views

Arduino Uno versus Arduino Nano power consumption

I have both an Arduino Uno and an Arduino Nano but I can't decide which one to use for my project. My aim is to maximize battery lifetime. I have also implemented an 8-second watchdog timer to ...
0
votes
2answers
509 views

Can I measure multiple photoresistors from one pin?

I would like to make a laser sensor to detect light coming from a 650nm diode. My current idea would be to use CdS photoresistors/LDRs. I want to measure a few (4-8?) at once, where light falling onto ...
0
votes
3answers
287 views

What options do I have to get 5v on my current project?

I'm very new to arduino and have started work on my first project, a simple little web server. I'm using a NodeMCU with an sd card module and screen. The issue is that in order to power my sd card ...
0
votes
1answer
645 views

Battery life with Nano v3

Easy secret knock detector to trigger anything with only an Arduino and a few cheap components First of all I need to state that I'm new to Arduino and electronics in general. My question is about a ...
0
votes
1answer
297 views

Can we use analog input pins as a parameter of analogWrite() for PWM? [closed]

int led = A1; void setup() { pinMode(led, OUTPUT); } void loop() { analogWrite(led, 188.7); delay(100); analogWrite(led ,0); delay(100); } Like this and it works! I mean I am getting the ...
0
votes
2answers
1k views

Arduino Nano and SIM800L on Battery Power

I'm very new to Arduino and everything related but I'm highly interested to learn more. However, I've run into a problem right in the beginning. I want to build some sort of portable emergency/...
0
votes
1answer
446 views

Arduino Servo with Serial

I have an interesting problem. I want to control ESC and servo with Arduino. I'm using HC-12 to communicate with 2 Arduino and I'm using SoftwareSerial on the nano. #include <SoftwareSerial.h> ...
0
votes
2answers
2k views

Stop Buzzer after some seconds/time?

This is a "water level alarm/display" sketch using and Arduino and ultrasonic sensor. The buzzer gets on when the water level hits 100% or more. But most of the time the water level will stay @ 100%, ...
0
votes
1answer
402 views

Servo start to turn like madman with simple if statement

I tried to write a simple program. Press button 1 servo goes to position 1, press button 2 servo goes to position 2. But when I hook everything up my Servo goes full Crazy mode. It starts to jiggle ...
1
vote
4answers
1k views

How to reduce sketch size? [closed]

How to reduce sketch size? I got an error that “Sketch uses 30,044 bytes (104%) of program storage space. Maximum is 28,672 bytes.” I can't reduce function in sketch.I can't change ATmega32u4,now. ...
0
votes
1answer
3k views

Arduino Nano + RC522 + w5500 Ethernet Module

has anyone had any experience wiring up an arduino nano with an RC522 RFID module and a W5500 ethernet module? i can get each of them to work individually, but i cannot get them to work together. i am ...
3
votes
3answers
1k views

Calling I2C functions inside an ISR

I have an Adafruit 2.8" cap touch display, which has an interrupt pin (IRQ). I tried to use this with my Arduino Nano, but encountered a problem: When trying to get the touched point from the display ...
3
votes
1answer
3k views

Button with switch timer and reset time function + LED feedback. What am I doing wrong?

Beginner here. I´ve been trying to implement a button function timer working with millis() instead of delay as I want the button to be responsive while the timer is running. So far I´ve managed to ...
6
votes
2answers
537 views

Storage usage of methods compared to copied code

When you have really small snippets of code that are repeated several times in your micro controller program, is it better to write a method? I mean better in terms of performance and storage usage. I ...
1
vote
0answers
314 views

Arduino Nano Stops Working after Soldering [closed]

I recently got given a few CH340G Arduino Nano's and I tested them by uploading the blink sketch and they worked fine. However, I have soldered the provided header pins to two of them now and they ...
0
votes
1answer
112 views

Arduino nano and wemos sd shield

Is it possible use Arduino nano with wemos sd shield? If I can, how to I connect sd shield to arduino and what modification I need to do on library setting?
-1
votes
1answer
100 views

Linux IDE 1.0.6 & Nano: Problem with if statement [closed]

This is a basic battery monitor for a solar-powered control box. It keeps the solar panels tracking the sun. The Arduino monitors the voltage on the battery and turns on an AC-powered battery ...
0
votes
0answers
52 views

Should an Arduino Nano get power from analog pins? [duplicate]

I am measuring/monitoring the voltage of the 5 volt supply using the A6 pin of a Nano. Everything worked fine until I needed to occasionally toggle the power of the nano. Now when I remove the 5 volts ...
0
votes
0answers
189 views

Arduino SPI and I2C Combo [duplicate]

We are trying to communicate between 2 Arduino's (1 Nano and 1 Mega) and a Raspberry Pi. This communication works till we add an SPI Connection to our RFID Scanner (RC522). We ran into the problem ...
0
votes
1answer
104 views

'TCCR0B' undeclared

I am trying to compile the function in http://playground.arduino.cc/Code/PwmFrequency This produces a couple of errors sketch/setPwmFrequency.c:34:3: error: unknown type name 'byte' byte mode; ...
1
vote
2answers
2k views

Arduino I2C communication between Raspberry Pi

We are trying to communicate between multiple Arduino's (in this example a Nano and a Mega) and a Raspberry Pi. The Raspberry pi is defined as master and the Arduino's as slaves. We would also like ...
0
votes
1answer
328 views

Calculate power requirement for 64 rgb led ws2812b [closed]

Hi I am working on small project where I want to run ws2812b module via arduino and lipo battery. I have purchased 64 matrix for ws2812b from eBay and lipo battery with 500mah. I am looking to find ...
0
votes
2answers
615 views

Fast switching of high load using an IGBT [closed]

I want to control a high load with fast switching times (motorbike ignition coil) using an arduino. I found an IGBT that claims to be purpose built for that use case (ISL9V3040P3). This IGBT has an ...
1
vote
0answers
102 views

Combining mysensors with SD card (on an Ethernet Shield v2)

I'm trying to combine a MySensors network with the usage of a SD card. Currently I'm working with the SD card reader on the EthernetShield v2. The NRF24L01+ chip I'm using is also using SPI but we ...
0
votes
3answers
520 views

Voice recognition without module, is it possible? [closed]

I'm trying to figure out how to process a voice signal for simple purposes. Wherever I look people using or suggesting recognition modules for Arduino. What I'm wondering: is this possible to make a ...
0
votes
2answers
3k views

Arduino Nano, ESP8266-01 communication

In my last question I got the suggestion to get a voltage regulator to power my ESP8266, so I went out to buy one and in the end my ESP8266 turned on. Then I started wiring the Tx/Rx pins through the ...
3
votes
2answers
634 views

Arduino Nano problems with ESP8266

this is my first post here because I'm a bit lost at the moment. I currently have my ESP8266-01 hocked up to the Nano like this: The issue I'm having is that it won't even turn on, only when I'm ...
-1
votes
2answers
154 views

Whats wrong with my code?

Basically what i am trying to do is use an ir remote to turn an rgb on/off and have a few preset colors as well as being able to increase/decrease red/green/blue independently. I don't know much about ...
0
votes
1answer
150 views

Auto Fish Feeder

Good day, I am new to Arduino, but have made some nice projects work. I have a n issue with a Auto fish feeder. I have used a servo that I modified to run 360. I am having a issue when the Nano board ...
1
vote
0answers
563 views

Arduino GY273 HMC5883L Constant Value

I have a GY-273 which has HMC5883L chip(I guess). I am trying to get data I find a few codes and library(I don't have enough information about HMC5883L) but always all serial port screen there are ...
1
vote
1answer
89 views

How to use IRremote library with atmega8a

A few days ago I tested a circuit on a breadboard based on a ATmega8a with 1 MHz internal oscilator. It sould turn on and off a relay based on a IR code that is received and if it matches the ...
0
votes
0answers
276 views

Arduino GPS GY-NEO-6M No Sat and Time

I have a GY-NEO-6M-0-001 GPS module. I try to find location but there is no sat even if I try high location. Also, in serial port output, all date and time are zero. Here it is: FullExample.ino An ...
0
votes
0answers
91 views

R24 Incompatibility with TimerOne on Nano

I am attempting to build a sketch on a Nano which receives a regular pulsed signal from an NRF24L01+ board and uses the time-interval between pulses to generate a regular pulsed output generated by an ...
0
votes
6answers
490 views

Arduino self programming

I have noticed that some atmel chips can do "self programming" and I'm doing a hobbyist project where I need to change the "setting" of my arduino without code-reuploading through Arduino IDE. Is it ...
2
votes
2answers
208 views

Merging arduino code

I have a project where we need to create a virtual cane for blind people and it will have 3 functions: Pressure button when pressed will connect to an android phone through HC-06 Bluetooth modulo to ...