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
24 views

How do I keep track of the time passed in this code? (PCR machine)

I am desperate need of help with my code. It is meant to be a biology project (a pcr machine) and I struggle with inplementing a time tracker. Everytime the cyclus goes to a function, I need it to ...
-1
votes
1answer
27 views

Interfacing MPU6050 with Arduino uno [closed]

What is the meaning of "volatile bool mpuInterrupt = false; " in Arduino Program interfacing MPU6050?
0
votes
1answer
42 views

(Arduino Uno) Is my code for a follow the sun project valid? We want the motor to stop when both photoresistors have the same amount of light

int RlightPin=0; //pin for right Photoresistor int LlightPin=1; //pin for left Photoresistor int TranslateAnalogR=0; int TranslateAnalogL= 1; #include <Servo.h> //Servo library. int pos=90; ...
0
votes
1answer
39 views

Newbie question: Set servo at certain degrees when something happens

I am trying to set my servo at f.e. 90 degrees when the friendlyValue of the soil sensor is < 50%. The servo isn't moving at all, is it because the code is running too fast and the servo doesn't ...
0
votes
1answer
35 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
52 views

Newbe needing help with fixed string length

im trying to build a bit of test equipment that will talk to some software and it needs to send a fix string. when the voltage changes the string length does as well. i need to cap the results to 4 in ...
0
votes
1answer
35 views

Cannot get pins on esp 8266 adafruit wifi module to read HIGH on pin 15

I have an esp8266 and I cannot get the value to read HIGH when 3.3v is applied to directly to pin by hand. I have an Arduino Uno powering the esp8266. It connects to the WiFi like it should, and now ...
-1
votes
1answer
30 views

Problems with Arduino + IR + Raw code low memory

im having a problem with my new project with arduino + ir emitter + big raw codes. I've tryed this way: https://gist.github.com/jjmjr/41ed083c8229d0218c962641c5af27b0 As you can see each of my raw ...
0
votes
1answer
65 views

Arduino Uno: avrdude: stk500_recv(): programmer is not responding

I have an original Arduino Uno board purchased directly from the official arduino website. I have used it successfully with IDE v1.8.5 on my Windows 10 laptop for various projects in the last 6 months....
0
votes
2answers
63 views

How is this simple transistor circuit suppose to work? [closed]

I've tried to replicate this circuit today. My motor is a computerfan, they apperntly don't need a flyback diode since there are no brushes. I used a 12V power source for my arduino and hooked it up ...
0
votes
0answers
26 views

What would cause one Arduino to be recognized but not another?

I have two Arduinos, A cheap china-knockoff and an original one. I have had no problem with either of them before. But when I moved from connecting the original with a USB A-hub to running it over USB-...
0
votes
0answers
34 views

SG90 not responding with Arduino Uno

I bought an SG90 servo motor, seller demonstrated by direct supply check, it works there but with Arduino servo sweep check it does not respond: no error during compiling and uploading, but it does ...
0
votes
0answers
37 views

Arduino is detected by the software, but uploading is impossible [duplicate]

I'm using a Geekcreit UNO arduino clone which worked fine for a long time and now suddenly, it stopped working. The builtin LED and the power LED are on, all pins provide 5V and wenn I try to upload a ...
1
vote
1answer
43 views

Arduino based fully controlled aquaculture

I am doing a project on aquaculture,so I am using temperature sensor, water level sensor, dissolved oxygen sensor, pH sensor and also 4 motor's and water heater is it possible for a single Arduino to ...
0
votes
1answer
32 views

Why my LCD does not work with this if statement?

#include <LiquidCrystal.h> LiquidCrystal lcd(1, 2, 4, 5, 6, 7); int greenLedPin = 12; int blueLedPin = 11; int redLedPin = 8; int yellowLEdPin = 9; int lightSensorPin = A0; int analogValue = 0;...
0
votes
0answers
43 views

I can't upload my program because of this error [duplicate]

This is the error I copied : **Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno" Sketch uses 2304 bytes (7%) of program storage space. Maximum is 32256 bytes. Global variables use 192 bytes (...
0
votes
1answer
45 views

to measure the time between the ON signal and OFF signal

int pin_state = LOW; struct Channel { byte pin; byte state; byte count; unsigned long fell, rose; }; const int CHANNEL_COUNT = 3; Channel channels[CHANNEL_COUNT] = ...
1
vote
1answer
49 views

Why my serial message won't show on another when I try use 2 Arduino communication

