Questions tagged [arduino-uno]
The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.
8,115
questions
0
votes
1
answer
794
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
1
answer
811
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
2
answers
1k
views
Generating and reading a PWM signal at the same time on Arduino Uno R3?
The code below should generate a PWM signal on digital pin 3. But know I want to see if it is even working. I was thinking about a Event triggering method like ISR. But somehow it does not work. I ...
0
votes
1
answer
141
views
Is it possible to combine a HC-05 Bluetooth module and a shrinked arduino ATtiny45/85 to control a motor, LEDs, or other components? [closed]
I'm thinking of making a tiny RC toy project that is controlled through Bluetooth with most components at its tiniest size. I'm a complete beginner in this area so i'm not completely familiar with ...
0
votes
1
answer
5k
views
how can i split string data in arduino?
im sending string data via serial with following format ex. :45:60 or such as ":120:57".i got the data shown in Serial.println (secondValue) Serial.println (thirdValue); but i cant convert it to int
...
0
votes
1
answer
1k
views
Connect two or more modules sharing the same pins?
I've found some separate instructions for connecting an SD reader/writer and also instructions for connecting a RFID reader and Piezo Buzzer. I would like to use both modules and the piezo buzzer ...
0
votes
1
answer
1k
views
ets Jan 8 2013,rst cause:4, boot mode:(1,7)
I am facing a issue with the ESP8266-01 as the following below:
chksum 0x42
csum 0x42
~ld
ets Jan 8 2013,rst cause:4, boot mode:(1,0)
wdt reset
Anyone has the solution please help!!
#include <...
0
votes
2
answers
231
views
threshold voltage level and blinking problem
I am using arduino pro mini 3.3 V,8 Mhz.vcc of the this arduino is coming from AC-DC converter with regulator 3.3 volt.I am listening analog data from voltage divider approximately 250 milivolts.
I ...
0
votes
1
answer
374
views
4 digit 7 segments display wrong number
I'm an Arduino newbie having problems with 4 digit 7 segments display.
I want to display some thousands to 4 digit 7 segments display but it display only 0000.
I want to receive data from serial with ...
0
votes
1
answer
183
views
Addressable RGB LED Strip
I am looking to create an addressable RGB LED strip circuit with my NodeMCU v3 Wi-Fi. I am looking at a strip of 150 RGB LEDs, 5 meters long, so 30 LED/m. But I am only going to use about 50 LEDs for ...
0
votes
2
answers
176
views
Count fuel liters with Arduino
We have created a fuel sensor in our lab with Arduino in order to get fuel data from vehicles. Regarding the code below, I receive an error
PARSE ERROR: 'attachInterrupt': this function needs to be ...
0
votes
1
answer
2k
views
Arduino button-controlled LED with AVR Assembly
I am trying to make a simple button-controlled LED, but I cannot seem to get any input from the button that would change the state of the LED. In other words, the program keeps branching to lighton, ...
0
votes
1
answer
311
views
Using TFT with hardware SPI and speaker with tone()
I want to make a device with a TFT screen and a speaker that uses the builtin tone() function. However, according to the documentation, using tone() interferes with PWM on pins 3 and 11. On the ...
0
votes
1
answer
449
views
FreeRTOS Timer Use
I use Timer1 on an UNO to generate a 38KHZ signal for IR communications. It all works as expected.
BUT, I need to convert the code to run as a task under FreeRTOS, and can't seem to find any details ...
0
votes
1
answer
3k
views
Make an Xbox 360 controller with an Arduino Uno
I was thinking of making a custom Xbox 360 controller (racing wheel) with the Arduino Uno plugged into the Xbox. How would I emulate the buttons/triggers on the original controller with the Arduino? ...
0
votes
2
answers
588
views
D1 Robot... lights up but nothing
I have the Arduino shield described here, I have run the example code compiled to the device, both v1 and 1.1 example, and it shows nothing whatsoever on the screen.
https://www.dfrobot.com/wiki/...
0
votes
1
answer
229
views
Powering Adafruit motor shield
Making sure not to blow anything up before testing.
I have an adafruit motor shield and an arduino Uno. The arduino uno has a power input and I was hoping to use it to power the motor shield, a nema-...
0
votes
1
answer
211
views
Arduino baud rate 8 times too high?
I'm having a strange issue where in order to get the expected serial output on my serial monitor, I have to set the baud rate on my serial monitor to be 8 times higher than the rate that i set in my ...
0
votes
1
answer
276
views
How to concatenate a part of a string and convert then to a int?
Lets say I have
String myString="AR0236";
I wish to extract the number 236 and assign it to an int. How can this be done?
P.S: I'me new to programming and I tried searching the forums for similar ...
0
votes
1
answer
309
views
Communicating with a 12V device?
I'd like to connect a 12V access control device to the Arduino, but I lack the understanding.
How can the signals from and to the device be done when they have different voltages?
I am afraid ...
0
votes
2
answers
4k
views
TinyGPS doesn't give longitude latitude and other data
I'm trying to get GPS coordinates using TinyGPS. But it keeps printing ********* for the data fields. Any idea on how to get this working?. Here is what the serial monitor looks like.
Here is my ...
0
votes
1
answer
151
views
What makes this library work exclusively with Atmega328P boards?
I've been looking into libraries that read CPPM signals that I can use on my Arduino Pro Micro, and this one looked promising (github.com/jmparatte/CPPM) until I read that it only works on Atmega328P ...
0
votes
1
answer
412
views
Problem with interrupts
Alright. This is what I wanted to do:
Make a circuit and code the arduino such that there are 2 tactile switches, each with a predefined pwm value.
Whenever any one button is pressed the led should ...
0
votes
1
answer
368
views
4052 interfacaing with arduino uno
I am trying to interface 4052 demux with arduino, but my program is not working as high is not displayed on serial monitor corresponding to select lines.
//output coming from demux pins
int ...
0
votes
1
answer
1k
views
NODEMCU 1.0 HX711 Load cell reading weird text
Hi Guys! i have a problem with the reading with my NODEMCU where i tried this code on an arduino UNO it is working perfectly fine but until i tried to switch it to NODEMCU 1.0 which have a wifi ...
0
votes
1
answer
1k
views
How to connect NRF24 receiver and Micro SD Card Module to Arduino UNO
I would like to know how to connect a NRF24 receiver and Micro SD card module to Arduino board. I have already connected the NRF24 module to the arduino board but now i can't connect the Micro SD card ...
0
votes
1
answer
209
views
why my arduino uno r3 restart when plugged in to a battery(9v)
i have a personal challenge that is to make a arduino avoidance robot it has a"hc-sr04 ultrasonic sensor, a servo, bread board(for the sharing of vcc and gnd), l9110s motor driver, and two dc motors, ...
0
votes
1
answer
705
views
Arduino pins not working
I'm building my first arduino project and I encountered a strange problems;
I build a haunted house based upon that instructables tutorial:
https://www.instructables.com/id/Control-Your-Halloween-...
0
votes
2
answers
929
views
My Ultrasonic sensor is only showing 4cm range?
I am using an ultrasonic sensor SR04 with Arduino Uno and a sample program which I got from the library. However, my output reading is only 4 cm even when there is no object in front of it. I even ...
0
votes
1
answer
465
views
How can I connect nodemcu with laptop wifi
Question is odd, but I want to know that how I connect nodmcu with a laptop wifi without using any router. Is it possible if yes then how?
0
votes
2
answers
517
views
How to connect a MPU-6050 to an Arduino that already has a CNC Shield V3 on top of it?
I have a CNC Shield on top of an Arduino Uno (GRBL pinout) that controls 2 stepper motors through a4988 drivers and it is working like a charm.
Now I want to add an accelerometer to it. From my ...
0
votes
1
answer
77
views
Arduino Uno keeps looping on setup() everytime I press a specific button on the remote
I'm trying to decode my Panasonic television remote using the IR_RECEIVE sketch below.
When I press the remote's buttons it works fine and Iget the values, except from when I press the power button - ...
0
votes
1
answer
357
views
Keypad giving random inputs
I have a keypad like this:
here is another, closer look at the bottom part.
Basically, I want the LED to power the amount that I pressed.
this is my code:
int LED = 1;
int inputs[4] {
6,
4,
2,
...
0
votes
3
answers
72
views
Iteed SD card breakout info for Arduino
I got an SD card breakout from an online shop, its the iteed kind without the level shifter, it has the 3.3 / 5 V switch. I cannot find any libraries or write example for it.
Has anyone dealt with it ...
0
votes
1
answer
4k
views
My Serial plotter isn't working (arduino)
I'm trying to upload this code and it works properly but I can't see anything on my serial plotter
const int AnalogIn_Pin0= A0;
const int AnalogIn_Pin1=A1;
const int Pwmout_PIN=11;
float ...
0
votes
1
answer
229
views
Why are my if statements acting like the condition is always true?
Here is my code. My issue is is that the keys are getting "pressed" even though there is nothing jumping any of the pins on the Arduino.
// UNO-HIDKeyboard-Library - Version: Latest
// This program ...
0
votes
2
answers
57
views
Leonardo Problem
I have boiled this down to a very simple piece of code:
int testKey;
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Input Source ID "); //Ask me the number
while (Serial....
0
votes
1
answer
149
views
Serial communication between an Uno and an Esplora by connecting their usb ports together
I’m trying to send a character message from an arduino uno to an esplora by connecting their usb ports together. The esplora has a micro usb port, while the uno uses a usb B port. To hooked them up, ...
0
votes
1
answer
497
views
How do you use the plastic cover/case that came with Arduino?
They have holes for screw on, on top of the holes on the Arduino itself. Where can I find parts that are compatible with this case/cover? What was the intended use of this case/cover? Thanks.
0
votes
2
answers
78
views
How do I run a bipolar motor with an arduino uno? [duplicate]
At the risk of looking like a complete idiot on the internet, I'll preface with this; I'm incredibly new to this. I'm new even to coding, and not sure what questions I should be asking.
I'm trying to ...
0
votes
2
answers
139
views
Timer with ajustable time delay
I have a led strip, and each led should be turned on sequentially, such as this one:
[http://1.bp.blogspot.com/-CTT6yvYtdos/VihhhBItwjI/AAAAAAAAAvM/q1jbUylMMdM/s400/ezgif.com-video-to-gif.gif][1]
The ...
0
votes
2
answers
144
views
Where is my BUG?
Thank you everyone for help on my last post, i managed to make it work. I still keep trying to craft my skill with the arduino. This time I need to make a coffee hot plate simulation. When the ...
0
votes
1
answer
73
views
Custom Debounce Code Not Working
It's my custom debounce code
It keeps the led on by flipping the required threshold value when triggered after the led has turned on to keep the led in a high state and vice verse triggered again, ...
0
votes
1
answer
53
views
Arduino - My problem is when the condition is greater than 900.00 it will continue the loop and do the code below once
I want is to stop the loop and when it read Greater than 900.00 again it will do task again.
I need condition. When it back to greater than 900.00 the code below will do task and then it will stop. ...
0
votes
1
answer
2k
views
Using Modbus-RTU with Arduino and temperature controller
I'm trying to connect with a 4 channel temperature controller using Arduino Modbus Library.
This is a part of my temperature controller datasheet. It has register for read PV of each channel.
I have ...
0
votes
1
answer
81
views
Uno to Mega and where is the error for the interrupt that isn't delared?
I want to read a Omron E6B2-CWZ6C Incremental Rotary Encoder w/Index (360P/R).
A couple questions, I found out that an Uno can only handle 2 interrupt pins and I think I need 3 for the Index. What do ...
0
votes
2
answers
181
views
Stacking adc's when making an midi controller ( lots of potmeters)
I'm making a midi controller with the Arduino uno. It contains approximately 50 analog inputs with potentiometers. I have enough MCP3008 adc's here but I have no idea how I connect 2 or more adc's to ...
0
votes
1
answer
53
views
Hex output although I always define integer
Code below is to read 4 thermometers and use values to turn on or off the heaters (I'm stuck at reading).
I'm reading and displaying temperature very well, but it comes to the problem, where I want ...
0
votes
1
answer
2k
views
Arduino direction sensor
I am working on a school project for next week
And I need my Arduino to 'sense' at which direction it is moved is it possible? Are there any direction sensors that 'sense' at which direction the ...
0
votes
2
answers
5k
views
Sending a digital signal from one Arduino to another to trigger an event
I am wanting to send a digital signal from one Arduino to another. The goal is for one Arduino send a HIGH signal to a pin on the receiving Arduino. While the pin is HIGH, do function
I initially ...