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
2 answers
42 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 votes
1 answer
41 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 (*...
  • 3
-1 votes
2 answers
48 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 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 ...
-1 votes
1 answer
39 views

I get an error?

void setup() { Serial.begin(9600); pinMode(13,OUTPUT); } void loop() { if(Serial.available()>0) {s_num =Serial.read();} if(s_num=='0'){ digitalWrite(13,HIGH); delay(100); //the specified time for 0 ...
-1 votes
2 answers
133 views

Display a Random Number to Display for T Seconds With Millis() for Dice Roller

I'm coding an electronic dice roller for a project. At the press of a push button (A2), the code must display a random number to the two digit seven segment display for 20 seconds, then display blank. ...
-1 votes
1 answer
505 views

USB Power switch

Can an Arduino power a USB device like a tablet from one of it's pins or do I need a relay? I want to essentially have the Arduino turn on and off a USB charger. Thanks
-1 votes
2 answers
141 views

need at least 5 volts but 3.7 lithium polymer battery does not supply enough Voltage

I am building a device using an Arduino Nano, an OLED display and infrared thermometer sensor. I want to make it rechargeable so I am using a 1 cell lipo battery and a tp4056 circuit protection board, ...
-1 votes
1 answer
45 views

Taking data from main 120V 50/60Hz power

How can I take data from my house main power and reconstruct it signal? I used an transformer and an inverter amplifier to low voltage to 5 volts and read it with A0 analog pin, but I got a very ...
-1 votes
1 answer
51 views

Control 4 digital outputs with one switch

I want to control 4 digital outputs (d0, d1, d2, d3) with one switch. When the Arduino starts, they should all be in state LOW. Now, after pressing the button once, d0 should get HIGH. Another push ...
  • 1
-1 votes
1 answer
3k views

Need to know what USB cable to get for Arduino Nano-33-BLE-Sense [duplicate]

I have recently purchased an Arduino Nano-33-BLE-Sense with Headers and wrongly assumed that it would come with a USB cable with it. I was searching the online store for the cable but the only cable ...
-1 votes
2 answers
1k views

How to power Arduino nano and LED strip?

I am making a project that uses an Arduino nano and a sound detector module to power a 1m LED strip. I got the idea from this video and I am not sure how to power it. My LED strip flashes for a split ...
-1 votes
3 answers
1k views

How to generate .a and .so files to add in arduino project

I know to make a library on arduino ide with source codes, but I cant send my source code to another users who want to use my lib. So I need to make a library with precompiled=true info at library....
-1 votes
1 answer
3k views

What is /dev/tty.usbserial-1420 [duplicate]

I'm a complete newbie with Arduino. I've bought a couple of Nano clones from China. According to supplier description, it is Arduino Nano V3.0 ATMEGA328P ATMEGA328 CH340. Not sure why they list both ...
  • 99
-1 votes
1 answer
602 views

Arduino Nano Midi to cv convertor interesting issue

I created the circuit in this schematic on protoboard, and the code, https://github.com/elkayem/midi2cv I use a dual opamp and a single dac, because i only need note and velocity. The opto i use is, ...
  • 121
-1 votes
2 answers
590 views

Distance measuring utilizing (1 or 2) Arduino Nano's

I would like to develop a small-distance measuring device that will be primarily used in indoor scenarios to measure a distance with cm accuracy (mm if possible). The device would be in a small form ...
-1 votes
2 answers
87 views

Using external battery for motor [closed]

i have a little project going on, where i want to connect vibration motors to an arduino. I found this, with example code but also found other tutorials wish use a capacitor for the motor. What is the ...
-1 votes
1 answer
969 views

Relay Module for water pump [closed]

I want to switch on/off my water pump by using arduino nano, I have 2 channel relay module. Is this module safe for controlling pump? Specifications pump: power = 746 watt (1HP) single phase, voltage =...
-1 votes
1 answer
1k views

Is there a way to send data from Tensorflow to Arduino via Bluetooth?

I am not sure if such a question is accepted here. If not please direct me to a more suitable Exchange. I am planning a small project involving Machine Learning using TensorFlow and Python, which ...
  • 166
-1 votes
1 answer
106 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 ...
  • 1,141
-1 votes
1 answer
317 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,645
-1 votes
2 answers
5k views

Analog pins for 4x4 matrix keypad

I am working on a project on nano and want to use analog pins for 4x4 matrix keypad input. My connections are for keypad are as follows: Digital pins are D10-D13 and Analog pins are A0-A3. A0->14, ...
-1 votes
1 answer
29 views

How compact, small and smart a fluid detector need to be communicate with external systems?

I like to build a fluid(liquid) level detector using Arduino that can send 2 types of information: Status of the Fluid Container (Empty,Full or Below Required Level) Location of Fluid Container Now ...
-1 votes
2 answers
902 views

I2C conflict with 2 Arduinos

I am having some trouble connecting my 2 Arduino Nanos with I2C. I have this configuration: SLAVE RECEIVER Nano with DS1037 and LCD 16x02 on I2C. MASTER SENDER Nano. After some time the Slave ...
-1 votes
2 answers
2k views

Parallel servo control?

I have an Arduino Nano & am success fully controlling 4 servos from it but it then occurred to me that I am controlling these in a serial manner, ie I set 1 position then the next then the next.......
  • 149
-1 votes
1 answer
117 views

interrupt and/or other ressources used by Time functions micros() and delayMicroseconds()

I want to use Arduino Uno (Rev. 3) resp. Arduino Nano for time critical ignition control of a combustion engine. Software is developed under arduino rev. 1.6.2. The only Arduino system functions i ...
  • 9
-1 votes
2 answers
2k views

Arduino + ESP8266 - poll file from a server?

I really need all the help I can get... It's been a week now and I'm still not able to solve the problem. I have text file on a server. The whole address is www.example.com/test.txt I want to read ...
-1 votes
0 answers
22 views

Could I connect two Arduino nanos to one Arduino uno R3 [closed]

Could I connect two Arduino Nanos to 1 Arduino UNO R3 and use the HID chip on the Arduino uno for the joystick? Still new to this and trying to keep the cost down for Arduino boards.
-1 votes
0 answers
38 views

I don't understand why this code doesn't do anything...no errors no nothing [closed]

#include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <Fonts/FreeSans9pt7b.h> #include <Fonts/FreeMonoOblique9pt7b.h> #...
-1 votes
0 answers
34 views

why 848x480 and not 640x480 !? - Nick Gammon VGA on Arduino [closed]

Had a go at Nick Gammon's VGA on http://www.gammon.com.au/forum/?id=11608 I implemented the first sketch in the page which is the monochrome text. My monitor shows something but it's out of whack and ...
-1 votes
2 answers
80 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
-1 votes
0 answers
34 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 votes
1 answer
57 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 ...
-1 votes
2 answers
78 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 ...
-1 votes
1 answer
73 views

Code does not run when arduino is powered with AC adapter

I'm trying to implement the circuit as shown with an arduino nano. The project runs fine when powered via USB port of the arduino. However, the code freezes when connected to an AC adapter. When ...
  • 11
-1 votes
1 answer
35 views

Does an 5V 2.1 A will fit for this Led Schema?

Hello I would like to create an Arduino protoype with Led WS2182B. I currently have Arduino NANO (not UNO, like in this schema) 65 Led WS2182B = Which gives me 3.9 Amp of suply for full brighness (65*...
-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 ...
-1 votes
1 answer
56 views

Arduino Nano-combo NRF2401

I am using two nano-combo for a RC car and when the remote emitter battery is too down if the car was running and battery finally empty the car was still running...is there any way by programming to ...
-1 votes
2 answers
432 views

Running a motor for a 3 seconds continuously with and without interrupt

I have interfaced a dc motor and IR sensor to my nano. The DC motor is supposed to run only if the IR sensor detects an obstacle. Now, I'm trying to get the motor to turn off if continuously ...
-1 votes
1 answer
80 views

Can i exchange my arduino nano for an atmega328p-pu in my project?

Im currently trying to make a smart light switcher that is attached in front of my rooms light switches. It basically mostly consists of two servos (to turn on or off either switch), two button (to ...
  • 121
-1 votes
1 answer
59 views

A problem in l led or arduino nano

When I am working on arduino nano and i uploaded a file that will blink led at 13th pin but rather than at 13th pin l-led is blinking. I even tried resetting it and uploading an empty file and again ...
-1 votes
1 answer
65 views

First time working with arduino, need help adapting project from UNO to NANO

This is my first time working with an arduino and I'm having some issues when trying to copy a program I found online on my Nano. Basically, my project consists in a pulse sensor that sends the pulse ...
-1 votes
1 answer
108 views

FS100A works when Arduino connected to PC but not when connected to Raspberry Pi

I am building a simple circuit which monitors soil humidity in a flower pot. I was able to measure it and send it from one Arduino Nano to another Nano via FS100A transmitter and receiver and ...
  • 1
-1 votes
1 answer
2k views

Can I power 25 LED via USB?

So I'm currently working on a project where I build a WordClock. To display the current time I use WS2812B LEDs which should be white when turned on. Only about 25 leds per time will be turned on, the ...
  • 41
-1 votes
1 answer
2k views

How to stop motor after a desired time?

I am trying to stop a dc motor after a desired amount of time !! And the motor starts upon settling on a condition !! From that very moment i want my motor to just run for 5 seconds and stop!! Below ...
-1 votes
1 answer
444 views

How to use millis instead of delay on Arduino for independent time intervals for two output pins

I wanted to use millis for the code below but stuck in between . can anyone help to change the given code to millis? Code here: void set(){ digitalWrite(on, HIGH); // turn the motor on (...
-1 votes
1 answer
81 views

TinyDuino radio connection

I am currently running a project with 2 TinyDuinos and 2 TinyShields 433MHz Radio (SI4432) in order to pass 3 axes (x , y ,z) from one to the other from long distance. I have tried to concat the ...
-1 votes
1 answer
68 views

Controlling servo via serial port without any delay [duplicate]

I have such code: void setup() { Serial.begin(9600); } void loop() { } void serialEvent() { while (Serial.available()) { Serial.println(Serial.readString()); } } When I send there ...
-1 votes
1 answer
282 views

How does Arduino memorize the last bytes from Bluetooth HC-05?

I have made a home automation project. Description: Light on, off through HC-05 Bluetooth module and my Android app. The problem is when the power is gone, the system stops, that's OK. After that, ...
  • 11
-1 votes
1 answer
222 views

How to track a pressure sensor from analog inputs? [closed]

I am a beginner with arduino. I have been researching pressure sensors composed of 2 conductors that sandwich a layer of velostat. My understanding is the velostat when compressed creates resistance ...