Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [arduino-uno]

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

0
votes
1answer
457 views

Arduino Uno + aRest + ESP8266

So, I can use the aRest library to program to the ESP8266 standalone, but if I have the ESP8266 connected to the Arduino Uno, can I still use the aRest library? Or will this no longer work? I am ...
0
votes
1answer
59 views

A1-A5 pins not declared in this scope error

When I set my board to 'Generic ESP8266 module' then only A0 pin of arduino is working while all other analog pins are coming out of scope , when I set the board to 'arduino /genuino uno' , then "...
0
votes
1answer
353 views

SPI conflict with two shields - IOREF?

Update: I've refactored the code to be very resilient to boards missing or not being able to talk to them. Then I tinkered with a bunch of pins and learned that it all comes down to the IOREF pin ...
0
votes
1answer
31 views

why my arduino uno r3 restart when plugged in to a battery(9v)

i have a personal challenge that is to make a arduino avoidance robot it has a"hc-sr04 ultrasonic sensor, a servo, bread board(for the sharing of vcc and gnd), l9110s motor driver, and two dc motors, ...
0
votes
1answer
565 views

Connect Arduino to PLC (Data Exchange)

The Arduino should read data from a PLC. Has anyone experience with this? What would be possible interfaces? I would prefer OPC-UA, but all the research I did, only OPC-DA was mentioned. Thanks in ...
0
votes
1answer
44 views

I am getting expected unqualified id before if [closed]

#include <IRremote.h> int IRpin = 11; IRrecv irrecv(IRpin); decode_results results; int Relay1=4; // Initializing the pins for Relay int Relay2=5; int Relay3=6; int Relay4=7; int ...
0
votes
0answers
20 views

Only take certain characters from Arduino Serial Output [duplicate]

I am trying to create a ble scanner but only want the device address to be displayed The device address is the 12 characters before the :-0 in the outputs. In my code shown below I have tried to run ...
0
votes
1answer
27 views

Split serial monitor output to only save part of the output

This is the output i get from the serial monitor from using a HM10 in . How could i go about splitting the data using arduino uno. I only want to save the last 12 digits before the :- (4CAA0DE091B7) ...
0
votes
1answer
50 views

Switch Control Between Two Different Techniques

I have implemented PID control of a generator governor to maintain a constant RPM using an Arduino Uno. It works pretty well, but there is a tradeoff between stabilty and response time. Using PID ...
0
votes
1answer
60 views

Arduino Uno will not connect to MAC computer running Sierra

I purchased an Arduino Uno. I am trying to set it up, but when I got to the "port" on my MAC, there is no option to select anything related to my board. The only connections the port tab allows me to ...
2
votes
1answer
407 views

Arduino Uno unable to detect serial port on MAC os Mojave 10.14.2

Ive upgraded to Mojave. I've never used Arduino before. I was given Arduino Uno. Arduino Uno does not find any serial ports... can't load Blink example (the first step) In blind frustration, I ...
1
vote
3answers
188 views

Why am I getting this error- “exit status 1 expected ';' before '{' token ”

void setup() { pinMode{13, OUTPUT}; } void loop() { digitalWrite{13, HIGH}; }
2
votes
2answers
2k views

I can't upload my program to Arduino Uno

I've not used my Arduino for about 2 months. Before this time it worked fine, but now when I want to upload my program I get this error: Couldn't find a Board on the selected port. Check that you ...
0
votes
0answers
29 views

Servo not moving

I have connected my servomotor (MG996R) to my L293D motor shield, which is connected to an Arduino Uno R3 Board. I use 4x AA 1.2V NiMH batteries to power the shield, and a regular 9V battery to power ...
0
votes
0answers
31 views

Stop getting values from arduino after some time

I have a strange problem, I have Arduino UNO/MEGA and I need to get Gyro sensors's data and I want to see the data in the serial monitor. Seems like a simple task, I wrote a simple C program which ...
1
vote
2answers
84 views

How to send and receive unsigned int from one arduino to another arduino

I'm trying to send some big numbers ranging from 0-62000 from one arduino to another via serial communication. I'm using unsigned int to hold values from 0 to 65535. And I'm using serial.print() and ...
1
vote
0answers
39 views

local libraries and include dependencies

I'm using PlatformIO in Atom for Arduino programming. I get dependencies error when build. This is my reproduction sample code: /lib/mylib/mylib.h #ifndef MYLIB_H #define MYLIB_H #include <...
2
votes
1answer
33 views

