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
4answers
106 views

Arduino Driving Pump via MOSFET

I want to turn on a pump that is running 12V and draws a current of max 1.7A with my Arduino Uno. To do this, I bought the RFP30N06LE MOSFET and followed these instructions to wire it all up. I ...
0
votes
1answer
58 views

What am I missing? Send data from Matlab to Arduino to Micro SD

First off. This is not in any way a class assignment. This is my own personal work and research. I just want to get that out of the way. I am learning how to use Matlab with various Arduino projects. ...
0
votes
1answer
90 views

Badly formatted characters using JDY-30 bluetooth module

I have a JDY-30 bluetooth module and have it wired like this (except using an Arduino Uno): It is working, but I need to use it with a 115200 baud rate instead of the default one of 9600. I also got ...
0
votes
0answers
34 views

Arduino Uno FFT Analyzer error

I am trying to compile my code but keep getting this error: Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno" C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\main.cpp: In ...
0
votes
1answer
30 views

Esp8266-01 AT Commands returns partially

Im trying to get html response from server via esp01 module when using the serial monitor in arduino studio everything works fine here is the serial monitor output AT+CIPSTART="TCP","aaaa.aaaa",...
0
votes
1answer
21 views

Can you save data to heap section in Arduino memory?

On normal computers, heap will be cleaned as you close the program, but can I save data to Arduino's heap with malloc function. And will it be cleaned after I power off the Arduino?
0
votes
0answers
46 views

Digital input on one pin is copied to other pins

