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,350 questions
1
vote
1
answer
118
views
Software serial and RS485
I have 2 Arduino Nano that will communicate in half duplex mode with transceiver using MAX485. But the master has libraries like Wire.h, uses tone() and also receives UART communication.
I'm a ...
0
votes
1
answer
47
views
Use of 3 synchronized PWM pins on Arduino Nano
I try to use three PWM pins on an Arduino Nano, each with 10kHz. I know that there are timer0, timer1 and timer3 but I wonder if I can combine them while ensuring all three PWM pins to be in sync and ...
1
vote
0
answers
57
views
Issue reading sensor values with CD74HC4067 16 Channel Mux
I'm running to an issue when measuring my sensor outputs. Previously I've connected my sensors directly to Nano analog pins and measured fine, but I want to use more sensors so trying a mux. Any help ...
1
vote
1
answer
69
views
Missing data when communicating over UART
So I am working on an Arduino project and have trouble communicating over UART.
I have a SIM7600G-H 4G Module from Waveshare and hooked it up to an Arduino Nano ESP32. The connections are as follows:
...
0
votes
1
answer
64
views
Using Serial Port names as a variable array for looping access to same block of code
If I have multiple NODES one on each Serial port (and / or SoftwareSerial port) all of which have the same code for execution can the names of each Serial port be put into an array such that I can say:...
-1
votes
1
answer
120
views
Connecting the device to Arduino via the UART protocol
The essence of the task
I have a task to connect an external device with my arduino and transfer data to each other via the UART protocol. The external device has 4 pins (Two for power supply and RS-...
0
votes
2
answers
117
views
problem with scripts in Arduino Lab for MicroPython
I am trying to set up an Arduino Nano ESP32 so that I can code in MicroPython. I successfully installed Arduino Lab for MicroPython and flashed the firmware onto the device, but when I try to run the ...
0
votes
0
answers
87
views
Cannot get Arduino Nano with CH340 chip to keep working
I have a bunch of Arduino Nano boards with the CH340 chip. When I want to upload code to a board, it sometimes works the first time, sometimes it doesn't. Afterwards, it mostly doesn't work anymore.
...
0
votes
0
answers
45
views
Cannot ping a host unless I use parseIP from Ethercard
I'm trying to write an Arduino sketch which pings multiple hosts and switches some RGB LEDs to indicate the status of the devices on my network. This question is a followup of ParseIP in the EtherCard ...
-1
votes
2
answers
142
views
I need more free memory on my Arduino. What can I do if I don't want to use float? [closed]
I realize that using float results in loading all or at least parts of the floating point library, which consumes a significant amount of memory.
How can I avoid using float?
-1
votes
1
answer
148
views
RTC DS1307 gives random and incorrect time value [closed]
The RTC module can output the hours as 165, and the minutes as 165. This is some random number that is different every time. Everything works fine, but at random times I get this. Maybe once every ...
1
vote
1
answer
93
views
ParseIP in the EtherCard library does not parse an address twice
I'm trying to modify the pings example from the EtherCard library so I can ping multiple hosts. The end result should be a small device which monitors other devices on my network.
Here is the modified ...
3
votes
2
answers
1k
views
I need compact code to fit in memory
I feel a little like I am back in 1975 trying to fit my code in 4K of RAM.
I am writing some code for an ATTiny88, and the code is starting to get big, relatively speaking. I need to save every byte ...
0
votes
1
answer
64
views
Compiling issues with included library MX1508 for Billy Bass build
Thank you for considering my question.
I have been learning Arduino so I can teach coding basics to my son. I came across a fun project to interface bluetooth with an old singing Billy Bass so he can ...
-1
votes
1
answer
103
views
Reasons for an ATmega328P Nano SuperMini USB-C board not being recognized by a PC/Mac? [closed]
I recently got two of these ATmega328P Nano SuperMini USB-C boards but none of them is being recognized by my PC or Mac.
I'm using the old bootloader setting in the Arduino IDE 2.3.6, CH340 drivers ...
1
vote
1
answer
92
views
Arduino Nano ADC input selection
The maximum ADC sample rate for the '328p, using the default prescaler of 128, is given as roughly 10000 samples per second. Maybe I've missed it, but I can't see whether that is the total rate for ...
1
vote
0
answers
79
views
FS1000A transmitter and MX-RM-5V receiver not working
I'm new to Arduino development. I use Arduino Nano v3 ATmega328P (Old Bootloader). I assembled 2 small boards, one of which is a transmitter with three buttons, and the second is a receiver with three ...
2
votes
1
answer
107
views
Stepper control using Pot over bluetooth (HC-05)
I have intermediate-level Arduino experience but it's been a few years... and, I would like to be more confident in a plan before ordering all the parts. So, basically, this is theoretical. The design ...
0
votes
1
answer
86
views
Connecting two Arduinos via BLE 5.0
I have this issue where I'm transmitting sensor data from Nano Sense Rev 2 (transmitter) board to Nano 33 BLE rev 2 (receiver). The receiver keep failing to detect and connect to the transmitter and ...
-1
votes
1
answer
124
views
avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
I'm working on a linux machine with avrdude and avrgcc. NOT using Arduino IDE.
I'm using Arduino Nano 33 SENSE REV2 BLE, trying to upload a sample blink .c program and getting this error.
This is the ...
1
vote
2
answers
154
views
Controlling a stepper using PIR and Hall effect sensor
I'm trying to make a box that revolves around a pivot point using a NEMA17 stepper motor. The idea is straightforward: US1881 Hall effect sensor will change state based on magnets on the base of the ...
2
votes
2
answers
146
views
Problem sending serial data between Arduino and ATtiny back and forth
I am working on communication between a Arduino and ATtiny13, and I need to get this bare-bone communication to work. There is a Arduino Nano powered by USB cable from the PC, and there is ATtiny13 ...
0
votes
2
answers
152
views
The same code in succesive order with different results, bright onboard led vs dim of the same led, Arduino Nano Every
The code below has a normal bright led on the 5th pin of port F while those on port B, 0, 1, 2 are dimmer. Even if you hold down one button and a moment later simultaneously press another button while ...
0
votes
2
answers
194
views
SoftwareSerial.h: No such file or directory Arduino Nano + DF player
I'm looking to play songs from a DF Player mini and for that I use the SoftwareSerial.h library but my code keeps compiling an error that it's not there. In addition, the error only appears when I use ...
-2
votes
1
answer
66
views
you need to create a tachometer, but not with a hall sensor, but with a photoresistor and an LED
I'm sorry, could you help me create this arduino-based device? you need to create a tachometer, but not with a hall sensor, but with a photoresistor and an LED. The value should be transmitted to the ...
1
vote
2
answers
100
views
Translating PIC PWM settings to ATMega328P
I'm trying to get some C code that runs on a PIC18F, working on an Arduino '328P. It uses an 8-bit timer, PWM, and a LUT to generate sine waves. I hope to get it going using Timer2 on a Nano.
The PIC ...
-1
votes
3
answers
219
views
Arduino Nano timer drifting
https://youtu.be/oVZgFsWsKPM][1]
I'm a beginner in Arduino. I made a 12-hour common cathode 7-segment clock. I made a 7-segment display with LEDs, using Arduino Nano.
If I use a long period of 1,000 ...
-2
votes
1
answer
64
views
BH350 Strain gauge Arudino naon
I have changed the strain gauge of BH350 modules with another strain gauge of equal 350 ohm strain gauge, but after the change, the readings are only 1 or 2. It's like there is no strain gauge ...
-1
votes
1
answer
92
views
Can't connect to Arduino Nano 33 BLE while MicroPython file is running
I am using a Arduino Nano 33 BLE and I'm using MicroPython to write code for my board using Arduino Lab for MicroPython. I uploaded a file with the name main.py to my Arduino to test if it would work ...
0
votes
2
answers
148
views
Connected the 3.3v output and the 5v output together
I accidentally connected the 3.3V output and 5V output to the same connection. How bad is that and what issues could that cause?
I was busy with making my first project which uses a module which runs ...
-1
votes
1
answer
276
views
Installing CH34xVCPDriver on mac
I've tried to install CH34xVCPDriver on my Mac M3 Sonoma and it's not working no matter what I do. I get an error message that says:
Install Tips error: The operation couldn't be completed.
(...
0
votes
1
answer
215
views
Trouble Programming ATTINY1616 with Arduino Nano via UPDI: No Communication
I'm trying to program a board I designed with an ATTINY1616. The schematic is shown in the photo. I'm trying to connect an Arduino Nano. +5V and GND are shared, while the UPDI pin is connected to the ...
0
votes
1
answer
177
views
Arduino seems to be reading incorrect analog I/O. Am I doing something wrong?
I am using an ATTiny88 to measure temperature using a 470 ohm thermistor attached to port A3 on the Arduino.
The thermistor is attached in series with an 1870 ohm resistor connected to Vcc. At room ...
-1
votes
1
answer
72
views
Arduino connect programatically two wires of external 3.3V device
What is a missing puzzle in here, relay, transistor?
I would like to pull pin of external device to the ground programatically using arduino's digital pin.
0
votes
1
answer
124
views
Arduino Nano max current from 5v pin if using 5v 1A wall adapter
I read several answers, but those can be confusing, because it depends on how you provide power to the Arduino.
What if I use a wall adapter with 5 V / 1 A and connect it directly to the Arduino Nano ...
-1
votes
2
answers
219
views
I need two (25 and 30 kHz) pwm output on a nano
How do I create a second output with a different frequency?
void setup() {
const byte DRIVEa = 3; // Timer 2 "B" output: OC2B
pinMode (DRIVEa, OUTPUT); // driver a.
TCCR2A = _BV (...
0
votes
2
answers
777
views
Arduino IDE Failing to Compile Any Sketches
OS: Windows 11
Arduino IDE Version: 2.3.2
I recently opened up my Arduino IDE to find that nothing--absolutely nothing--would compile. Whenever I tried, I got the following error message:
Using board '...
-1
votes
2
answers
268
views
How can I make this program take up less memory?
I'm measuring how long it takes to drain a battery. An Arduino Nano controls an SSD1036 OLED display, a board with two relays, and an INA3221 voltage/current measurement board.
The battery is ...
2
votes
1
answer
292
views
Hardware serial baudrate inconsistent between Arduino nano and standalone 328P
I have a 328P (328P-AUR to be specific, [link]), and in the schematic below is how I've implemented it to a PCB:
Uploading a program works fine, but I hink there is an issue with the clock source, ...
1
vote
2
answers
93
views
Need to delay between electronic dice rolls for Catan
How would I put a delay in the reading of DIC? DIC is a photocell to ground whose light is blocked to stop dice roll. I want to put a delay so someone will not trigger another roll out of turn. The ...
1
vote
0
answers
90
views
rylr498 receiver problem
I have a problem receiving heart rate message tranmission data from the reciever. I was able ot transmit the data from the trasnmitter but I am unavke to recieve the data from the reciever side. This ...
1
vote
1
answer
163
views
GPS module GY-GPS6MV2 only returns numbers
I have a GY-GPS6MV2 connected to a nano. (Also tried UNO same result). RX on GPS goes to TX of Nano PIN 3 and TX on GPS to PIN 4 on Nano.
When I run the code below all I get is a set of numbers. They ...
-1
votes
1
answer
88
views
Arduino Nano Keyboard. Keys keeps pressed
I'm new in coding with Arduino, and I am trying to make a one hand keyboard with joystick as personal project. I tried to make it print some ASCII characters, but I don't know why the button keeps ...
1
vote
1
answer
494
views
ESP32-CAM infinite boot loop
I am currently using an ESP32-CAM with an OV5460 camera, and I am interfacing it with my computer using an Arduino Nano. I am trying to run a camera web server using the Arduino example code. I have ...
1
vote
1
answer
241
views
Confusion re: getting bootloader onto new-out-of-the-box Nano v3.0 (classic)
I've been trying to do a sort of "crash course" in Arduino but there's something I'm still confused about.
I've read about programming ATTiny microcontrollers using Arduino boards, and I've ...
0
votes
2
answers
155
views
Arduino Nano ESP 32 board (ABX00083) SD library not working
I am working on a simple code to write data to a MicroSD card using Arduino nano ESP32 (ABX0083) and Df robot SPI MicroSD card module(DFR0229). I am not able to write to the SD card. I get the error ...
0
votes
1
answer
137
views
Arduino Nano spontaneously stops working and disconnects from computer [closed]
I'm trying to implement an Arkanoid game on a 16x16 RGB matrix (the library is Adafruit_NeoMatrix). The blocks are 2x2 squares, and there are 3 rows with 8 blocks in each. The current state of the ...
1
vote
2
answers
89
views
Can't exit while loop
I made code to make 2 servos work. the sequence of working is to make the servo 1 start rotate 2 cycles then stop and the second servo start rotate for another 2 cycles then detach both of them.
I ...
0
votes
1
answer
197
views
deserializeJson() failed: NoMemory when sending Serial json using ArduinoJson
Hey all I have a sketch that takes up 99% of my storage space since I am using a Arduino Nano.
Although everything in my code fits as-is, there seems to be an issue with me sending a json string over ...
0
votes
1
answer
145
views
Arduino Nano ESD crash despite ESD protection measures
Good day!
I've just ran into a problem with a project of mine that I can't really figure out myself anymore. So i'm hoping someone on here will be able to help...
First things first, I'm trying to ...