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
3
votes
2answers
104 views

Interconnected Arduinos via digital pins and magnets

Before i get too far into the design phase of a project i have in mind, is there a way to connect arduinos in a non-master/slave manner to pass a few different combinations of HIGH/LOW (say 5) or '...
3
votes
0answers
591 views

Arduino nano clone problem with interrupt on falling edge on pin 2

I've s 1Hz square wave coming from a DS1307 SQW/OUT pin going into pin2 on the Nano that is set up as input with internal pullup enabled. I've set up the interrupt on falling edge but I can't get the ...
3
votes
0answers
924 views

Manchester 433MHz Nano to ATTiny85

My transmitter is a Nano, the receiver is a Tiny85. I use a Logic Analyzer to check if stuff is moving, I can clearly see data coming in at the receiver. The receiver does not 'decode' the data, man....
3
votes
1answer
649 views

Arduino Nano USB Serial Bypass

I have a Nano clone here, that sporadically fails to get detected by my banana pi. This is annoying, because it works for days and hours, but fails to work randomly. The Nano gets it's own power via ...
2
votes
3answers
2k 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 ...
2
votes
3answers
2k views

Arduino minimal power usage

I know there is a lot on this subject on the net but i cant seem to be able to join the dots together. I am trying to make sensor system than can run for as long as possible if not indefinitely using ...
2
votes
4answers
454 views

What are these wires called?

I'm currently developing a quad copter for my school project and I am coming to the part where I am collecting all the parts before I assemble everything. I have recently encountered a roadblock. I ...
2
votes
3answers
8k views

How to run a timer every 12 hours (exceeding the max size of int) without an RTC?

I'm experimenting with a Nano, and trying to trigger an action around twice a day. I'm aware that it's not super accurate, but I don't really mind, as long as it's in the ballpark. I've tried using ...
2
votes
4answers
6k 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. ...
2
votes
5answers
4k views

CH34x board fails with avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 Atemel Mega328P AU1640

