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
22 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); } ...
0
votes
1answer
19 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 ...
1
vote
1answer
28 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 ...
2
votes
1answer
27 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 ...
-1
votes
2answers
219 views

Arduino yes! and after?

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
0answers
9 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 ...
0
votes
1answer
21 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
9 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
40 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
28 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
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
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
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
2answers
25 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
6 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
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
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 ...
-2
votes
1answer
3k views

LCD does not work with if condition

#include <LiquidCrystal.h> #include <Wire.h> LiquidCrystal lcd(2, 3, 4, 5, 11, 12);// initialize the library with the numbers of the interface pins int pirPin = 7; //Variable that will ...
0
votes
1answer
59 views

Problem uploading to board error, but I've selected the port and the board type?

I am having an issue when I try to upload a program to the board. I am working on a Simon Says game, and when I first started uploading, my computer handled it fine. Everything worked properly. ...
0
votes
0answers
12 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
1answer
39 views

Usbasp Arduino Uno Bootloader Flash Error - Win 10

I'm trying to flash an Arduino Uno using usbasp but i'm getting the following error,I have checked all the connection and voltage using multimeter but still this error: Arduino: 1.8.8 (Windows 10), ...
-2
votes
2answers
32 views

Coding multiplexer for 64 IR-sensors [on hold]

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! THX in advance
3
votes
2answers
71 views

Frequency measuring using Arduino (AC analog input)

What I aim to do: To measure the frequency of an AC analog signal generated by an electrodynamic shaker, which has a peak voltage of 10V-- using an Arduino Uno. What I have tried: Tried using a ...
4
votes
8answers
21k views

How to eliminate noise from PWM controlled 12V fan at low speed

I am trying to build a simple fan controller (single fan). So far I have successfully created a circuit which powers the fan with an external 12v DC adapter and added a transistor (NPN) to switch it ...
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 ...
0
votes
1answer
9 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 ...
0
votes
2answers
49 views

Voltage measure range of an arduino?

I recently thought of using an Arduino to measure voltage and I stumbled across the problem that what is the max voltage I can measure??? It is an Arduino Uno and I am thinking that I would also ...
-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 ...
2
votes
0answers
165 views

Uno Ethernet shield and TMP36 reading

I am just getting started with my Uno via the Vilros Ultimate Starter Kit. I've done all of the sample circuits and played around with a few other things. Today I connected the Ethernet shield with ...
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 ...
0
votes
1answer
22 views

what should i use LoRAWAN or PLC? [closed]

I am working on a smart lighting project and I'm supposed to create a communication between each street lamp which is controlled via Arduino UNO. i heard about Power line communication and i feel like ...
1
vote
0answers
51 views

Arduino UNO R3 clone acting as Arduino Nano

I just got a bunch of Arduino Uno R3 (ATmega328P + CH340).In arduino IDE when i'm selecting board as Arduino UNO then i'am getting this error avrdude: Version 6.3-20171130 Copyright (c) 2000-...
0
votes
0answers
30 views

28BYJ-48 with Darlington array [on hold]

I have been hacking away at this for a couple of hours and I'm getting nowhere. I'm converting an old HVAC system in an old car to run a newer system that uses vacuum to open and close flaps. I ...
1
vote
1answer
67 views

Unexplainable int behavior in encoder/LED project

I am trying to use a rotary encoder to cycle through the brightest versions of R, G & B. And it works! Red goes to blue just fine. Then G happens. For some reason, the int for green goes ...
0
votes
1answer
73 views

My Arduino got stuck and continuous looping in if condition

I'm using RTC and when the if condition is true the Time gots stuck and the condition keeps looping. Please help Here is my code: // CONNECTIONS: // DS1302 CLK/SCLK --> 5 // DS1302 DAT/IO --> ...
-1
votes
0answers
17 views

Connecting Arduino to 10hp 3 phase ac motor? [migrated]

I want to connect Arduino to 3 phase 10 hp ac motor. I just want basic functionality that is I should be able to turn it on or off using the code. Is it possible to do with 3 phase solid state relay? ...
0
votes
2answers
74 views

Value read is not changing while rotating pot in arduino?

I am trying to read voltage using analogRead in Arduino Uno from a voltage divider circuit consisting of 1k resistor and 10k pot. The Pot used is bourns 3296. The values obtained only range from 1011 ...
0
votes
1answer
21 views

SG90 servo motor not working

I tried to test a servo motor for a project using this simple circuit but the motor won't move. I've used this before with the same setup and code and it worked, but now suddenly nothing works, even ...
0
votes
1answer
14 views

Serial monitor shows repeated CIPSEND and CIPCLOSE

I'm trying to build a heart rate monitor using ESP-01. The code compiles and uploads well but once uploaded, in the serial monitor it shows the following. It keeps repeat CIPSEND and CIPCLOSE over and ...
0
votes
0answers
18 views
1
vote
0answers
34 views

Setup Firmata for PC-less usage

I want to use an Arduino Uno with Firmata as a standalone datalogger for recording analog signals. I will use power banks to power the Arduino. How is it possible to setup Firmata pins once with PC ...
0
votes
0answers
29 views

i2C master/slave Arduino uno Programming to run 2 motors at once off separate boards

I am attempting to run a master/slave receiver arduino using two arduino uno's. I'm synchronizing both Arduino to control 1 dc motor and 1 stepper motor at once which each of the Arduino UNO board ...
-1
votes
0answers
38 views

i2C Arduino Programming

I am attempting to run aI'm synchronizing both Arduino to control 2 Motor driver module which each of the Arduino UNO board controlling a single motor driver module. For sure there will be one master ...
0
votes
2answers
57 views

How to find out the maximum used stack space?

I am creating an Arduino sketch which involves quite some classes, and I want to check if it will run on an Arduino Uno or Mega (2 KB vs 8 KB SRAM). So far my global variables take up around 1,200 ...
0
votes
0answers
19 views

Using 16x2 LCD code causes error in sensor reading

I haven't done much programming with Arduino, compared to my previous projects this one is kind of a major one. I have one of these DIY Filament extruder , I am trying to add Filament puller and ...
0
votes
0answers
28 views

Load cell and hx711 with arduino

I wanted to connect the load cell with hx711 to Arduino to check the presence of load. If there is load on the load cell then an LED can light up and when there is no load the LED will be off. I tried ...
1
vote
1answer
121 views

declared variable inside void setup is forgotten in void loop

if i declare a var in void setup() and try to do something with it in void loop(), it just says that the variable is undeclared. here is the code: #include "Servo.h" void setup() { Servo servo1; ...