We’re rewarding the question askers & reputations are being recalculated! Read more.

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
3
votes
1answer
2k views

Arduino with ESP8266

I have completed the circuit and code to interface ESP8266 module with Arduino UNO. When i send AT,AT+RST from serial monitor the reply is correct . But when i send AT commands to search WIFI ...
-2
votes
1answer
1k views

Timestamp in Arduino

int sensorArray[32] ; int selectPinZero = 8; int selectPinOne = 9; int selectPinTwo = 10; int selectpinthree=11; int Enablepin=7; int inputPinOne = 0; int inputPinTwo = 1; int sensor1; int sensor2; ...
0
votes
1answer
180 views

How many transistors are there in an H Bridge? [closed]

I've controlled a motor going one direction using only one transistor. With an H Bridge, I can make a motor go forward, backward and brake. Does an H Bridge have only three transistors inside it to ...
3
votes
1answer
39k views

avrdude : stk500_get sync<> attempt 10 of 10 not in sync : resp=0x20 how do i get pass this error for ardunio uno board [duplicate]

When I first started with a bare minimum code. The compiler compiles the code, but when I try to upload, this is the error message I get: AVRDUDE: STK500_GETSYNC<> ATTEMPT 10 OF 10 NOT IN SYNC ...
4
votes
2answers
2k views

What's taking up so much RAM in an almost empty sketch?