expected unqualified id-before '/' token ---— can someone help, please [closed]

/* Multiple State Handling * 05-22-2019 */ #define button 3 //Push button on D3 #define lowbeam 5 //Low Beam on D5 #define highbeam 6 ...
0
votes
0answers
33 views

Can´t load a program into my ESP01 using an ArduinoUno

This is my problem, I´ve been trying to load a program(any program) into mi ESP01 and because I do not have the usb adapter, I decided to use my Arduino Uno to do the work. This is my first time ...
0
votes
0answers
13 views

How to wire an lcd and a button [duplicate]

Anyone know how to wire a lcd with a button to react when the button is pressed and print on the lcd
-1
votes
1answer
27 views

Code and wire a LCD and button [closed]

I need to code and wire: “Button is pressed.” to an LCD screen when a button is pressed. When the button is released, the LCD should display, “Button is released.” NEED HELP!!!
0
votes
2answers
67 views

Controlling multiple 12v solenoids with 5v relay modules (Arduino Reset Issue)

I have 4 12V(1A) solenoids running on a 12V(4.16A) power supply. Each solenoid circuit is controlled by a 5V relay module connected to the Arduino Uno (powered by USB). The solenoids actuate ...
1
vote
2answers
1k views

GSM and GPS module don't work together

I am trying to create a project which involves getting latitude and longitude via GPS Module and send it via GSM Module. My problem here is that individual code is working perfectly. However, if am to ...
-1
votes
3answers
4k views

Arduino : How to write a variable value into a text file and modify it in the SD card? [closed]

I want to write a variable value into a text file in the SD card and modify it while reading if needed. I found a text reading code which reads a desired line in the text file.(not tested) //reading ...
2
votes
1answer
15k views

Getting BPM from the given code

I have found code that can blink an LED on Arduino according to Heart Beat. I am using AD8232 as a sensor for Heart Rate. Code for it is: // Variables int PulseSensorPurplePin = 0; // Pulse Sensor ...
1
vote
1answer
16 views

How to control two 12 V motors with the dual MAX 14870 Motor Drive Shield for Arduino?

How to control two 12 V motors with the dual MAX 14870 Motor Drive Shield for Arduino? I am a beginner and I need help on how to control two 12 V motors using the Pololu dual MAX 14870 ...
0
votes
1answer
48 views

Arduino programming with multiple loops

I was trying to program my Arduino (along with a connected motor controller) to switch from cycle to cycle with this program. It doesn't seem to work however. There's still plenty of storage space ...
1
vote
1answer
47 views

Dynamically create functions for AccelStepper that use Adafrut_StepperMotor.oneStep methods?

In the Adafruit_MotorShieldV2Library>Accel_MultiStepper example, AccelSteppers are initialized using the following static forwardstep1 and backwardstep1: #include <Wire.h> #include <...
1
vote
3answers
16k views

SMS Receiving problem - Arduino Uno and SIM900A GSM Module

My intention is to control an LED according to the content of the SMS received. For example, if the SMS is "ON", turn on the LED and if it is "OFF", turn it off. I referred many sites and got the ...
-3
votes
2answers
49 views

Coding multiplexer for 64 IR-sensors [closed]

I'm new to arduino and I was hoping if anybody can show me how to code a multiplexer (CD4051BE) for 64 IR-sensors? Really need it! Okay, To be more direct the problem is a software and not a hardware ...
-1
votes
0answers
46 views

What configuration is needed to use an ATMega328p micro-controller on a breadboard [migrated]

I previously bought an Arduino Uno that came with a store bought/prebuilt PCB and ATMega328p to program it and use the pins. I also have a second ATMega328p that was bought by itself and I ...
0
votes
0answers
26 views

OSCOKIRQ failed to assert with USB HOST and SD card

I am having an issue using a MAX 3421 EE based Arduino USB Host shield and an SD card shield. From my understanding, they should both function as long as they are using different CS/SS pins and only ...
0
votes
0answers
29 views

Can't connect my ESP-12F to WiFi with my Arduino Uno

Recently I bought this wifi adapter for my IOT projects that I connected to my arduino uno that seems to not working. I have tried with the arduino ESP8266WiFi library with RX connected to pin 0 and ...
3
votes
1answer
45 views

Why I am connecting positive wire in the circuit?

