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

I can't figure out how to add a countdown to my code

I have been trying for a few days to add a countdown to go from 1 day to 0 on an LCD screen after a few pieces of code. The problem is that it's worked once with somebody elses code seperately but I ...
0
votes
0answers
13 views

TimerOne library stopped working

A while back I downloaded TimerOne and manually installed it in the wrong library along with the other standard libraries. This morning I downloaded an adafruit library the proper way from inside the ...
1
vote
1answer
50 views

How can I use attached interrupt on my project?

Hi I have a coinslot project and connected with a fingerprint sensor it was stated in the ardiuno forum that it will work on pin 2 and 3 , but it is already used pins of the finger print sensor . ...
0
votes
0answers
21 views

Need Feedback of OK in the grbl Library for the Arduino [closed]

0 I am working on the CNC shield of Arduino using the any of two libraries, one is grbl https://github.com/grbl/grbl and other https://github.com/Protoneer/GRBL-Arduino-Library . I am using two ...
0
votes
1answer
722 views

Parsing using the ArduinoJson library

I am trying to parse JSON using the ArduinoJson library. The problem is that I can’t parse www.read() because it’s declared as a char. I think www.read() needs to be a string? How can I convert www....
1
vote
1answer
81 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 ...
0
votes
1answer
342 views

Digispark Atinny85 not recognized (bootloader problem)

I recently bought the Attiny85 (picture below) I managed to install it correctly following the official guides, never that a problem. Drivers are installed correctly, and I used the Arduino IDE to ...
1
vote
1answer
255 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
50 views

Can I control Arduino functions via PWM? [closed]

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 ...
0
votes
1answer
723 views

NEO GPS 6M connecting to Lilypad Arduino

I'm working on a project that has something to do with receiving gps data from the satellites. With this, I've used GPS NEO 6M with an arduino Lilypad for wearable purposes. I've already tried using ...
0
votes
2answers
2k views

Is there any way to connect my old phone camera with an arduino?

I have an esp8266 wifi module, arduino uno and an old mobile. I was wondering if there is any way by which i could remove the camera from the mobile and connect it with my arduino in order to view ...
-2
votes
0answers
26 views

How to make a chain data transfer from one microcontroller to another!

I am trying to create a chain data transfer where data is collected from one microcontroller to the next and then it transmits the data of the previous microcontroller which it collected and the its ...
0
votes
1answer
55 views

Difference between FreeRTOS libary (AVR_ATmega328PB_Xplained_mini_GCC) Versus FreeRTOS compatible for Arduino boards from Richard barrey

I am researching about different IoT development boards and found that espressif uses IDF framework. When looked at the source code it uses FreeRTOS libraries. I have Arduino Uno and i wanted to use ...
1
vote
0answers
25 views

can differential drive work together with ultrasonic sensor?

I've written a sketch to drive a differential drive system, specifically - to be able to drive strait. This does work. So I am trying to add the ability to stop when the path is blocked using US ...
0
votes
3answers
3k views

In Linux how do I start up Atmel Studio

I am using Linux Fedora 20. In order to compile C programs for the Arduino, as described in the book "C Programming with Arduino" by Warwick A Smith, pub by Elektor, I have downloaded and untarred/...
1
vote
1answer
82 views

How to turn the digital pin to analog pin?

I am using a 10 IR sensor array and they use analog pins. I am using a motor shield for the Uno. So I cannot use the Mega. I have only five analog pins I need 8. How can I do it?
0
votes
1answer
75 views

ESP8266 -01 doesn't reply with anything

The problem started when I tried to upload the Blink program to the module, it uploaded with no issues through Arduino but after that the blue LED didn't blink. I searched a lot for it and found that ...
1
vote
1answer
31 views

Is it possible to use a slide switch without a resistor?

I understand how pullup and pulldown resistors work with push buttons and I also understand that an analogous idea can be applied to slide switches. Furthermore, I know that some versions of Arduino ...
1
vote
1answer
112 views

