Questions tagged [arduino-uno]

The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Not Receiving HC-05 data

I've been trying to use this HC-05 bluetooth module for a project, where the data would be sent to a Max/MSP/jitter program. Initially, every time I connected my bluetooth device to my computer, it ...
0
votes
0answers
5 views

Arduino mega PinChangeInterrupt with 16 bit timer

With reference to this question ::I have written a program by using 16-bit timer, The program is as follows . volatile uint32_t ovfCount = 0; struct Pulse { uint32_t last_toggle; uint32_t width; ...
1
vote
1answer
28 views

Issue using Arduino Mega Timer2 with PinChange Interrupt

I was working on a program to measure the pulse width , for that I thought of using Timer 2 in Arduino mega along with pin change interrupt, The program I have written is as follows volatile float ...
1
vote
1answer
90 views

Can SoftwareSerial be used in an ESP01

I am using ESP01 as a microcontroller that retrieves information from Firebase and sends them over serial to an Arduino Uno for other uses. I am not using NODEMcu since it has few analog pins and ...
0
votes
1answer
59 views

Matrix and State Space Arduino Implementation

I wrote an Arduino Matrix class. Then I used this class to implement State Space on Arduino. During tests I stomped upon a problem. After starting the program it stops at some point. I have no idea ...
1
vote
2answers
3k views

Send data string from Arduino UNO to ESP8266-01

Is there anyway to send a string from an Arduino UNO to a ESP8266-01 (one with only 8 pins RX, TX, CH-PD, vcc, ground, reset, GPIO0, GPIO2) without using without using AT commands. I've looked ...
0
votes
0answers
49 views

How to erase Arduino memory through hardware [closed]

I have an Arduino that I turned into a rubber ducky. But I made a serious mistake. I put the whole code inside void loop(), that's why whenever I connect it to my computer, it executes the script ...
0
votes
2answers
358 views

HC-05 to low cost AB shutter 3

I'm trying to connect a HC-05 to AB Shutter3 module. However, when I try to search AB Shutter3 address via AT commands (AT+INQ) I could not find AB Shutter3. I want to integrate both, so that I can ...
1
vote
1answer
37 views

How to control baby swing?

I am starting an intresting DIY project of baby swing. My son is 3 month old and we have swing made with ropes in our house where he sleeps. I am looking for any electronic component controlled with ...
1
vote
0answers
12 views

Stepper Motor Inconsistent Jittering

I am trying to run a stepper motor using an Arduino stepper motor shield like the Adafruit V1 motor shield. In my code I am just trying to get the motor to rotate forwards and backwards. When I first ...
1
vote
0answers
36 views

How to send commands from ESP8266 to Arduino

I am fairly new to the Arduino ecosystem in general but I will try to explain what I am trying to achieve in the best way possible. I am still not sure what technically I want to do so hopefully ...
0
votes
1answer
51 views

16x2LCD Display serial read extra character

I get extra character (frowning face) when sending a text over the serial monitor(see attached image) When empty string is sent over the serial monitor, the LCD display still shows the extra ...
5
votes
5answers
29k views

LEDs: difference between common anode and common cathode?

What is the difference in using a common anode and common cathode of the 7 Segment in interfacing with the Arduino? How can you change the code if we need to add another 7 Segment display? How can ...
1
vote
0answers
33 views

l298N PWM motor control with Uno is not functioning correctly

I'm working on a self-balancing robot. The self-balancing is not the issue. The issue is that the motors don't respond as they are supposed to. I would understand if it were unable to balance, but the ...
1
vote
2answers
323 views

sro4m-2 waterproof ultrasonic sensor

I bought this waterproof ultrasonic sensor about 5 of them with the part number SR04M-2 Written on the PCB silkscreen Which is different from the usual SR04t-0.2, they are just not working, I don't ...
1
vote
1answer
93 views

Continuous push button detection in for Stepper control

Currently i've working code of controlling stepper motor with pushbuttons. So, basically i have to press two push button to run forward and backward. but the problem is , when i press 1st pushbutton ...
0
votes
1answer
209 views

3,6V DC motor spinning with L298N and Arduino

I'm trying to control a re used DC motor from a drill (3,6V) with a L298N and a Arduino. It's powered with a 5V - 60A power supply. I tried to follow this step by step tutorial (https://www.youtube....
0
votes
1answer
48 views

MAX471 giving too high current readings

I want to measure current using the MAX471 sensor that outputs voltage proportional to the current (1V/A according to the datasheet). To test the module, I connected a 330 ohm resistor to the sensor ...
0
votes
1answer
172 views

Cannot get esp8266 - 12 wifi module to always read analogRead incoming voltage accurately

So I have and arduino uno that is firing an output on pin 8. This code is not in this file just to be clear. From there Im taking that output and using it to fire pin 0 on the wifi module. Im using ...
0
votes
1answer
194 views

Program size optimization

I am trying to spare a few bytes of program size. I faced a problem which I cannot understand and I hope somebody will help. Look at this empty sketch, pleas. It takes just 444 bytes: void setup() { } ...
0
votes
1answer
47 views

How to calculating requirements of power supply for a project

I am starting with electronics and been working with Arduino for some time now. I did some basic LED and servo motor project and was hoping to jump into making an obstacle-avoidance car. I used 4 AA ...
1
vote
1answer
57 views

Arduino send commands fast

I need cnc machine to run as smooth as possible. It receives commands like this "M_XY 10.233 20.123". If i send command by command there is a slight delay between commands and its noticeable....
0
votes
1answer
62 views

Beat 1 LED light is always on - should turn off

/**************************************/ const int lowestPin = 1;//the lowest one attach to const int speaker = 13; int ts = 4;//how many beats you want int count = 1; const int keyPin = 11; const int ...
1
vote
0answers
20 views

Is there any way to do real time voice communication via bluetooth on arduino?

Is there any way to send and play voice between two arduino projects which has connected via blutooth modules. 1st device ( sender ) : has microphone and bluetooth module to send voice. 2nd device ( ...
0
votes
1answer
149 views

Code conversion

Following is the zabbix documentation with the query header format. Document Zabbix I have difficulty implementing this header in C ++ (Arduino), I saw an implementation of what I need in this forum ...
0
votes
1answer
50 views

Arduino not connecting, but running the code I wrote last

My Arduino was working fine one day except it wasn't getting enough power, so I grabbed a 12v power supply, and when I plugged it in nothing happened. So I checked the 2 things behind the port that ...
1
vote
0answers
15 views

Ethernet Shield not connecting

I've mounted an Ethernet Shield on top of an Arduino UNO. The Arduino is connected via usb to my pc and to the network via ethernet through a switch. I'm running a simplified verison of the WebServer ...
0
votes
1answer
29 views

Does setting a value always mean setting a Arduino pin?

One thing that always confused me was why we use int or other commands to set the variables to have pin numbers as if those commands were always restricted to pin numbers only. For example int ledPin =...
0
votes
2answers
285 views

Data Logging GPS with Arduino

I am working on a project for my final in a first year programming course at my high school. I would like to make an Arduino based data logging device that I can bring with my on the mountain biking ...
0
votes
1answer
41 views

Calculate Timezone from GPS Coordinates

I have a uBlox NEO-6M GPS module and it is outputting longitude and latitude. It is also outputting time which is UTC. I want to use the GPS coordinates to calculate the timezone and then subtract and ...
1
vote
1answer
28 views

Sense person connected to TENS unit

So let's say I use a store-bought TENS unit for liability. I want to make a challenge where you need to hold on to the TENS unit for 10 seconds before it activates a solenoid. How can I have an ...
0
votes
1answer
2k views

Incremental encoder code

can somebody tell me what`s wrong with my code, i am using it to calculate rpm using incremental encoder long counter=0; long rpm = 0, z =0; long ini_time = 0; long end_time=0; void setup(){ ...
0
votes
1answer
362 views

Power source for Arduino uno, sparkfun usb shield and adafruit motor shield

I'm having trouble powering my boards altogether. Right now, I'm using 8x AA batteries to power everything. Running my arduino with one shield runs fine, but not with both shields stacked on top of my ...
0
votes
1answer
41 views

Problem with sending IR with at ATMega328P-PU

I have a sketch that sends an IR code every second. It works fine (the correct code is received by my receiving Arduino next to it) on the Arduino but when I try to move the sketch to an ATMega328P-PU,...
-1
votes
0answers
12 views

How to interface lcd16*2,mlx90614(sensor),keypad4*4,esp8266 with Arduino uno?

Im trying to make a covid monitoring system, in which the keypad will take user input , i.e the user will type his phone number in which the tracker will check if the given number is in the cloud(...
-1
votes
1answer
55 views

Need help with millis () function for two linear actuators

Last week I was grateful to receive help programming the Arduino to control two linear actuators. I need help re-writing the code using the millis () function. I am more than happy to reimburse for ...
0
votes
2answers
437 views

Transient and reverse current

Does anyone know (1) how much transient current can be output from a pin and (2) how much (and how long) reverse current an output pin can take? For instance, consider the following circuit (driven ...
0
votes
1answer
63 views

arduino uno com12

In Arduino Uno, com12 board, already Bluetooth code is installed or not? I am doing the project based on robot using Arduino. I uploaded already one code, it is wrong and I want to upload another ...
0
votes
1answer
29 views

Convert a char array to Flash string

I would like to pass a formatted string to a method that accepts a __FlashStringHelper. Here is the method signature: void myMethod(const __FlashStringHelper *str); I have been using snprintf to ...
10
votes
3answers
15k views

How to call C functions from Arduino sketch?

I would like to know if there is a way to call functions that are contained within C files using an Arduino sketch? My C file declares and defines a function. To save putting the messy function ...
4
votes
1answer
54 views

HobbyTronics UNO PRO Board Definition does not work in newer IDE versions

I have a HobbyTronics UNO PRO that replaces the UNO's 328P in DIP with an ATMega1284 on an adapter board: I cannot link to the original page since it does not exist anymore. But, it is available ...
1
vote
0answers
26 views

Arduino Ultrasonic Sensor AnalogRead

i have an ultrasonic sensor. The sensor normally works stably. But I have to carry the data cables of this sensor for 50 meters and take reading. When i do this, when I extend the cable, the values I ...
0
votes
1answer
41 views

How to close humidity sensor at specific humidity

I am using dht humidity and temperature sensor on arduino and i would like to add relay and buzzer on the system. What I would like to do is to close it via buzzer and on 65% humidity run buzzer. The ...
0
votes
1answer
46 views

INA219 with L298N POWER LOGGER

I Have been working on a power logger with INA219 and L298N the thing is, the voltage and current displayed on Serial Monitor is not the same on my multimeter. the Arduino is connected to the pc to ...
0
votes
1answer
62 views

7 segment displays are not working whatsoever

/* MODIFIED TRAFFIC LIGHT SYSTEM W/ A COUNTDOWN TIMER FUNCTION BY JOHN SEONG THIS IS A QUITE ACCURATE SIMULATION OF TORONTO'S TRAFFIC LIGHT SYSTEM WHICH INCLUDES TWO 7-SEGMENT DISPLAYS THAT SHOW THE ...
1
vote
1answer
47 views

working with ultrasonic sensors

I have a little problem dealing with ultrasonic sensor I want a simple thing , when the sensor read High pulse then after it low pulse , turns on the led so I try to make it with a 5cm distance and a ...
1
vote
1answer
30 views

Message parsing from MQTT server

I'm making a NodeMCU based home automation. I adapted code I found on internet for controlling a device (say LED) via MQTT broker hosted on a Raspberry Pi. It works fine. But when I try to scale it up ...
0
votes
0answers
22 views

read from serial monitor then store char in array then print it , please help

Build a program that will accept a name at the keyboard and then puts the name into a 1-D array. Then, use the contents of the array to print out the name.
1
vote
1answer
151 views

Arduino communication to Raspberry Pi using HC-05

I'm using two HC-05 modules on two Arduino UNO boards. One of my modules connected successfully to a raspberry pi port. However the other doesn't want to connect, but sometimes it does and then ...
1
vote
1answer
43 views

Can I control Arduino functions via PWM?

I want to control small functions from an Arduino, things like moving servos or toggling lights. The purpose of these is to decrease the number of channels on a rover I'm constructing. Using the PWM ...

1
2 3 4 5
157