I have constructed a simple fade in and fade out circuit similar to given on this website https://roboindia.com/tutorials/arduino-analog-output-led-fade Now I am connecting a wire from 5V power pins ...
0
votes
0answers
13 views

Bluno Connection Difficulty

I'm having difficulty connecting to my new Arduino Bluno. I have connected the board using microusb to my laptop. I have also installed the relevant plugin. When I try to use the online interface I ...
0
votes
0answers
36 views

NaN for reading from AM2302 from Arduino Uno

I want to read sensor values from 4x AM2302 to an Arduino UNO, and then pass those values for data logging to Raspberry Pi via Serial communication over USB cable. The sensors are installed at 4x ...
-1
votes
2answers
162 views

How do i fade a colorwipe from off to on in 1 color?

So I want to make the same effect as a colorwipe (like going around in a circle turning leds on till they all turn on) except that instead of going from off to 100% brightness immediately I need it to ...
0
votes
1answer
23 views

Atmega328p and cp2102 with error avrdude: stk500_getsync(): not in sync: resp=0x00 [closed]

I recently bought a usb/ttl cp2102 converter for testing with a standalone Atmega328p, I made the DTR connection with the pin 1 in the Atmega using a ceramic capacitor of 0.10uf (104) so that when I ...
0
votes
1answer
34 views

RGB LED circuit problem

I have written the following code for RGB LED:- const int RED =11; const int GREEN = 10; const int BLUE= 9; void setup() { pinMode(RED,OUTPUT); pinMode(GREEN,OUTPUT); pinMode(BLUE,OUTPUT); } ...
1
vote
1answer
33 views

Code for two bulb fading alternatively

I have written this code const int A = 3; const int B = 5; void setup() { pinMode(A, OUTPUT); pinMode(B, OUTPUT); } void loop() { for(int i=1;i<=255;i++) { int j =255-i; ...
1
vote
2answers
1k views

Reading data from airspeed v3 eagle tree

I am trying to get values from this sensor Airspeed v3 from eagle tree but it seems my I2C is not working properly. I bought a module in third party mode and followed these instructions from the ...
-1
votes
2answers
253 views

Arduino yes! and after? [closed]

I am new to electronics and am currently working with an Arduino UNO. I know the basics of PCB manufacturing (Besides, I'm fiddling with mine, very basic of course) Anytime I'm curious about how to ...
0
votes
1answer
24 views

how to write Arduino code for a stepper motor to move an arm back and forth 180 degrees

I am currently working on a project which involves picking up plastic balls and depositing them in a box. I am trying to use a stepper motor to move an arm which is attached to a square piece of ...
0
votes
0answers
12 views

Arduino Sensor Values to Raspberry Pi using NRF24

Im trying to send temperature sensor data through NRF24L01 to Raspberry Pi and read it in Raspberry Pi using python. But the temperature sensor data comes to the Raspberry Pi as letters, which I found ...
0
votes
1answer
41 views

Modifying a code

I use this code to turn on/off a small 5v dc motor. How can I modify it so that the arduino writes the potentiometer value to the motor when it is in ON state ? int speed = analogRead(pot) / 4; ...
1
vote
0answers
30 views

Interfacing Uno to Logitech Attack3 Joystick

I bought a Logitech Attack3 joystick at a garage sale for a couple of bucks and now I want to use it for something useful, like controlling a car or my small robotic arm. This joystick has 11 buttons ...
0
votes
1answer
42 views

Reset Button not working + Can't Upload code , What is wrong?

I was testing and debugging a code I wrote for a robot with 3 stepper motors on (Arduino Uno + CNCShield V3 + a4988 stepper drivers). I want to disable drivers at will. so I bypassed EN pin on 2 of ...
0
votes
0answers
17 views

UDP Packet not receiving

I started a project where I wanted to send sensor data from one arduino to another and let this 2nd Arduino send the data to a tablet to visualize sensordata like speed, temperature etc. I wanted to ...
0
votes
0answers
9 views

Xbee S2B does not receive any data

i am using 2 XBee pro S2B, im using coordinator in API mode, and router also in API mode i connect the coordinator to arduino and run this program #include Xbee.h #include <SoftwareSerial.h> ...
0
votes
0answers
17 views

Power Factor Measurement

I'm developing a system to measure the power factor between two waves and using a XOR to get the time between them. The programming and the circuit seems fine but some times I get the power factor as ...