I am working on a phase detection project in which i am trying to find the order in which the incoming signal comes. I converted the 240v 50hz Ac signal to a 7v 50hz square pulse. when i connect one(...
0
votes
0answers
49 views

RFID-RC522 not working with Arduino Uno clone

I am using this library https://github.com/miguelbalboa/rfid, and using DumpInfo.ino from it: /* * ----------------------------------------------------------------------------------------------------...
0
votes
1answer
47 views

Can not print an element in an specific position in an arduino list

I have been tying to print an element of a list with the same position as the number that it matches, but it does not seem to work and I can not figure out if I made some mistake, could someone please ...
0
votes
1answer
35 views

Stuttering motor using rf module

I am trying to control a stepper motor wirelessly with a button. I am using the 433MHZ rf module and the Virtualwire library. the code is working, the receiver is getting the messages from the ...
0
votes
1answer
57 views

Splitting a Serial.readString into string array

I am working on a project where I need to split incoming data from serial (time to be exact, so aa:bb:cc) and need to split it into aa then bb and cc, ideally into an array. I know I could use ...
0
votes
1answer
37 views

Detect DS18B20 sensors and correctly assign them to relays

I'm relatively new to microcontroller programming, so please excuse me if my question is dumb. I've created a simple device that allows me to control 4 relays based on temperature. I bought four ...
0
votes
3answers
77 views

How can i stop a loop after 1 minute?

This is my first Arduino project, and I would like to stop my servo's loop after 1 minute. Can someone help me? #include <Servo.h> Servo myservo; void setup() { myservo.attach(5); } void ...
0
votes
1answer
42 views

Coin recognition using Coin Accepter in Arduino Uno

I'm working on a vending machine project and I'm using CH-926 and an Arduino Uno for that. I've already set the coin accepter for different number of coins and respective output pulses. I'm unable to ...
0
votes
1answer
31 views

How to rotate two or more steppers simultaneously by giving ARRAY of angles?

The following is the code that I am trying but the problem is steppers rotate one after each other. However, I want to rotate steppers simultaneously. This code for two stepper motors. int pulse=3; ...
-3
votes
1answer
23 views

How do I turn on/off led with the same IR button? [closed]

I'm trying to make the led switch on/off by the same case(): code. But its not working could anyone help me?
0
votes
0answers
30 views

How to make Variable Frequency Drive (VFD) Inverter using Arduino

I have a VSI SPWM Inverter Project, but my supervisor ask me to upgrade it to a VFD Inverter. I've found a code about how to generate 3 phase SPWM in this article, and i've tried the code. The output ...
0
votes
0answers
43 views

Ethernet Shield - Not Working Properly Always

I'm working on a school project and using Arduino Uno. The basic working method for the project is as follows: Read temperature from LM-35. Read CO2 level in air using MH-Z14A. Upload data to server ...
1
vote
2answers
50 views

How to combine strings and text together?

I'm trying to combine two strings (strings/int) together with text in below code: int foo = String((char*)payload).indexOf(' '); int message1; int message2; message1 = String((char*)payload)....
0
votes
0answers
42 views

Nested “switch” statements menu

I know that menus were discussed perhaps a thousand times here and everywhere. But using a ready solution is not something that I'm looking for because I know I won't learn the concept if I use them. ...
0
votes
0answers
41 views

ESP-13 WiFi shield - “error: espcomm_upload_mem failed”

I am creating a web server with Arduino and a ESP-13 WiFi shield. The wiring is as following: Arduino UNO || ESP-13 WiFi shield 5V || .5V GND || GND TX || RX RX || ...
0
votes
1answer
60 views

Analog output gives a close range of values

I try to get a good range of values from VMA309 sound sensor. However, when I connect it properly it gives me a range of values +/-5 like below. The documentation says it should give numbers ...
0
votes
1answer
48 views

Failsafe Arduino

I want to read an RFID tag using an Arduino, which controls some relais. This is easy. For me the more complex part is to build it fault-tolerant. So I thought I could use the watchdog. The tricky ...
0
votes
0answers
34 views

No matching function for call to 'TembooChoreo::TembooChoreo()'? TembooChoreo SendSMSChoreo; Error Help

Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno" C:\Users\user\Documents\Arduino\intruderAlarmTest\intruderAlarmTest.ino: In function 'void loop()': intruderAlarmTest:46:18: error: no ...
0
votes
1answer
47 views

Error code board and boards.txt? Formatting error? cannot verify alarm.txt or any

Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno" Error reading file (E:\arduino\arduino-1.8.8\hardware\arduino\avr**\boards.txt:0**): Invalid line format, should be 'key=value' Error ...
0
votes
1answer
47 views

iBus transmission and read it in Arduino

I am using an Arduino Uno and I want to transmit data from FSi6 to FS-iA6B and read received data in an Arduino. After searching, I found the below link which is iBUStelemetry. iBustelemetry I am ...
0
votes
1answer
81 views

Need some help on a very small project [duplicate]

Apologies for the simple question, I really couldn’t find any help online with this as when I kept searching, the results had lights that had way too much voltage compared to what I need. So I have a ...
0
votes
3answers
76 views

Do I need a pull-up/down resistor for button LED circuit?

When reading up on how to make a circuit that turns an LED on when a button is held down, I keep finding people saying a pull up or down resistor must be involved, to avoid the flickering state of the ...
0
votes
0answers
29 views

Using TCA9548A to read 30 ADCs

I want to read 30 differential ended analog sensors. Using ADS1115 16 bit this is possible, but we end up having only 4 address on I2C, so i chose TCA9548A breakout board with 8 I2C multiplex channels,...
4
votes
4answers
140 views

How do I make a Servo Stop if it Hits Resistance?

I am trying to make a device which will turn a turn key with a servo. However, I want it to stop turning the turn key if the resistance is too great (meaning it is locked and will not ever turn). ...
0
votes
0answers
27 views

Arduino Uno and FastLED WS2812B Glitching

I’m using an Arduino Uno and a fastLed WS2812B. I have the leds set up correctly. Every 2 seconds, the lights pause of about a second and display seemingly random colors. Does anyone know what's ...
0
votes
2answers
36 views

Array is affecting digitalread values

i want to turn on an led with two buttons. If either of the buttons is pressed i want the led to turn on while the button is pressed and stay off if nothing is pressed. i have two sets of code, they ...
0
votes
1answer
45 views

Can I control 4 DC Brushless motors with arduino uno and Adafruit motor shield? [duplicate]

I need to control 4 DC brushless motors. I have no experience with arduino or coding. After some research the cleanest setup seems to be using the Adafruit motor shield, however the motors I'm using ...
0
votes
1answer
58 views

Am I able to set up a code where I can have two ways of turning something on?

I am pretty new to Arduino. I've created a code with the help of many YouTube tutorials to control a servo with a button. I decided it has gotten a little un-exciting so I've been trying to add a ...
-1
votes
1answer
50 views

Attempting to read random string from SD card

I was wondering if anyone knew how to read in a random string from a file named "PhraseList.csv" or "PhraseList.xlsx" (whatever is easier)? There is a list of 10k. #include <SD.h> #include <...
2
votes
2answers
68 views

Can Arduino Uno R3 board remove chip on the board

First off, got my Elegoo Uno board as Christmas gift, so this is all new to me.  Here is my problem, I built an motor project and the chip has been programmed. Can I remove the chip from the Uno ...
0
votes
0answers
12 views

Having trouble using HM-10 with my arduino

I am using the HM-10 bluetooth module with an Arduino Uno. I am able to connect HM-10 to my phone just fine using the app lightblue. My issue is that I cannot use AT commands and by that I mean ...
0
votes
0answers
46 views

SIMCOM SIM900 AT+QAUDCH=x; returns ERROR

For some reason, some commands return ERROR, like AT+QAUDCH=1 (headset). I tried unplugging the headphones and the mic and it didn't work. code: #include <SoftwareSerial.h> SoftwareSerial ...
1
vote
1answer
29 views

Assign and control Digital pin from String

Here is modified version of Blink example #define D8 13 String p = "D8"; // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin ...
0
votes
0answers
46 views

Serial.read() keeps returning the same value over and over

This code keeps on returning 'S' with the Serial.read(). #include <Servo.h> #define trig 10 #define echo 9 int pinMotorRN=3; int pinMotorRP=4; int pinMotorLN=5; int pinMotorLP=6; long distance; ...
0
votes
1answer
46 views

Lines not pulsed fast enough (?))

