The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0
votes
0answers
24 views

How to modify this code to simulate a binary encoder?

I have come across the following SPI slave code at this site: #include <SPI.h> char buf [100]; volatile byte pos; volatile bool process_it; void setup (void) { Serial.begin (115200); // ...
-1
votes
0answers
18 views

RF433 issue when enabling PWM

On Arduino Nano I plugged a RF 433 MHz receiver. Everything works fine until I turn on PWM on other ports. Then the RF signal gets lost. It seems to be electromagnetic interference (?) but adding an ...
1
vote
1answer
27 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 ...
0
votes
3answers
21 views

Help me get my robotic car to work?

So I recently followed a tutorial on youtube and I've assembled the car and connected all the wires. What I've done: Car Now in the video, when the guy connects all the wires, the wheels constantly ...
0
votes
1answer
18 views

Circuit with a tip120 works with a Led but, don't with a vibrator motor

I have 2 Arduino Nano's. One with RF transmitter and the other with an RF receiver of 433 MHz and both have two 3v vibration motors. I want one Arduino to send a string to the other Arduino to let him ...
0
votes
0answers
59 views

Why did it blow up?

I recently designed a PCB to hold an Arduino Nano, IMU and other components. I'm using this platform as the fly computer of a homemade drone. This is one of my first PCB designs and I'm not an expert, ...
0
votes
0answers
20 views

I get the following error when I typed the below code. “ Stray'\302” in the programme .I tried to sort it but failed

#include <Keypad.h> #include<LiquidCrystal.h> #include<EEPROM.h> LiquidCrystal liquid_crystal_display(9,8,7,6,5,4,); char password[4]; char initial_password[4],new_password[4]; ...
0
votes
1answer
33 views

difference between the nano and the nano every

So I wondered what the difference between the nano and the nano every is and why the nano every is so much cheaper than the nano. I'm new to the microcontroller business and I would like to know ...
0
votes
1answer
63 views

Connecting Peltier module to Arduino Nano