I have been given a board(Atmel ATmega328P-AU 1640) to program. I googled and found category of board Arduino Uno/ CH34x-based clone. But when I program an empty program: void setup() { // put ...
2
votes
3answers
713 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
1answer
390 views

Multiple Wire.write() not working for Arduino Nano I2C

Code for Master #include <Wire.h> void setup() { Wire.begin(); Serial.begin(9600); } void loop() { Wire.beginTransmission(9); Wire.write('c'); Serial....
2
votes
4answers
5k views

Writing analog voltages on analog pins of Arduino

Can we write a analog voltage to analog pins A0-A7 of the Arduino Nano (for example)? As in: pinMode(A3, OUTPUT); analogWrite(A3, 200);
2
votes
4answers
2k views

Trouble with NRF24L01

I've been trying on and off to try and get my nrf24l01's working for some time and they never seem to work. Right now I'm just trying to turn a led on and off over the radio and it isn't working. ...
2
votes
3answers
5k views

Why does my Arduino Nano send the wrong voltage on a digital output PIN?

Adruino nano powered by 12v through VIN pin. Normally I expect ~12v on digital output pin, when i write HIGH to this pin, and ~0v when i write LOW. But what I have instead digitalWrite(pin, HIGH); /...
2
votes
1answer
129 views

Converting from Float to Int yielding weird results. What am I doing wrong?

So I am trying to take GPS data with a Neo 6M gpsmodule (that is what is covered up by the square for privacy sake) and process it by adding/multiplying to get large integers representing the GPS data....
2
votes
3answers
1k views

Constructing my own serial command syntax to control arduino

I know this is a basic question, but as a hardware electronics guy and not a programmer I cannot seem to fathom how to do this - so any examples of code would be greatly appreciated: I want the ...
2
votes
2answers
543 views

What is an easy way to power a 3.3v BMP-180 barometer board from a 5v Arduino Nano?

Scenario: I have a functioning weather station (temp/humid, MQ-2 smoke sensor, anemometer), and want to add a barometer. The weather station is outside, linked to my inside display and RTC by the ...
2
votes
2answers
191 views

How many connections can Arduino I2C method create?

I was just learning about I2C between 2 Arduinos, one as sender and another as a receiver So I have got curiosity to know how many Arduinos can be connected to I2C connection in serial? I mean, ...
2
votes
2answers
423 views

Unable to use analog pins as digital inputs

I want to use the analog pin A7 as a digital input pin. As stated in the Arduino docs the analog pins can be configured in the same way like any other digital pin. However, when trying to configure an ...
2
votes
1answer
131 views

Individually addressing LEDs in a multiplexed matrix

I have created my first LED project with a hand made 4X4 LED matrix. The cathodes are joined horizontally to make the rows and the anodes are joined vertically to make the columns the columns. It is ...
2
votes
3answers
298 views

A more elegant way to deal with timers without using delay()?

I am looking for a more elegant way to write a function that performs timer-based tasks as in the case of the code below, which essentially collects 5 sample values from a microphone module over a ...
2
votes
2answers
4k views

433MHz sending not receiving

I'm trying to send data using these cheap parts. When I check the voltage on the data port of the transmitter, I see what I expect, 1.2 and 0.6 fluctuating while sending. But when I check the ...
2
votes
2answers
2k views

Arduino Nano 33 IOT issue

Nano 33 IOT is not detecting by windows . When i plug the usb cable only green light on the board. Board is installed from the board manager. the cable is usb DATA cable and not charging cable. I ...
2
votes
3answers
580 views

Why is Serial.write() slower than memcpy()?

I use Serial.write() to transmit 53 bytes to PC. For the time measurement I use micros() (before and after the write function). There is a delay of 1s after each transmission. The time of the Serial....
2
votes
2answers
4k views

Proteus - How to Debug Invalid Opcode?

While running a program compiled in the Arduino IDE 1.8.5 and then using the .ELF file inside LabCenter Proteus 8.0, for an Arduino Nano ATMEL Mega 328P, for a code involving the use of the ...
2
votes
3answers
5k views

How to receive more than 64 bytes on Arduino?

I am receiving about 90 bytes on the serial port. But Arduino has a serial buffer of 64 bytes only. Because of this limitation I am unable to receive further bytes. char c; void read_response() { ...
2
votes
2answers
2k views

Can I set arbitrary SPI clock speeds?

I would like to interface an ADC (in particular this one: http://www.linear.com/product/LTC1400) with an Arduino Nano via SPI. The specified max clock speed for the ADC is 6.4 MHz. The Nano can do up ...
2
votes
2answers
1k views

Watchdog approach

I'm developing up a project that is designed to run 24/7 (an energy monitor) logging via wifi. Due to a variety of considerations I've ended up with a design that links an Arduino Nano with an ...
2
votes
3answers
2k views

Ultrasonic sensor returns random values on external power supply

my Problem is, that I get random values from my ultra sonic sensor if my arduino is connected to any external power supply (vin port 30) on my arduino nano. If I power up from the laptop usb port, I ...
2
votes
1answer
3k views

What could make an LCD stop working permanently after being connected for 5 seconds to Arduino?

I was using a 20x4 LCD connected to Arduino Uno via a common I2C adapter board. Everything was working perfectly, including the LCD. I had it running like this for a couple of days without any ...
2
votes
2answers
8k views

Arduino Nano with Mac OS Yosemite 10.10

I have an Arduino Nano and I’m trying to use it with Mac OS Yosemite (10.10). However, I’m having issues with the data transfer between the computer and the device. The Arduino is powered (LED is ...
2
votes
2answers
2k views

Function generator with Arduino Nano

I'm trying to convert the project here to an Arduino Nano. I scaled the waveforms from 12 bit to 8 bit values. I replaced the analogReadResolution and analogWriteResolution calls with pinMode(10, ...
2
votes
1answer
9k views

Arduino Wire Types?

I don't know what wires to get for my first Arduino project. I am planning on getting a pre-made light strip that I would control with an Arduino from across my room. Is there any specific type of ...
2
votes
1answer
3k views

Arduino Underwater Inertial Navigation

I am working on prototyping an underwater navigation system with Arduino. It's going to be used to track movement underwater from a starting point and then be able to tell how to get back to that ...
2
votes
2answers
4k views

Arduino LED matrix and 2D array, data seems to be corrupting

Duplicate of this question I'm trying to drive an 8x8 LED matrix with an arduino nano, but I can't get the LEDs to display what I tell it to. I'm using this LED Matrix Here's my code: int row1 = 2;...
2
votes
1answer
76 views

Nature of the voltage reference instability of internal 1.1V reference of ATmega328P (Nano)

The ATmega328P data sheet in table 29-11 on page 324 notes that the internal 1.1V reference (VBG) may vary between 1.0V and 1.2V. In this answer this is called "not stable or accurate". ...
2
votes
1answer
58 views

Substring: What is causing my output to be truncated?

I suspect that I might be using too many resources, because of the strings, but I am new to Arduino, so not sure where I am going wrong. Any help would be appreciated. What it should do when complete:...
2
votes
1answer
79 views

Why are characters with value above 127 "padded" with 1s to be 16 bits long, while ones with values 0-127 aren't?

I am using the Arduino IDE to run and monitor, with an Arduino Nano clone. This code shows what I mean by the question: char foo = 127; char bar = 128; Serial.println(String(foo, BIN)); Serial.println(...
2
votes
3answers
3k views

MAX30100 not working

I am unable to get the MAX30100 sensor to work It keeps throwing the following error: 16:06:32.936 -> Initializing... 16:06:32.936 -> MAX30105 was not found. Please check wiring/power. I am ...
2
votes
1answer
6k views

Emulating a generic Mifare USB peripheral device with RFID-RC522

Hardware Dev Board: Arduino Nano V3.0 Module: RFID-RC522 13.56 MHz Cable: USB A - USB Mini B Configuration Physical Code /* * -------------------------------------------------------------------...
2
votes
1answer
954 views

Interrupts Problem with Flow sensor

#include <Wire.h> //I2C lib #include <LCD.h> #include <LiquidCrystal_I2C.h> // LCD lib LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); const int pot_pin = A0; const ...
2
votes
2answers
2k views

Using SD shield for extra external memory?

I am an Arduino beginner and I am planning to make a musical instrument with it. I want to add record and playback functionalities into the instrument. I figure I will have to store lots of data to ...
2
votes
1answer
9k 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 ...
2
votes
2answers
1k 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 ...
2
votes
3answers
616 views

Is it possible to configure FRAM memory for use as stack and heap?

I'm using the Adafruit I2C FRAM breakout board with my Nano and it works as advertised, but every time I write a variable to this thing I have to use library function calls with addressing. This makes ...
2
votes
1answer
5k views

Arduino Nano TX LED is on

My Arduino nano make weired thing... The TX LED is on when i define a Variable and a digital Pin as output. Do you now if it is a error in the code? If I upload a clear new sketch the LED is off. ~...
2
votes
1answer
351 views

While condition with & bitwise of PINx read

I was looking into ATmega32u4 datasheet to configure the SPI, and there is initialization snippet for data transmission. void SPI_MasterTransmit(char cData) { /* Start transmission */ SPDR = ...
2
votes
1answer
1k views

nrf24l01+ with antenna problem

I just got 4 nrf24l01+ modules with the external antennas, but I'm not able to make them work. I'm using arduino nanos and MySensors to create a gateway and a sensor. The funny thing is that when ...
2
votes
1answer
7k views

Connect Bluetooth remote control with Arduino

For a project I need to connect a Bluetooth Remote control with an Arduino Nano. On the Arduino-side I have an HC-05-Bluetooth module. With the Android Application "Bluetooth Terminal" I can verify ...

1 2
3
4 5
24