Should this code pulse the PB3 and PB4 pins (MOSI and MISO of an Arduino Uno) at 2ms interval ? #include <avr/io.h> int main(void) { // for (byte i = 0; i < 32; i++) // pinMode(i, ...
0
votes
0answers
52 views

Uploading my code gets an error : permission denied on Ubuntu 16.04

I have faced this problem for few years ago and I solved it on Ubuntu 14.04 but I don't know why my solution doesn't work right now on Ubuntu 16.04 The Error : avrdude: ser_open(): can't open ...
0
votes
1answer
44 views

Voltage sensor Calibration

We had used a voltage sensor unit to measure the voltage of the odroid board using an Arduino Uno. wWhen I uploaded the sketch and got the output, the value which was being displayed was around 4.7 to ...
0
votes
0answers
21 views

append a String on ArduinoJson Object value

I've a json string request coming from server and I convert it into json object StaticJsonBuffer<500> jsonStaticBuffer; JsonObject& root = jsonStaticBuffer.parseObject(String(msg)); ...
0
votes
1answer
39 views

SIM900/Arduino UNO R3 serial communication not working

For some reason I cannot establish serial connection between the two devices. The shield is connected to the network because my number can be called, but I cannot send it any commands via the serial. ...
0
votes
1answer
24 views

2.8 inch tft LCD displays / Max Brightness / Startup White Screen / mirror text for Head Up Display Usage

hi does anyone know how to 1) set Max Brightness 2) change the start up splash screen from being white to black 3) how to change settings so that text can be mirrored so when display is reflected ...
1
vote
2answers
34 views

Command through Serial monitor does not properly work in Arduino

I am executing a function in Arduino by giving String input to the serial monitor. The issue here is when i enter "SHOW$" (without quotes) the function showData() works but when i enter the same "...
1
vote
1answer
12 views

Calculate burden resistor value of current transformer and measure ac current with arduino

I Want to measure AC current with current transformer but i dont know exact value of burden resistor or calculation formula...i want to measure current of borewell pump. company specified pump as 1....
0
votes
0answers
47 views

USB Host can't understand how to send and get data

I need my Arduino to communicate with a USB device. The Arduino will be the host, so I need USB Host library, but I can't understand how to start coding. On the documentation of the device I see: I'...
1
vote
0answers
17 views

Seeed CAN Shield - Not receiving extended CAN-Message

I want to receive an extended CAN-Message. I send a extended CAN-Message, but nothing happens. Maybe somebody have an idea what the problem is.. It works with a standard CAN-Message. Thanks in ...