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
2answers
22 views

Viewing gps NMEA sentences

I have the Arduino uno and gps module working. Using the tinygps library examples, I get latitude and longtitude, etc. I want to view the gps NMEA data sentence by sentence also. Serial.write(ss.read()...
0
votes
0answers
22 views

How to detect a colored cube with arduino? [on hold]

I am trying to build an automated robot that will be placed in a labyrinth where 6 green wooden cubes will be hidden, as well as some decoy cubes with other colors. It is supposed to detect the green ...
0
votes
0answers
24 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
28 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 ...
0
votes
0answers
16 views

how to google firebase real time data base send data [on hold]

how to sim800 gsm gprs modem http request and response google firebase i can read this AT OK AT+SAPBR=3,1,"APN","VODAFONE" AT+SAPBR=3,1,"APN","VODAFONE" OK AT+SAPBR=1,1 AT+SAPBR=1,1 OK AT+...
1
vote
3answers
171 views

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

void setup() { pinMode{13, OUTPUT}; } void loop() { digitalWrite{13, HIGH}; }
1
vote
0answers
29 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 <...
0
votes
0answers
19 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 ...
1
vote
1answer
26 views

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

/* 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
1answer
42 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
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
21 views

Code and wire a LCD and button [on hold]

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
0answers
35 views

Store the user input in variable

I have an Arduino project that consists of retrieving the user's input from a 4x4 keyboard, storing it in a variable to perform operations with or simply storing them in an SD card. What I did: I ...
-3
votes
0answers
21 views

Hello. We want to make our ZUMO 32U4 robot to move forward 2m in a straight line using PID controller.I used the encoder example from arduino [on hold]

Please help with code as i need do not have much knowledge on the pid. We want to make our ZUMO 32U4 robot to move forward 2m in a straight line using PID controller.I used the encoder example from ...
0
votes
1answer
16 views

Powering a L293D + 2 motors + servo

I would like to power a L293D Motor Shield, two DC motors and a servo motor. I'm using an Arduino Uno R3. Here are the motor specs : DC motor Servo motor Apparently my motors don't need more than ...
0
votes
2answers
51 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
1answer
14 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 ...
-1
votes
0answers
23 views

metering linear speed of object with out rotating part [on hold]

HI their I am searching for an Arduino sensor which is capable of metering linear speed of object,with out rotating part.The object is used in farming area and it is carried by the farmer inorder to ...
0
votes
1answer
45 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
votes
0answers
45 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
22 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 ...
1
vote
2answers
77 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 ...
0
votes
0answers
11 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
30 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 ...
0
votes
0answers
29 views

Design of a wireless microphone amplification system [on hold]

(1) The wireless microphone adopts analog frequency modulation, and the carrier frequency ranges from 88MHz to 108MHz. The antenna length is less than 0.5 meters. You can listen to the microphone ...
0
votes
1answer
19 views

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

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 ...
-1
votes
0answers
31 views

Arduino Super Mario theme with push button and potentiometer [on hold]

I have a very important favor to ask. Can somebody edit my code to have a push button and a potentiometer. I have the code for the super Mario theme song, but not the code for the push button and the ...
0
votes
1answer
31 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; ...
3
votes
1answer
44 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
18 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 ...
-1
votes
2answers
246 views

Arduino yes! and after? [on hold]

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
10 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
32 views

16-Channel 12-bit PWM/Servo Shield check if it is powered by adapter

I'm using Adafruit 16-Channel 12-bit PWM/Servo Shield with Arduino Uno controller In setup() I have a number of default positions pwm.setPWM(0, 0, 170); for motors with plug of USB to PC and turning ...
0
votes
0answers
15 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
1answer
22 views

Display not showing output - Arduino Wattmeter

I have been playing with this code for some time now, I am able to show the results in an 16X2 LCD display, but I am not able to do it in an OLED. here is the code #include <SPI.h> #...
0
votes
2answers
30 views

DC motor phototransistor control

So basically I have a circuit with a phototransistor, and want to convert the phototransistor value into a PWM signal that can control the speed of the motor. The code I came up with is below, however ...
0
votes
0answers
16 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 ...
0
votes
1answer
39 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
1answer
31 views

Tinkercad but offline?

I have some issues with network and would like to work with arduino everywhere. I use Tinkercad which is great, but I would like to installit to my laptop and work without using WiFi. I couldn't find ...
0
votes
0answers
13 views

PT100 and MAX31865 readings showing wrong

I am using PT100 (3 Wire) to measure the temperature with Arduino Uno and MAX31865. I have connected everything perfectly. Configuration in the code i am using is : max1.begin(MAX31865_3WIRE); And ...
0
votes
2answers
28 views

Arduino nano / uno analog pin

I'm working on a project where I need 7 analog pins. I read the datasheet of Ardnuino Uno : 6 analog pins available. So I decided to use an arduino mega with 16 analog pin available. Then I saw the ...
0
votes
0answers
13 views

SMS text after lower case 'w' get lost in standard GSM library's SendSMS example [duplicate]

I am using an SIM 900A GSM module with arduino Uno and this program given in GSM library example https://www.arduino.cc/en/Tutorial/GSMExamplesSendSMS. But if there is lower case 'w' in sms text, then ...
-3
votes
2answers
42 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 ...
0
votes
1answer
11 views

How Programing the nodeMCU Through OTA using GPRS?

How Programming the nodeMCU Through OTA using GPRS? Hi Everyone I need big help. Actually, I m using NodemCU one of my project. the setup in Remote location, that place dont have a wifi option so I ...
-1
votes
1answer
16 views

ADS1115, ZMPT101b and Arduino Uno listing program for AC measurement

I got problem in my result where my ADC read cannot give the biggest and the lowest ADC Value if I am using ADS1115. meanwhile, when I am not using ADS1115 I can get the biggest and the lowest ADC ...
-1
votes
0answers
33 views

What components do i need to control a 24V electromagnet with arduino [closed]

The viltage required is 24V power is 2.5W
0
votes
1answer
44 views

Help with Bluetooth shield

Hey guys I have this Bluetooth shield Does anybody know how I can get it to connect to Arduino? I can't find any guides on it. I have this serial program that I want to use to turn on a led. but ...