I am a beginner to Arduino programming and started working on my first Arduino project recently to power a Peltier cooling pad. Below is the code I used and in the circuit, I connected the positive (...
0
votes
0answers
30 views

First sprintf-call works, second (identical) does not

In my current project I'm using an Arduino Nano, an RTC-Module, SD-Module and an OLED-Display to log time-values. I'm currently trying to implement following function: char *onString = (char*)...
0
votes
1answer
69 views

Menus not changing when button is pressed TFT 128 x 128

I've just followed a tutorial so that when a button is pressed it goes through a menu. Click once, next slide. Only issue is it isn't appearing on my screen at all. It has uploaded but I'm a total ...
0
votes
1answer
28 views

How to make a custom character on a TFT LCD display? (128x128)

I'm currently using the ucglib library. I'm new to arduino and I'm wanting to simply display a lcd smiley I made with the byte generator. I still have some of the original 'font hello world' stuff ...
1
vote
1answer
54 views

Battery solution Nano 33 iOT

Since the Nano 33 boards are quite new right now, I haven't found any details on how to hook one up with batteries. I'm pretty daft when it comes to electronics (I'm a software man), and I read that ...
0
votes
2answers
30 views

Arduino Nano burns with ESP-01 in parallel

So I have an Arduino Nano powered in parallel with an ESP-01 (for the ESP there is an extra LM1117-5.0 voltage regulator in series). +12V ---------+---------+ | | ...
1
vote
0answers
37 views

ESP32 HCI command for setting BLE TX Power

Does anyone know if there's an HCI command for setting the TX and the advertising power for BLE on an ESP32? I have a Nano 33 IoT and a MKR 1010, and it has its power set annoyingly low for ...
0
votes
0answers
14 views

HM-10 doesn't respond to Arduino

I'm using Arduino Nano R3(old bootloader) and Serial(hardware serial). Arduino -> HM-10 5V -> 5V GND -> GND RX -> TX TX -> RX with (1k/2k voltage divider) Code is below #include <Arduino.h&...
3
votes
1answer
103 views

I2C - Confusion

It's not often I ask a question. This one has me a little stumped though. Scenario: I have an 328PB (internal 8mhz), it speaks to a multiplexer on Wire1 (the PB's second IC2 - Minicore lib). The ...
0
votes
2answers
18 views

Push Button to Drive Power to Servo

I am currently doing a project for a class which uses a few other components such as an LCD, a servo, and such. I want to use a button which acts as a circuit breaker on the Vin of the servo in which ...
0
votes
0answers
32 views

Strange cyclic errors in analogRead on Nano

I am trying to build an emergency shutdown of a gas valve based on the output of a smoke detector. It basically measures the voltage on the buzzer of the smoke detector, and if high enough, changes ...
0
votes
2answers
174 views

Weird sound when modulating the pulse width on Arduino

I'm trying to generate a pulse width modulated sound using Arduino Nano. But it generates the weird sound unlike my expectation. Here's my code: class Phasor { public: Phasor(const float ...
0
votes
0answers
47 views

Arduino IDE gives error a1 is not declared

#include <LiquidCrystal.h> LiquidCrystal lcd(A0,A1,A2,A3,A4,A5); in this code the error given by IDE is 'A1' was not declared in this scope. So whats the problem please help
-1
votes
1answer
40 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 ...
0
votes
0answers
23 views

MPU9250 with Arduino Nano and Arduino Nano 33 BLE

I am trying to read sensor data from two MPU9250s with both one Arduino Nano and a Arduino Nano 33 BLE using SPI. As for the Arduino nano, I was successful to acquire the sensor data and output it in ...
0
votes
1answer
38 views

Arduino stops working when servo makes a few rotations

The sketch rotates servo back and forth with buttons. When I rotate servo MG 995/996R 2-4 times Arduino stops working. Its voltage step-down transformer switches from ~9V to ~3.7V which is not enough ...
0
votes
1answer
43 views

What is the difference between a Hall effect sensor and an inductive one? [closed]

From what I have read, when placed within a magnetic field, a current will flow in both sensors. My goal is to use this kind of sensors to guide a robot thanks to an existing automower loop wire, ...
0
votes
1answer
41 views

Blew my Arduino. Did I wire this correctly?

Hi, I am currently doing a project and it seems that I may have blown my Arduino Nano (or maybe not). The power LED of the Nano was still on and I believe the L pin blinks once every time I press the ...
0
votes
3answers
43 views

Interface a mobile phone's finger print scanner with arduino

Is it possible to salvage a fingerprint scanner from an old and dead smartphone and use it with Arduino? I am not talking about writing an android program and send data to Arduino over Bluetooth or ...
1
vote
3answers
51 views

How can I make my arduino start when a magnet is sensed, and stay running until the application determines it was to shut down

My thought was to use a magnetic reed switch to turn on the arduino. But how do I keep it running if the magnet is moved? The idea is that the application will determine when it is ok to shut off ...
0
votes
2answers
38 views

Using an Arduino Nano to program (as ISP) a standalone 328p

I uploaded the ArduinoISP sketch to an Arduino Nano to use it as a programmer for other chips. It worked successfully to program an ATtiny45, I did the usual wiring between them, and added a 10uF ...
-1
votes
2answers
53 views

Turn on/off low current device (LED) with Arduino

I am just starting with Arduino and my first project consists in switching a LED light with Arduino. I know a relay must be use to control AC high voltage device (i.e. 240V), however, as my LED seems ...
-1
votes
0answers
20 views

Simple MG995 Servo Load?

I recently ordered a 4 pack of cheap MG995 servos from Amazon. I'm a bit confused, I have correct wiring (servo power to 5v, ground, and d9) on my Arduino Nano. I'm running dead simple code, which ...
0
votes
0answers
38 views

What kind of USB cable do I need for my Arduino NANO 33 BLE W/ HEADERS?

I have recently purchased an Arduino Nano from the main site, but it did not come with a USB cable for programming it. I have also checked out the Arduino site and there was no reference for what type ...
0
votes
0answers
32 views

Frequency Doesn't increase when Button Is Pressed

I’m trying to output a frequency that can be increased and decreased by using 2 buttons. I’m trying to first of all configure the first button (which increases the frequency). I’m trying to also add ...
0
votes
3answers
45 views

How can one reset Arduino Nano from NodeMCU?

If one connects the RESET pin on an Arduino Nano to a digital pin on a NodeMCU, will the NodeMCU be able to reset the Nano by setting said pin to LOW?
-1
votes
2answers
48 views

Do comments occupy space in compiled C++ sketch? Arduino / NodeMCU

I tend to leave old code around as comments until I am sure that my current version is stable. Just the way I like working. I am concerned that I may be unnecessarily bloating up my sketches. Do ...
0
votes
0answers
33 views

memcpy is corrupting serial output even before call

I just want to memcpy some data into a buffer, but it completely destroys my serial output. Arduino Nano Arduino IDE || VS Code with Platform.io Here the relevant declarations: uint8_t picture[4170]...
1
vote
1answer
39 views

I2C communication problem with two slaves (atlas scientific) and one Nano (official)

I'm working on a project using an arduino Nano (official) and two peripherals from Atlas Scientific (pH and DO) communicating via i2c. Everthing works fine when i use a usb alimentation connected to ...
0
votes
1answer
43 views

Arduino random LED on

I have a project which has two options No. 1 Randomly turn on one LED from a group of 6 LED (Relay Board) No.2 randomly turn on one LED from a group of 2 LED (Relay Board) The selection of the ...
0
votes
1answer
27 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 ...
0
votes
1answer
34 views

Everything is ready for project . I have one doubt! I am using transmitter + Arduino *Uno*..and receiver + arduino *nano* will it work?

Everything is ready for project except hardware! I have one doubt! I am planning to use transmitter of Arduino Uno and receiver of Arduino Nano. Will it work? Both Uno and Nano obey for same ...
0
votes
0answers
32 views

Arduino RGB IR Controller -> led always close to white

I use arduino nano. When i use this code the rgb light on the fan is showing the colors right int rossoPin = 11; int verdePin = 12; int bluPin = 10; void setup(){ pinMode(rossoPin, OUTPUT); ...
0
votes
0answers
34 views

I tried making a digital tachometer using an IR sensor but my lcd display is showing random characters

#include<LiquidCrystal.h> LiquidCrystal lcd(12, 11, 6, 5, 4, 3); float value = 0; float rev = 0; int rpm; int oldtime = 0; int time; void isr() //interrupt service routine { rev++; } void ...
0
votes
1answer
48 views

Using Arduino fix_fft or arduinoFFT library to filter some specific sound?

I would like to know if there is a way to filter some specific sound using FFT on arduino. For instance, there is wind sound frequency in my analysis and I want to take it off. I searched for that a ...
0
votes
0answers
36 views

Using MOSI and MISO pins for multiple devices

For the device I am creating, I am hooking up an apa102 led strip to pins 11 and 13 to control each LED. But I would also like to hookup my NRF receiver to the arduino, but I also use pins 11 and 13. ...
0
votes
1answer
77 views

LED strip brightness decreases when using multiple strips

Newbie question here. I have bought a 5V, 40A power supply to externally power up some LED strips (WS2812B). The Arduino Nano is powered by a standard USB wall charger (5V). So far I have tested with ...
0
votes
2answers
71 views

How can I program a ATmega328 au tqfp32 ( SMD ) chip? [closed]

I have some experience with the Arduino UNO , Nano , mega etc .. But today I want to upgrade my skills and knowledge to next level . So I am about to design my own PCB for ATmega328 au ( SMD ) but ...
0
votes
2answers
36 views

Reset arduino nano after disabling tx/rx

I know, i am a bit dummy sometimes and i don't know why i actually did this but here it is. I have an arduino nano and i want it to use an external power via the the Vin port using a 12V external ...
0
votes
0answers
37 views

Arduino Every 25k PWM signal

I have written a class for generating a 25khz pwm signal for the Arduino Nano. This works great (pin 9 and 10 only) on the Nano. I want to switch to Arduino Every; this code does no longer work (the ...
0
votes
1answer
32 views

How can I stop a loop when using a servo with a Key input?

How can I stop my following code using a key? Basically the code should run the servo in a loop if "t" is pressed and stop the loop if "s" is pressed. #include <Servo.h> Servo myservo; // ...
1
vote
1answer
31 views

Is the code correct? Nrf24l01

I'm am a beginner, so I'm sorry I have written this wrong. Is this piece of code correct? If not where? Transmitter: #include <SPI.h> #include "RF24.h" int* Msg, mSg, msG; RF24 radio(9, 10);...