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.

1
vote
1answer
47 views

Hand-held programmable device needed [closed]

Hopefully this question is not too off-topic for this board. I need a ready-made programmable hand-held device with an ethernet-connection. Something like an Arduino with batteries and display and ...
0
votes
2answers
50 views

How to generate .a and .so files to add in arduino project

I know to make a library on arduino ide with source codes, but I cant send my source code to another users who want to use my lib. So I need to make a library with precompiled=true info at library....
0
votes
1answer
36 views

How to stabilize magnetic levitation system?

I followed everything from this project but still, the magnet is not levitating - https://www.hackster.io/jsirgado/magnet-levitation-with-arduino-eeeee4 The best I can do is to make the magnet jump ...
0
votes
1answer
45 views

MAX7219 and Arduino

I am getting started in running this 8x8 led on an Arduino. Regardless of which tutorial sketch I attempted, I never got a scrolling text that I expect. What happens seems to be only a single (out of ...
0
votes
1answer
33 views

Fading led with push button

I need to make for school a project. That when i hold a button it fades. But when you let go the button it needs to stop immediately. But when i you hold the button again it needs to start again with ...
0
votes
2answers
81 views

Strange behaviour with WS2812B RGB LED Strip

I tried to use a RGB LED strip, following a guide. I connected the voltage pin to the Arduino UNO 5v pin, the ground pin to the GRN pin and I used the pin 5 for DIN. I used this image as reference: ...
0
votes
1answer
48 views

Changing Baud Rate not working

I have copied this code from Github : #include <Wire.h> #include <MPU6050.h> MPU6050 mpu; // Timers unsigned long timer = 0; float timeStep = 0.01; // Pitch, Roll and Yaw values ...
0
votes
2answers
68 views

Prevent function inlining

I'm trying to shrink the compiled code size, and I have noticed that the compiler inlines functions a lot, even the ones I have not marked "inline", but I can't manage to turn that off. It looks like ...
0
votes
2answers
69 views

MPU-6050 with Arduino - postmortem

I'm working with MPU-6050 with Arduino Uno. I copied the code below from Arduino Playground - MPU6050. Code : // MPU-6050 Short Example Sketch // By Arduino User JohnChi // August 17, 2014 ...
-1
votes
1answer
54 views

Basic Arduino Airplane Control

I have a task where I need to control the airplanes thrust and altitude direction(Up-Down). For the thrust I thought of using a DC Motor and a Servo for the other. Control of servo will be from the ...
0
votes
2answers
55 views

7 LED Number Display

I need to write a string of number such as 1234567 on a 7 LED display. For example 1 will be lit up on display for 0.5 seconds, it will turn off then 2 will light up and so on. In the end I need to ...
1
vote
0answers
61 views

RS485 Serial Communication not working with Arduino

I am trying to control 2 devices with my arduino using RS485 communication. Basically switch on device 1 for 5 seconds when I send 'g' to the master. And switch on device 2 for e3 seconds when I send ...
0
votes
1answer
38 views

Not sure which Arduino to pick [closed]

Is the Arduino Uno the best one to purchase for a complete beginner? I eventually want to get into building Nodebots since I already have experience writing Nodejs web-based applications. Or should ...
0
votes
0answers
45 views

Sending Data to an endpoint with Arduino USB Host Shield

I'm currently working with a Logitect G502 mouse and would like change the LED colors through Arduino USB host shield. Mouse has 2 different interfaces. Interface-0 is a HID-mouse and Interface-1 is ...
0
votes
1answer
37 views

LCD displaying weird text

I am doing a project that requires input from a keypad to be displayed on the LCD display. lcd.print() displays in proper form, but when the I press characters on the keypad, they are overwritten as ...
1
vote
2answers
92 views

How to communicate between a webcam and an Arduino UNO and get the live feed on mobile using ESP8266? [closed]

I am working on a project of making a Smart Robot Car using Arduino UNO, L298N Motor Driver Module, ESP8266 Esp-01 WiFi module and RemoteXY app for controlling via smartphone over WiFi. My question ...
0
votes
1answer
63 views

Maintaining time in Arduino

I am working on development of alarm clock using Arduino. No doubt RTC will be the best but it increases the Price of the project. Also I opened a digital clock (which I purchased online) and I see ...
0
votes
0answers
13 views

How do I talk to SigFox 2 Click module from Arduino Uno

I have a SigFox 2 Click[1] and an Arduino Uno Click Shield[2] and I've been trying communicate with the SigFox 2 Click to retrieve the ID and PAC number. (MikroeE website incorrectly said the numbers ...
0
votes
0answers
18 views

Reading and sending data from a micro SD card using Micro SD card adapter without using buffer

Actually, I am trying to get data that appears in a .wav file, but I got the problem that it is not as fast as I need because, looking around the SD library I found that most of the bits are saved ...
-2
votes
3answers
37 views

Powering arduino with battery

I haven't tried so don't know if it works or not. So I got a 6v battery AA, is it possible to run my arduino uno which already got a code in it if I plug + pin to vin and - to GND? Without its USB?
0
votes
1answer
24 views

Program to run two motors with Motor driver

I'm trying to make a program that would run two motors clockwise and then anticlockwise. But my program is causing my motors to only run clockwise everytime . It doesn't run anticlockwise at all. Can ...
-1
votes
1answer
49 views

Enable and disable individual interrupts

I am working on timer interrupts and external interrupts. for external interrupts I understood the functions like attachInterrupt. detachinterrupt for individual interrupts ,noInterrupts() and ...
1
vote
3answers
90 views

Unable to store data in variable from Serial.read()

I have a relay and bluetooth module connected to Arduino Uno. I send data such as digit 1 to the bluetooth module and I view it in the Serial Monitor. If I send 1 from serial monitor I get 4910 ...
-3
votes
1answer
47 views

Serial communication stops when powered with batteries?

Circuit explanation- Arduino Uno connected to multiple sensors and to 16 x 2 LCD. Uno's TX pin to ESP-01 RX pin. Uno has been programmed to read values from sensors and display them on LCD along ...
0
votes
1answer
51 views

Serial.parseInt() takes longer time than desired

My whole code for master. Please head to void read() where I've used parseInt() #include <nRF24L01.h> #include <printf.h> #include <RF24.h> #include <RF24_config.h> #...
-1
votes
1answer
42 views

Is it possible to send data from device (e.g. MPU6050) to Arduino through cut/hacked USB cable?

So I understand the USB cable consists of VCC, GND and Data+, Data-. Is it possible to connect an MPU-6050 gyro to these 4 pins, especially data+/-, and still receive them normally through the SCL/...
0
votes
1answer
62 views

Trying to measure change in light levels over time [closed]

I have two LDR's attached to my Arduino Uno and an RGB LED as an output component. The two LDR's are at different offboard heights in order to see the change in light between them. I want to code on ...
-1
votes
2answers
162 views

Arduino nano power 5V or 12V and LED strip 2812B 5V

I would like to know a little more about Arduino inputs and outputs. Im doing a small project which is composed of 1 LED strip with 40 LEDs. Can`t find any definitely information about Arduino + ...
2
votes
0answers
76 views

Measuring Amplitude/Frequency of sound

I need to read an analog signal at about 500-1000Hz for at least 5 seconds. I've a battery powered microphone wired into an analog and ground pin on my arduino and am trying to measure the frequency ...
0
votes
2answers
102 views

switching two relays without delay using millis [closed]

I have an Arduino-uno and two relays. Each relay has two switch on for two seconds at regular intervals. total loop time relay 1 and relay2 is 1800 seconds. relay 1 - 2 on,360 off,2 on,600 off,2 on,...
0
votes
1answer
32 views

Parsing array of an object in a library constructor

I am trying to develop an Arduino library that consists out of two classes. I want 'WayPointStack' to store an array of 'WPCommand', but I can't get it to work. WayPointStack.h #ifndef ...
0
votes
0answers
33 views

Cannot give battery through USB cable

I just make a simple circuit with uno and breadboard ,that connected 4 LED and 4 IR sensor. The arduino program is simple that makes the light on or off with the determination of IR sensors . However ...
-1
votes
2answers
73 views

Powering Uno with 9v battery makes it “freak out”

I encountered an odd problem with my Uno, it works completely fine through USB on the PC or when powered by a power bank, but as soon as I connect it on a 9v battery it just freaks out. I have a relay ...
0
votes
1answer
44 views

Control 2 ESC with a potentiometer with arduino

I have 2 ESC (electronic speed controller) which control these brushless motors: Hobbyking Donkey ST3511 Brushless Motor I would like to make them work with a poentiometer, under arduino. I have a ...
0
votes
0answers
31 views

MAVLink command from arduino uno to apm 2.6

I´m newbie with arduino. I want to send commands from arduino uno to apm 2.6. I connect these boards like telemetry of apm to RX, TX, GND of arduino and the power now is from usb for both boards. ...
0
votes
0answers
39 views

Arduino stuck when I disable Timer 2 Interrupt

#define TIM2_EN() (TIMSK2 = 0x02) #define TIM2_DIS() (TIMSK2 = 0x00) //HEART SENSOR // Include Libraries #include "Arduino.h" class PulseSensor { public: static void begin(int pulsePin); static ...
0
votes
0answers
36 views

several cameras share data lines

There are plenty of projects that connect an OmniVision camera, such as ov7670 , to an Arduino. A good example would be: https://www.scribd.com/document/356160003/Beginning-Arduino-Ov7670-Camera-...
0
votes
2answers
112 views

Generate a ramp input with an Arduino Uno

Is there anyway to generate a ramp input from an Arduino Uno? A visual depiction of the pulse I am looking for is as follows: With other microcontrollers, I was able to use their in-built DACs, ...
1
vote
1answer
78 views

expected unqualified-id before 'if' if (!client.connected() && lastConnected)

#include <PulseSensorPlayground.h> #include <Timer.h> #include <SPI.h> #include <Ethernet.h> Timer t; PulseSensorPlayground pulseSensor; // Local Network Settings byte mac[] =...
0
votes
1answer
35 views

Help with code for pushbutton connected to adafruit motorshield v2

can anybody assist me with a code? I am using arduino uno with adafruit v2 motor shield stacked on top. I am using a pushbutton and one DC motor and I want the state of the push button to change after ...
0
votes
0answers
31 views

How do you move motor car forward for set amount of time and turning left/right

Am new to Arduino, wanted to know how to give motor direction to move and the duration of those movements. Goal is to move forward for say 5 seconds, turn left, move for 0.5 seconds, turn right, move ...
0
votes
1answer
49 views

Prioritizing one sensor [closed]

I want to ask is there a possible code to prioritize a specific part of a code? So I'm doing this project where I want to utilize muscle sensor, servo, and a button on an app over Bluetooth. The ...
0
votes
0answers
44 views

Analog pins giving off the same value

So recently I made code that used two custom sensors that are connected to the analog pin A0 & A5. Schematic can be seen here (http://inmoov.fr/test-your-finger-sensor/). const int ono = A0; ...
0
votes
0answers
43 views

Read SNMP OID values with Arduino

I wish to read SNMP predefined OID values from other devices, can it be done with Arduino? I searched all over the internet for the past 2 weeks about Arduino with SNMP and found a lot of great ...
0
votes
0answers
14 views

Ultrasonic,pir,gas mq2 sensor using Arduino in one code? [duplicate]

I have a three sensors codes but its are separately. I don't have knowledge of these code merg in single one code
0
votes
1answer
34 views

How to use 2 serial port when WifiEsp library uses one of both

I try without success to receive datas from DataPort and transmit them to my computer via WifiPort, using ESP8266 wifi module. Each second, serial datas income on DataPort from another device. ...
0
votes
1answer
83 views

Reading NFC card (PN532) with Arduino Uno

I am trying to detect a RFID card using the NFC-PN532 module and Adafruit_PN532 library. Initialization code:- #include <Adafruit_PN532.h> #include <Wire.h> #define SCK (13) #define ...
1
vote
1answer
44 views

Force TCNT to stay below OCRxA on ATmega328P

I'm using a timer and the TIMERx_COMPA ISR to generate a signal in "the background". This ISR is triggered when the timer reaches a certain value (OCRxA), which in turn can be changed by the user. ...
1
vote
1answer
85 views

16 X 2 LCD display blank with Arduino Uno

So I am following this tutorial to make my arduino display hello world and millis(), I got it to work for a minute, but then it stopped updating the milliseconds, and when I pushed the reset button it ...
0
votes
1answer
28 views

Run website / Javascript game from a Arduino UNO device?

I apologise if this is a dumb question, but I'm trying to find information on whether or not this is possible. I'd like to build a arcade machine to play my custom Javascript 2D game. The game ...