I am trying to make a simple chatting program with my 2 arduino uno and 2 PC. But when I tried write a message using PC1 serial monitor the message won't show up on PC2 serial monitor. I can't see the ...
2
votes
2answers
36 views

IR module sensor query for Line Follwer Robot

Are the IR sensors used in Line following Robot and Obstacle avoidance Robot with Arduino UNO different ? If yes , where do we buy these parts online ? I used the following sensor in my Line Follower ...
0
votes
1answer
45 views

addt instruction of Nextion Display

I'm new to Nextion display. I'm doing a model of oscilloscope with the display and an Arduino Uno. I used the waveform component. I went through the instruction set and found two instructions to send ...
1
vote
1answer
65 views

Access is denied. Error compiling for board Arduino/Genuino Uno

Having this error- Arduino: 1.8.8 Hourly Build 2018/11/30 12:33 (Windows 10), Board: "Arduino/Genuino Uno" open sketch\LCD.ino.cpp: Access is denied. Error compiling for board Arduino/Genuino Uno. ...
0
votes
1answer
47 views

error 404 in HTTP GET request with Arduino Uno and ESP8266 using AT commands

when I try to send http get request I get error 404 AT+CIPMTX=1 OK AT+CIPSTART=4,"TCP","alirezaabrhshami.ir",80 4,CONNECT OK AT⸮⸮R5U9⸮⸮b⸮⸮j OK > Recv 47 qytes SEND OK +IPD,4,223;HTTP/1.1 404 Not ...
0
votes
0answers
26 views

Programming ATMEGA328p via AVR Pocket Programmer

I have a ATMEGA328p on a breadboard with the following connections to the 2x3 ICSP connector and its connected to AVR Pocket Programmer. While running AVRDUDE utility, i get the following error, ...
1
vote
1answer
139 views

Why can't I print boolean variable values (0 and 1) through println function?

