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

Bad LCD? Bad microcontroller? Or what?

So I recently bought an Arduino along with an LCD module and two extra ATmega328P-PU ICs. Yesterday it was working just fine then I disconnected everything and reconnected it and this happened. What ...
0
votes
2answers
3k views

Arduino Uno R3 (with Atmega 16u2) and MAC OSX 10.11 (El capitan) not working

I have Chinese copy of arduino which uses ATmega16u2 (at least that's what is written on the chip itself). When connected, it is visible in system information under USB section: Communication ...
0
votes
1answer
304 views

Uploading Error: no programmer has been specified

Whenever I upload a code I get this error: avrdude: no programmer has been specified on the command line or the config file Specify a programmer using the -c option and try again I am able ...
0
votes
1answer
197 views

MQTT vs Tinkerkit sensor Shield

I'm working with this http://knolleary.net/arduino-client-for-mqtt/. I'm using Arduino Uno + Ethernet shield + Tinkerkit Shield. But, if i have only Arduino Uno + Ethernet Shield, i can connect my ...
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
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
3answers
2k views

How I can print several numbers via Serial with very few lines of code?

Could someone help me how to output the numbers from 1 to 10 via Serial, without having to write out each command by hand? Below is my sketch - I need it concise instead of a long sketch: #include &...
0
votes
1answer
215 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

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

What sensor would work for soccer ball detection efficiently using Arduino?

I want to make a soccer goal counter using Arduino and some sensors. I built using an ultrasonic sensor, but it does not detect if the ball is moving too fast. Are there any other sensors I can use to ...
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
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
523 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
874 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
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
1answer
622 views

My Arduino Uno buzzer isn't working [duplicate]

/* */ void setup() // Built in initialization block { Serial.begin(9600); Serial.println("Beep!"); } void loop() // Main loop auto-repeats { // Serial.println("Beep!"); tone(4, ...
0
votes
1answer
218 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
1answer
5k views

Can't upload to my Arduino UNO [closed]

When I upload my sketch I get this error message: avrdude: ser_open(): can't open device "\.\com3": the system cannot find the file specified I tried reinstalling the IDE and the drivers. I ...
0
votes
3answers
945 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
2k views

Write array to serial port

The Code Below now works: void SendCTRL (String &input) { const char *hin = input.c_str(); // Get character array int clen = input.length()/2; unsigned char cmd[clen+1]; // Leave a byte ...
0
votes
2answers
4k views

Arduino not working / not uploading [duplicate]

Could anybody please help me with my problem? My Arduino doesn't work correctly. I was between a project, and suddenly it started acting weird. First, it started taking about 4 minutes to compile and ...
0
votes
0answers
140 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
1answer
208 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
146 views

How to find the deferenced value of a transmit Port Register?

So I am working with the SoftwareSerial library. I'm looking at the write function and I see a *reg value being manipulate. I want to find the value of *reg so I traced the value by stepping into each ...
0
votes
1answer
456 views

Conflict between SD card shield and accelerometer

I'm trying to get the SD card (Adafruit microshield SD card) and an MPU6050 accelerometer to work at the same time. When I connect the SD card to the Arduino (without the accelerometer), it's ok; When ...
0
votes
2answers
709 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
3answers
466 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
1answer
1k views

Wemos D1 doesnt drive Relay [closed]

I recently bought a Wemos D1 board and tried to connect a relay and test its connection. I got an example server from here and executed. I connected D5 to a Relay's data and 5v and GND from Wemos ...
0
votes
1answer
47 views

Can you help me combining these sensor sketches as one in Arduino [closed]

I want to combine these three sketches into one. RAIN SENSOR: int rainPin = A0; int greenLED = 6; int redLED = 7; // you can adjust the threshold value int thresholdValue = 500; void setup(){ ...
0
votes
2answers
2k views

Read a String from serial to debug the AT commands sent to my GPS shield

I want to extract an AT command's response (via serial port) to find out if the GPS shield is working as it should be. I used: if(Serial.available()>1){ String response = Serial.read(); ...
0
votes
2answers
2k views

Switching methods/functions with a button

I am trying to program a basic counter using 7segment display and a button. What I am trying to achieve is the following: Display 0 at the beginning. When the button is pressed: Start Loop 0-9 ...
0
votes
1answer
2k views

Can I connect a camera without a shield?

I have an Arduino Uno and an ArduCAM-mini 2MP camera: http://www.arducam.com/tag/arducam-mini/ Is it possible to connect this camera, or similar cameras, to the arduino without a shield? The only ...
0
votes
0answers
791 views

MQ7 Flying Fish output format

I am new to Arduino project. I used MQ7 flying fish sensor to sense the CO. Ok now I connected everything as mentioned in various tutorials, such as Arduino CO Monitor Using MQ-7 Sensor. Also wrote ...
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 ...
-1
votes
1answer
875 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
819 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
2answers
264 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
77 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
2answers
805 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
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
1answer
487 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
2answers
255 views

Possible reason for broken Uno

Yesterday I wrote in a comment that I didn't break much, except a LED and a LED matrix. However, exactly yesterday I think my Uno gave up, since I cannot upload a sketch anymore (timeouts). For the ...
-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
1answer
48 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
31 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
37 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
209 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 ...
-1
votes
1answer
62 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
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
6 7 8
9
10