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
2answers
2k views

Bluetooth sending values from two joysticks

Is there any good way of sending values from two joysticks from arduino A to arduino B? I tried sending using if statements, so if the Y- or X-axis' value changed then it would send that, but the ...
0
votes
1answer
703 views

Arduino - Calculating the time for which a Pushbutton is pressed and held without being released

I'm working on a project that requires calculating the time for which a pushbutton is kept pressed without being released. Is there a code snippet that i can use for this particular need ?
0
votes
1answer
1k views

when i compile this code it always 'sendCommand' was not declare in this scope..plzz help

#include <SoftwareSerial.h> #define DEBUG true SoftwareSerial esp8266(10, 11); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); //for ...
0
votes
3answers
870 views

Extending EEPROM life

I'm working on some software using an Uno (ATmega328P). I have a stage byte that can be 1 of 5 values (0-4) in my code and it will increase by 1 every 2.5 hours. If I lose power I need to ensure that ...
0
votes
1answer
129 views

Read function in Software Serial

I have a question regarding how the read function works in Software Serial. recv reads the bits a receiver picks up into a serial buffer. than read returns a uint8_t. However, when i set read() equal ...
0
votes
2answers
2k views

Problem with programming an ATtiny85: Error - avrdude: Yikes! Invalid device signature

I'm trying to program an Attiny85 chip using an Arduino Uno as an ISP following this two tutorials: Instructables: Program an ATtiny With Arduino and Programming an ATtiny w/ Arduino 1.6 (or 1.0) but ...
0
votes
3answers
449 views

Error on sending AT+CWJAP_DEF commands to ESP8266

I am trying to send AT commands to ESP8266 to get connected with internet with the Wifi. When I am sending AT and AT+RST command on serial monitor then I am getting OK and ready response which seems ...
0
votes
2answers
22k views

How do I know the IP address assigned to an ESP8266?

I have programmed an ESP8266 using the circuit and program below. I tried to open the SerialMonitor once the program is uploaded to the ESP8266. I am getting an error when I am trying to open the ...
0
votes
2answers
6k views

Playing Melody with Tone() without using delay()

Is there a method to play a Melody with Tone() without using the delay() function? tone(8, melody[thisNote], noteDuration); int pauseBetweenNotes = noteDuration; **delay(pauseBetweenNotes);**
0
votes
2answers
696 views

Creating an Arduino Tic Tac Toe game

I'm trying to create a Tic Tac Toe game using the Arduino Uno. Since the Uno has a limited amount of pins to use, I am trying to see if there is a configuration that would make the project possible. ...
0
votes
1answer
199 views

How can i provide enough power on an UNO to use the HC-12 wireless module?

Scenario: The Uno is being powered by USB for programming, and the HC-12 wireless communications module is wired correctly. But it will not work. In reading through the web literature, it is ...
0
votes
2answers
1k views

How to get 38 Khz clock from Timer 0/2 in Arduino Mega 2560?

I have been trying to generate a PWM wave of 38 Khz (13 microsec= ON period , 13 microsec= OFF period). Currently I am using Timer 0 to generate the PWM wave , however i am confused as to how to ...
0
votes
3answers
4k views

Arduino Mega with two Arduino Unos as slaves via I2C?

Good morning! This is my first post here, and my first time diving into the world of microcontrollers. Bear with me, as I describe this theoretical project. I've got an Arduino Mega 2560, two ...
0
votes
1answer
210 views

3 AC current sensors using one Arduino Uno board measuring at 200Hz

I'm new to electronics and need some help please. I'm planning to measure current of a 3-phase output using one sensor for each phase (thus 3 sensors would be required). The frequency of data ...
0
votes
3answers
4k views

Storing array in PROGMEM

I have an array of a lot of numbers (1 and 0) but i can't store them since arduino does not have enough space. How can i save an array of example 00110 in PROGMEM, then read from PROGMEM and set x to ...
0
votes
2answers
480 views

Data is not being written into SD card