source code : int buttonPin = 8; boolean buttonState = 0; void setup() { Serial.begin(9600); pinMode (buttonPin, INPUT); } void loop() { buttonState = digitalRead(buttonPin); Serial....
2
votes
1answer
73 views

Sparkfun CAN Shield BMW OBD2 reading

I bought the CAN-Shield from Sparkfun https://www.sparkfun.com/products/13262 and I also got the Uno from Sparkfun just to be sure everything works fine. Some info about my car: BMW E91 2006 OBD2 is ...
1
vote
1answer
41 views

Error:expected declaration before { token. (Havent i already declared it?) [closed]

I'm getting the error message: sketch_dec31d.ino: In function 'void setup()': sketch_dec31d:20: error: expected unqualified-id before '.' token sketch_dec31d.ino: In function 'void loop()': ...
-1
votes
1answer
20 views

I keep gettint the error expected construcotr,destructor or type conversion before = token [closed]

#include <dht.h> dht DHT; #define DHT11_PIN 2 // what pin we're connected to // DHT 11 String TextForSms ; String humidity = " Humidity: %"; String temperature = " Temperature"; String ...
0
votes
1answer
33 views

Troubleshooting optocoupler

I'm trying Project 15 from the Arduino Uno Projects book (optocoupler). I manage to turn on and off a LED in a separate circuit using my Arduino-driven optocoupler. Now I tried to also turn on some ...
1
vote
4answers
175 views

How to blink led and run another code at same time?

I had written a code to calculate rpm of the motors using IR sensor and Arduino nano and displaying it on OLED . With that I want an LED to blink always. Here is the code what I did: You can skip the ...
0
votes
2answers
40 views

What is the typical form for a finished Arduino project?

I just started with Arduino. I am an experienced software developer so the programming side was already mostly known to me, and I am surprised at just how easy Arduino have made the hardware side of ...
0
votes
1answer
37 views

Detecting the down time of a system by subtracting the time when the sytem gives ON signal and when it goes OFF

int pin_state = LOW; struct Channel { byte pin; byte state; byte count; unsigned long fell, rose; // times of fall and rise }; const int CHANNEL_COUNT = 3; Channel ...
0
votes
3answers
51 views

NEED Help With Servo motor

I have just bought a MG90s tower pro servo for my school project and there is a problem. As soon as I connect my servo to the cnc shield or directly arduino, the whole arduino board turns off. I ...
1
vote
1answer
52 views

Does direct port access interfere with PWM?

I think I've scoured the SE for questions about PWM, and fast digitalWrite etc, but I didn't see this point addressed. I need to use direct writes to some digital pins. Some of the pins on the port ...
0
votes
1answer
335 views

'“/dev/ttyACM0”: Permission denied' on Ubuntu 18.04

I'd like to say that I'm a noob at both Arduino & Ubuntu (have some command line experience). I've set port permissions, joined the relevant groups (tty,uucp,dialout & plugdev). I know that ...
0
votes
1answer
30 views

How to send characters to Arduino serial using Linux command line without tail -f?

I want to send characters to Arduino serial port which makes the Arduino turn on/off an LED. Here is the code: int led_main=8; void setup() { pinMode(led_main, OUTPUT); Serial.begin(9600); ...
0
votes
3answers
47 views

Why a servo doesn`t move to angles properly

I've got to do a project which uses a servo to drive a turntable. How much I adjusted the angle, the servo seemed to shift every time it spinned. For instance, the 0 degree angle was getting a bit ...
0
votes
1answer
34 views

Does enabling the Timer1 CompareA interrupt instantly triggers an interrupt?

I am learning Arduino interruptions and I am unable to explain the behavior of a minimalistic interrupt driven project. The project is the following: an Arduino UNO is connected to two LEDs, on ports ...
0
votes
1answer
26 views

What are the purposes of the different LED lights on a Arduino UNO board?

The LEDs namely L, TX and RX on the board. Furthermore, whenever the board is connected, the L LED blinks to the frequency of the delay that I set. [Eg: delay(1000);] If I miss any other LED, do ...
0
votes
1answer
84 views

Want to display an image from SD card to ILI9486 LCD display

I am completely new to Arduino. I have been given a side project to display a image from SD card to display. LCD used is ILI9486 which has a SD card slot at the back of the display module. I have ...
1
vote
1answer
39 views

Problem with MP3 Shield and function calling combination

I wrote this code to control my Christmas tree. It plays the Holy Night Code perfectly but never transitions to the next song. In addition, it plays random notes after the song is finished. Does ...
0
votes
1answer
30 views

Weight Measurement System using arduino and load cell

I want to use a load cell (Capable of measuring up to 1 ton) connected to a arduino board. I am a beginner, my questions are as follows : 1. How to calculate the current generated by the load cell ? 2....
1
vote
1answer
70 views

How can I reduce the memory usage on my code?

I wrote this code to control my christmas tree. It takes up the majority of the memory on my Arduino Uno: Sketch uses 31822 bytes (98%) of program storage space. Maximum is 32256 bytes. Global ...
0
votes
1answer
37 views

New code results in audio noise

I am working on a circuit that can record audio to an SD when a switch is HIGH and stop recording when the switch is LOW. I am using the TMRpcm library. I previously had an issue solved on these two ...
1
vote
1answer
46 views

SIlly PID question using the PID library

I'm new to PID. My goal: control the motor to get it to run a given RPM by a potmeter (which is setpoint). Sensor is optical (detects white line, reflections), counts 100 round in x amount of time. ...
0
votes
1answer
26 views

Do the libraries of the Arduino Uno work with the Arduino Mega?

I did a project with the Arduino Due and the libraries for the VS1053 MP3 Shield were not compatable with the Due. Are the libraries that work with the Uno compatable with the Arduino Mega?
0
votes
0answers
21 views

error while uploading a code

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno" avrdude: can't open input file C:\Users\PETER_~1\AppData\Local\Temp\arduino_build_223764/nyu_probe_activity1_code.ino.hex: No such file or ...
0
votes
1answer
33 views

20 m LED WS2811 Pixel Stripe 12 V

i need some help for my masterthesis. I plan an Light and Sound installation and for this I decided to use the shape of an Dodecahedron and I want to put LED RGB Pixel Stripes on the surfaces to light ...
0
votes
1answer
23 views

Relay 24 V appliance [closed]

I want to use a switch and an Arduino to "power" a 24 V DC appliance and I am not really sure what relay to use for this. So I need the relay to be able to switch it on and off, but I have not really ...
0
votes
1answer
24 views

Trying to save .wav files with new name every loop

I have built a set up with an Arduino UNO hooked up to a switch, so that whenever the switch goes from HIGH to LOW it saves audio to an SD card. I am using the TMRpcm Library. The problem is the ...
0
votes
1answer
58 views

How to send big data (long string) from PC to Arduino using Bluetooth

One of the requirements of my projects is to send data from my application to the Arduino robot. I have windows 10, and my robot is Arduino Uno. The Bluetooth I'm using on my robot is HC-06. The app ...