I wanted to check how much memory (RAM) is used by an "empty" sketch. Here is my code: int freeRam() { extern int __heap_start, *__brkval; int v; return (int) &v - (__brkval == 0 ? (int) ...
0
votes
1answer
274 views

WizNet chip on Ethernet Shield oddly hot

I'm making a thermometer and, so I can graph the data, I have an Uno with the WizNet shield sending the data to a LAN ip. The chip itself is oddly hot, its temperature measures at around 110-120ºF (43....
0
votes
2answers
3k views

How do you send data via I2C without the wire library?

I have the following digital potentiometer: DS1803-100 which, according to the datasheet, can be controlled using a two-wire serial interface. I have managed to get it working using Wire, however I ...
0
votes
2answers
895 views

How to test Arduino board?

A little history: I have two Arduino Uno and I couldn't program them by IDE, I got these errors: avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in ...
1
vote
0answers
169 views

Arduino Mini Pro 3.3 V Issue with Bluetooth Mate

I have an Arduino Mini Pro 3.3 V powered from a coin cell(3.6 V, CR2450) and connected to Bluetooth Mate Gold. I have checked the connections and they are fine. I can also connect to the bluetooth ...
0
votes
4answers
7k 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
1answer
153 views

is any windows application available for accelerometer based computer mouse

I want to make an AIR mouse using Arduino and accelerometer, for this i used USB to TTL converter i have done everything successfully but can anyone tell me how use it in computer. I mean i don't know ...
1
vote
0answers
241 views

CH340: right endpoint?

I'm working on implementing CH340 drivers used by cheap Arduino clones on Android (Linux). What endpoints should be used as read endpoint since two endpoints have IN flag - 0x81 and 0x82? http://...
1
vote
1answer
6k views

Implementing DES or AES Encryption with DateTime Synchronization on Uno

We are trying to implement AES or DES encryption using an Arduino Uno. We have a keypad module attached that will be used to input integers. A String should be generated based on the entered data and ...
3
votes
1answer
318 views

How does one design for the power on transient conditions?

Following on from the question Reset an Arduino UNO by an command (software) and the excellent answer provided by mpflaga, the comment addressing option (1) suggests that there are design ...
2
votes
4answers
271 views

Blutooth shield LED control

I am trying to control a led ON/OFF using Arduino UNO and a Bluetooth shield I have this which is based on hc-05. The tutorials I found about hc-05 are not working for me. I have the hc-05 embedded ...
0
votes
1answer
3k views

Serial.println Sensor Value and text in one line

How do I put the sensor value and text on the one line in the serial monitor. I just want Pot Value 30 to show in the serial console. What am I doing wrong? Serial.println("POT value ")(sensorValue);...
0
votes
1answer
3k views

Controlling DC motor speed?

I'm trying to control a DC motor through L293D motor controller const int controlPin2 = 4; // connected to pin 2 on the H-bridge const int enablePin = 3; // connected to pin 1 on the H-bridge ...
0
votes
1answer
1k views

How to transfer data from arduino to android via bluetooth? [closed]

I am having arduino uno board connected with bluetooth HC-05 module. I needed to transfer the data from arduino to android mobile via bluetooth. Is it possible to transfer the data from arduino to ...
0
votes
2answers
1k views

What is the best way to measure PWM signals ( pulseIn ) with the Arduino via a Raspberry Pi?

I connected my Arduino Uno to my raspberry via USB serial. I'm able to read out both digital and analog pins of my Arduino using the Python nanpy library (v.0.8). However, I can't find support for the ...
1
vote
4answers
1k views

Using Arduino to learn AVR programming

I want to learn AVR C programming instead of arduino programming. I have an arduino UNO board and few Atmega328 chips that I bought, and Atmel studio for programming. Can I use Arduino Uno board as ...
0
votes
3answers
133 views

Need help shrinking a code [closed]

I'am new to Arduino and c++ i get his code from the INTERNET void setup() { Serial.begin(57600); pinMode(13, OUTPUT); } int f = 0, pos; void loop() { boolean has_request = false; ...
0
votes
1answer
201 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?
1
vote
1answer
809 views

How come people connect their arduinos to buzzers without any coil protection?

If you connect your arduino to a motor you use this schematic: However, when it comes to buzzers, which also have a coil, no one protects the circuit: What the hell is going on? Are these just ...
1
vote
2answers
999 views

Modbus Protocol Compile Error

I have Code for Mod bus Library as below. I have Gone through lots of forum. How to assign device ID, slave address, length using below library function: #include <SimpleModbusSlave.h> #define ...
0
votes
2answers
174 views

Sending a double message for action to occur

I'm currently designing a system for my GCSE coursework. For the coursework, I am making a bollard system, controlled by the internet / traffic lights. I've been experimenting with an Arduino Uno and ...
1
vote
2answers
9k views

How to use Timer1 (AT328Mega) to measure the time between rising edges of two input signals

I'd like to use Timer1 to measure the time between rising edges of two input signals. Specifically, use Tn to start the timer counter and IPCn to latch the elapsed time since the rising edge of the ...
0
votes
1answer
42 views

0 value integer does not enter If

I'm sure this is a very basic coding mistake... I'm picking up a reading from A0. If the value is 0, I want the value of the serial to be written to the Serial Monitor. I also want it only to write ...
-1
votes
1answer
690 views

Is is possible to hook up an SD card and a GSM/GSRM module?

Is it possible to hook up a GSM/GSRM module AND an SD card at the same time to an Arduino Uno, or any Arduino? I want to build a cellphone to read off the buttons that are being dialed into it for a ...
1
vote
2answers
460 views

Array values won't tokenize

char *p = I2CinBuffer; // array contains "string" "," "string" but char *p = I2CinBuffer; // The data to be parsed e.g. 6,100 char *str; // Temp store for each data chunk int count = 0; ...
0
votes
1answer
181 views

DIY Watering - Required components

I am looking as a first project after some simple project kits, to make a watering system for my indoor plants. I have seen a few projects on instructables, so I went to look for components. I am not ...
1
vote
0answers
482 views

HLK-RM04 wifi shield factory reset?

Ok i have this peace of crap HLK-RM04 it came with no catalogue or manual all threads about it are in Chinese after when i found the configuration webpage and changing it to client it wont ...
1
vote
0answers
1k views

How to reverse BLDC motor using programming arduino?

I bought ESC from here but it rotates motor in one direction only. Is there any program which will control direction of rotation clockwise or anticlockwise with same wire configuration.
1
vote
1answer
266 views

Arduino sketch behaves differently depending on version of Arduino IDE

I am assisting some friends on an Arduino Uno project, and we've noticed that when using some earlier versions of the Arduino IDE (In this case 1.0.5), the sketch behaves as desired. However, when ...
0
votes
1answer
1k views

LED too dim when connected to digital output pin

I am making an attempt to put LED headlights in an RC car I am building. I want the headlights to turn on when I click circle on a PlayStation 4 Dual Shock controller. I currently have it working ...
2
votes
1answer
741 views

Lockup while evaluating Wire.requestFrom function (Arduino)

I am currently working on a Arduino project that combines an InertiaOne IMU sensor board (from Atmel), with an Arduino UNO and two motors driven by a Makeblock driver board. All sensors communicate ...
0
votes
1answer
137 views

A question about the possible limits of an Arduino Uno

I've searched the web but could not find a straightforward answer to my query. I am building a control board for one of my models and this time have decided to also include a computer interface, so I ...
2
votes
2answers
191 views

Beginner here, trying to start learning arduino, which starter kit should I buy?

I'm really interested in arduino but I don't know much about it. I want to buy a starter kit to play with, but when I searched it on amazon, there are couple unofficial starter kit and a more ...
-1
votes
2answers
63 views

Why is this returning the wrong answer?

Why does this print output -3? xpos can be any value. void loop() { xPos = analogRead(xPin); yPos = analogRead(yPin); pwm = xPos*(255/1023); Serial.println(pwm); }
1
vote
0answers
115 views

Unable to determine why the LCD shield does not initialize

I have an Arduino UNO and a 16x2 LCD Shield that have been lying unused for one year, or perhaps more. Yesterday I connected the Arduino via USB, uploaded a couple of simple sketches, played around ...
1
vote
1answer
1k views

RF network using Arduino

I am working on home automation project. A network consists of one master device and many (maybe 10-20) slave devices, all communicating via these RF modules. I am using arduino in slave devices. ...
0
votes
1answer
4k views

Capacitive Sensor gets stuck

I want to use CapacitiveSensor library in order to make my own aluminum keys piano. I have seen many videos online showing projects like the one I'm trying to do, but for some reason mine doesn't work....
0
votes
1answer
135 views

How to read AC Voltage in arduino uno with 12V adaptor and usb cable.?

i want to ON-OFF two lights(white and red), one from main power source(white light) and one from ups(battery). When main power is present, white light should be ON and red should be off. And when main ...
1
vote
0answers
1k views

PS4 controller too touchy on the arduino RC car i built

I recently built an RC car from scratch and I am using a PS4 controller to control it. I have an ESC of course but my problem is I barely touch the joystick and the motor is going so fast I cannot ...
0
votes
2answers
6k views

Where is documentation on Arduino's Internal Interrupts?

First time arduino programmer here...however I have programmed the TI MSP430 in the past... I am trying to figure out how to configure internal Interrupt Vectors on this Arduino Uno. In the Arduino ...
0
votes
2answers
181 views

Shift registers. What, how and why?

I'm making a project and I'm using multiple 1 digit 7 segment displays. I haven't plugged them all on my arduino because currently I'm just testing. The problem is on the I/O ports. Obviously I need ...
-2
votes
2answers
19k 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 ...
0
votes
2answers
485 views

How to upgrade Arduino UnoR3 clock

A little background: I need to generate a 40KHz frequency as accurately as possible. (One of my other posts is here: Stable frequency generation) My code is solid- I'm using an Uno R3 and ...
1
vote
0answers
977 views

Unexpected Timer Conflicts (Uno)

I've been working on a project (Arduino Uno: Atmega328) that implements a gyroscope (which is used with the LSM9DS0 spark-fun library) that is communicated with through I2C and uses a Servo library. ...
0
votes
2answers
826 views

Arduino ATmega328P works but board (Uno R3) seems broken

This is the first time I'm using my Arduino. It's an Arduino UNO R3. I have two boards. One works, but the other doesn't. I changed the ATmega328P from the broken one to the good one and it works, so ...
1
vote
1answer
59 views

Strange phenomenon when declaring double

Consider this question closed, found my answer through the answers I had I am trying to make a position profile curve depending on Looptime, accelerationloops,Setposition,Currentposition(position) ...