I want to save the file as date and time and I want to open the file mySensorData = SD.open(filename, FILE_WRITE); in the set up. It shows "insert SD card" when I try to open the file in setup. The ...
0
votes
1answer
832 views

Arduino 4wd rover [duplicate]

Guys i have made an arduino 4wd rover using L298N BRIDGE MODULE, HC-05 and Arduino uno but the power supply output of L298N was very low that even 1 motor is working too slow so please help me with ...
0
votes
0answers
115 views

Post Data Server from Arduino using Fuzzy Logic

Can somebody help me , when i run this code separately , no problem was found , but when i fuse it together , only fuzzy work and the data can't be sent to my server, sorry for my bad english i ...
0
votes
1answer
1k views

Using SoftwareSerial to send data to itself

I'm debugging a project which includes SoftwareSerial. I'm not convinced the serial connection behaves as expected, so I came up with the following simple test: #include <SoftwareSerial.h> ...
0
votes
2answers
777 views

Setting reading frequency SCT013 current sensor code using Arduino Uno

I found this code below for the Arduino platform to obtain current measurements from the SCT013 sensor, and I am wondering how can I define the 'delay' or 'frequency' of my readings? I'd be looking ...
0
votes
0answers
134 views

Garbage output with GPS module GTPA010 [duplicate]

I've synced my Uno with the Arduino IDE and I'm using the following code to get the raw GPS coordinates: #include <SoftwareSerial.h> static const int RXPin = 4, TXPin = 3; static const ...
0
votes
2answers
211 views

Accessing digital pins from the Atmega 16u2 on the Uno

I'm running a custom firmware on the ATmega16U2 (Switch-Fightstick). Is it possible to access the digital pins of the UNO from the ATmega16U2?
0
votes
1answer
213 views

What changes I have to take care while coding from Atmel Studio instead of Arduino IDE?

-Are there any changes in Bootloader? -Why is the coding different for same chip in different softwares? -How to upload the program from Atmel Studio?
0
votes
4answers
8k views

How to tell Arduino Uno that I pressed or released a key on PC keyboard over serial?

I want to implement a simple musical keyboard with Arduino using tone() and noTone() functions, etc. The desired behavior is: While PC and Arduino are connected via USB/Serial... ...when I press a ...
0
votes
2answers
1k views

Arduino analogWrite source code explanation

The source code for the analogWrite function looks like this: void analogWrite(uint8_t pin, int val) { ... sbi(TCCRnA, COM0x); OCRnx = val; ... } Where n is which timer (0, 1, 2...) ...
0
votes
2answers
2k views

Sending serial data to Arduino from Matlab(not using support package)

I am learning Arduino and trying to understand how integers and strings are sent across the serial port. I tried a small program in arduino which reads a number as a string and tries to blink led 13 ...
0
votes
2answers
5k views

how to change variable when a button connected to pin 2 is pressed

Hi i am writing a code where, i have to switch a variable called toggle from 0 to 1 to 0.... every time the button is pressed (the button is on a 2 pin). I am a little lost as I am new to arduino need ...
-1
votes
1answer
1k views

“avrdude: stk500_recv(): programmer is not responding” when uploading sketch

When I try to upload any sketch to my arduino uno r3, the code compiles, the board resets and the RX light blinks 3 or 4 times.I have nothing from the TX light. The uploading progress bar in the IDE ...
-1
votes
2answers
76 views

Keyboardmessage on Arduino UNO

Can an Arduino UNO and Arduino Leonardo do the same things? Some of the examples in the Arduino software say to use Leonardo e.g. KeyboardMessage.
-1
votes
1answer
24k views

Error compiling code for Arduino/Genuino Uno

Arduino: 1.8.6 Hourly Build 2017/10/20 02:33 (Windows 10), Board: "Arduino/Genuino Uno" c:\users\hp\desktop\arduino-nightly\hardware\tools\avr\bin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe:...
-1
votes
1answer
32 views

Problem With interfacing of 16 Servo MG996R with Arduino Uno