Message is sent multiple times from one arduino to another, using nRF24L01

I am trying to build a bidirectional communication channel, using nRF24L01 and two arduinos. The message is introduced using a button (but) in Morse code, decoded and then sent when another button (...
3
votes
4answers
4k views

Why does the arduino respond so slow to serial input

I have this really simple sketch where I blink a led light. If I send another value threw the serial monitor then first there is always a brief second where the light doesn't blink anymore. Why is ...
1
vote
0answers
32 views

Arduino uno wifi r3 is not broadcasting its ssid [closed]

I've got an Arduino UNO + WiFi R3 board. I've left the dip switches in off position. When I connect power through usb, and try to scan available wifi networks, I expect to see ARDUINO-UNO-WIFI-*. But ...
-1
votes
1answer
30 views

Cannot change pointer for port in main loop

I am testing on an Arduino UNO. I want to use timer1 and interrupts to create various LED patterns. The LEDs may span multiple ports i.e PORTB and PORTD. I want to use a "volatile uint8_t*" ...
2
votes
0answers
36 views

Simulink resets arduino

I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
0
votes
0answers
61 views

I was planning of building an AI assistant using nodemcu esp8266, a microphone, and a speaker [closed]

I have 2 types of approach for this, can you suggest which is best? Getting data from the microphone to convert it into digital form then run my program in node MCU itself then give the output to the ...
0
votes
0answers
69 views

Need help programming if else statement [closed]

I am doing a positional control experiment. I have an input signal going into a pin that I convert from a voltage to a displacement value which I have named 'Displacement'. I have 2 PWM signals that ...
0
votes
0answers
24 views

How to build a custom capacitive touch sensor without using the Arduino Capacitive Sensing Library? [closed]

The Arduino Capacitive Sensing Library sometimes doesn't produce very reliable results. Especially when I have code that is supposed to run on other ESP8266-based boards as well, because the GPIOs ...
1
vote
1answer
401 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 ...
2
votes
1answer
65 views

Nikon IR remote trigger (ML-L3) emulator not working

I have tried to follow along/reproduce the results from several sources for emulating the Nikon infrared remote trigger: Adafruit Guide DIY Nikon ML-L3 IR Wireless Remote Hack with Arduino UNO ...
0
votes
0answers
33 views

Uno not detected by PC(s) [closed]

I just got a new replacement Uno (looks like the real deal) - previous one had a short on the power pins and blew the power transistor. Anyway, when I plug it in I don't get the normal sound of a USB ...
0
votes
0answers
78 views

PIC Microcontroller P16F628A show error in proteus [closed]

This message showed during simulation start Invalid opcode 0xFFFF at PC=0x0004, How to solve it?
0
votes
2answers
2k views

Can I connect more than one IR receiver to an Arduino Uno?

I want to use #include <IRremote.h> to receive information from an infrared remote control. It works perfectly with one IR receiver. But I want to put three or four IR receivers: IRrecv ...
0
votes
1answer
41 views

Capacitive touch on Adafruit Trinket M0 goes unstable when USB cable from laptop is disconnected

Note that to get to this point, I used much of the helpful information from the Post How to use capactive touch on Adafruit board in Arduino mode? I am using a Trinket M0 with the Arduino IDE with the ...
1
vote
1answer
81 views

Arduino How can I add 30s delay and turn off the led to the following code

const int buttonPin = 2; boolean currentState = LOW; boolean lastState = LOW; boolean stateChange = false; int currentButton = 0; int lastButton = 4; int ledArray[] = {9, 10, 11, 12}; long ...
0
votes
0answers
73 views

how can i read from weight loadcell that support 12-25v with arduino and HX711? [closed]

I have weight loadcells of 40 tons and, but the loadcell works with 12v-25v voltage is there a solution or should I use another breadboarded
1
vote
0answers
86 views

I am working on a project and I'm getting a was not declared in this scope error see my code below please reply fast! [closed]

#include <Servo.h> #include <SPI.h> #include <RFID.h> RFID rfid(10, 9); byte kart[5] = {F7,55,AA,85}; Servo myservo; boolean card; void setup() { Serial.begin(9600); SPI....
2
votes
2answers
6k views

DFRobot GPS init error [Arduino Uno, SIM808]

i have problem with initialization DFRobot SIM808 actually when i try to recieve gps data by SoftwareSerial only it does works (i mean examples based on sending and reading command to and from serial'...
1
vote
0answers
51 views

What external battery do I need?

For a school project I need to connect an Arduino with an accelerometer gyroscope sensor and 2 mini servo motors. Of course I need a battery for this. However, I don’t know what battery I need for ...
1
vote
1answer
56 views

Why does the send pin influence the receive pin with Arduino Capacitive Sensing Library

I'm trying to figure out how the Arduino Capacitive Sensing Library https://playground.arduino.cc/Main/CapacitiveSensor/ works. It says: When the send pin changes state, it will eventually change the ...
4
votes
1answer
99 views

Arduino Uno freezes for unknown reason during code execution

I am struggeling with a behaviour of my Arduino I do not fully understand. Long story short: When starting the communication over I2C the Arduino freezes. In my opinion during the "Wire.write()&...
0
votes
1answer
2k views

ESP send data to Arduino

I'm trying to send data from my esp to my arduino using serial using the following codes : esp : server.on("/drive",HTTP_GET, handleDrive); void handleDrive() { server.send(200,"text/html", "...
1
vote
1answer
213 views

How I can send data information without work WiFi to LCD?

Hi everyone I am beginning learn coding and the second language English. I have small project I use Arduino uno , esp8266 , dht11 , lcd I2C and use blynk app in my project I have the code and work ...
0
votes
2answers
1k views

When connecting, client.connect() returns 0

I'm using an arduino UNO with ethernet shield. When following a few guides online for a school project I came across this issue. First code sample: #include <SPI.h> #include <...
2
votes
1answer
103 views

Interrupts Within Critical Statements

I've redone a previous Arduino sketch I posted in which I was having trouble capturing encoder counts within critical statements, having no luck properly attaching and detaching interrupts. I've ...
1
vote
0answers
22 views

Using L298n motor driver without jumper (Voltage Regulator)

When I am using 9V supply with motor driver and Jumper connected so the red LED was blinking but when I did the same using 9V and 15V supply removing the jumper LED didn't blink. Neither the voltage ...
2
votes
1answer
1k views

How do I use I2C from an Arduino Uno when I have a GSM shield mounted?

This may be an extremely obvious question but I don't seem able to find a definitive answer. I have an Arduino Uno and a Sim900 GPRS/GSM shield fitted on top of it. I had I2C working on the Arduino ...
0
votes
1answer
60 views

What is the command to upload the hex file to Arduino UNO without using any IDE or external GUI tool?

The OS I am using is Windows 10, and I already installed avr-gcc and avr-dude, with a bit of search on the internet I found the commands to convert my C program (written for ATMEGA328-P), to the ...
0
votes
1answer
1k views
-2
votes
0answers
32 views

How to only serial print "fast" or "slow" once. I want to show whether the LED is blinking fast or slow

int ledPin = 3; int buttonPin = 2; int toggleState; int buttonState =1; void setup() { pinMode(ledPin, OUTPUT); pinMode(buttonPin, INPUT_PULLUP); Serial.begin(9600);...
0
votes
3answers
32k views

How to restart void loop if condition is met

This should be a quick question. I'm trying to figure out how I can restart void loop() if a certain condition is met. In this instance, if (s>10), I want the loop to restart. Any help will be ...
-1
votes
2answers
21k views

How to flush the input serial buffer in Arduino?

I am communicating with the esp8266 WiFi module using Arduino. The module returns GET requests from other clients. They will be of the form GET /101011 HTTP/1.1\r\nHost... I wish to extract only ...

1
2 3 4 5
156