I am using 16 MG996R servo motor with PCA9685 servo driver with Arduino Uno, but the motors are not working properly. What is the best power supply/battery for my project as it worked well earlier but ...
-1
votes
1answer
29 views

SimpleChat BLE Example prints scrambled characters

I am trying to use the SimpleChat application to test my RedBearLab Shield. If I send "Hello" and to to Serial.print or Serial.write the return what I see in my Serial monitor is stuff like "Fh`Fx**-...
-1
votes
1answer
5k views

byte Array to CRC calculation [closed]

I'm trying to implement a CRC check on my Arduino and Thanks to you guys I think I've got this working: unsigned int CRC(byte input[], int array_size) { unsigned int crc16 = 0xFFFF; int pos = 0; int ...
-1
votes
2answers
256 views

Arduino & ESP8266

I connect my ESP to Arduino to my PC. If I send AT commands from my serial monitor, I receive full response. I use 115200 and both NL & CR in my serial monitor. ESP TX is connected to TX Arduino,...
-1
votes
2answers
793 views

Arduino not in sync unique error

When I try uploading to my Arduino/Genuino UNO I get the following not in sync error with "unique" resp(resp=0X54) or (resp=0X81) please solve ... I have to submit my project tommorow...... error ...
-1
votes
2answers
3k views

What is VREF pin?

Was searching for some help on connecting Flir camera w/ Lepton board to arduino and found this thread for power you can reroute the 3-5V to the VREF pin, then you have a nice clean solution. You ...
-1
votes
1answer
856 views

Not in sync: resp=0x00 [duplicate]

I had problems with Arduino uno and reseted firmware. Followed this tutorial. Now I can't upload my code Arduino IDE says: avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync(...
-1
votes
1answer
482 views

Arduino Uno coding problem voltage varying [duplicate]

I was wondering whether anyone could help me... I am using an Arduino Uno and I am writing my code in the Arduino IDE. I am trying to implement the code so that the output voltage can be varied from 0 ...
-1
votes
1answer
3k views

Three phase sine wave inverter using Arduino

I want to design three phase sine wave inverter using Arduino I found this link with circuit diagram and simulation results but he did not provide code. can anyone help me with code http://...
-1
votes
1answer
46 views

sending specific date's data from data logger shield to serial port

I was wondering if it is possible to save lots of data( exp: one year data) in data logger shield and then read them from serial port without ejecting the SD card... this part of my question is fine......
-1
votes
1answer
36 views

How can I distinguish values sent from Arduino [closed]

Having in my visual basic app something like: private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e) { *whatever* value = serialPort1.Read*whatever*(); } ...
-1
votes
1answer
756 views

transmit a sequence of bit using arduino uno [closed]

How do i code to transmit a sequence of bit using arduino uno?My project is about a transmitter and a receiver.Arduino as the transmitter and an application as the receiver.Light sensor will detect ...
-1
votes
1answer
187 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 ...
-2
votes
2answers
321 views

running gba files in arudino [closed]

Can I run GBA files on an Arduino or make an emulator? I have a 2.4" tft touchscreen and a controller - is it possible to make? Can anyone give the code for running GBA files in Arduino?
-2
votes
2answers
11k views

avrdude: ser_open(): can't set com-state for “\\.\COM2”

I have an unofficial Arduino Uno. I've tested these: Testing on USB 2.0 and USB 3.0 Changing Port (COM XX) Updating drivers for the Unknown device to Arduino Uno (COM XX) Resetting ...
-2
votes
1answer
82 views

Can I connect a Android phone fingerprint scanner to Arduino or a raspberry pi?

I got it from my old phone (redmi 3s prime) and was wondering if I could connect it to an Arduino or a raspberry pi ,since I don't know what type of communication protocol it uses.
-2
votes
2answers
20k views

how to use strstr() in serial communication?

I have a SIM900 module and Arduino, both are working fine. In my previous programs I have use strstr() command to find specific word from a string but they were constants and pre defined in the ...

1
5 6 7 8
9