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
3answers
108 views

Arduino circuit diagram help

I'm new to the arduino and to EE in general. I've built the basic examples and a, now trying to get a deeper understanding of what the physics is doing. As such, I'd like some help in understanding ...
5
votes
2answers
355 views

Asynchronous control framework

Can anyone recommend an Arduino-based asynchronous scheduling library for controlling a small mobile robot? I'm writing the control code for a small 2-wheeled Arduino-Uno based robot. It has a few ...
1
vote
1answer
525 views

UNO Timer 1 CTC mode not resetting TCNT1

I'm trying to set up timer 1 to run an isr in CTC mode. no matter what i set OCR1A to it always executes at the same frequency and if i print out TCNT1 I get values higher than OCR1A. here is my Code ...
0
votes
1answer
514 views

Fog Machine - On Command

I work with a marching band, and we want to use fog machines for a particular part of the show. I know how to code/program in Arduino, however I am not great in the electrical and technical end. I own ...
0
votes
0answers
43 views

Frequency Help on arduino uno [duplicate]

Good day. Anyone that could help me. I need to generate a frequency greater than 40 khz using arduino uno. What coding do I use? Or do I need to put another citcuitry? Please help me. This is my first ...
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 &...
6
votes
1answer
530 views

Choosing right Sleep state

I'm planning on building an LED clock, but I want it to be lit only when I press the POWER button on my remote control. Using an IR receiver, which Arduino sleep mode should I use to reduce the ...
2
votes
3answers
10k views

Can I Implement a PLL on an Arduino?

Is it possible to create a system like a PLL using an Arduino? I ask this because there are some parts in the PLL system, such as: phase detector, VCO, divider, and I don't know how to make for each ...
1
vote
1answer
763 views

Eeprom write function does not seem to write in more than 100 locations

I am trying log my sensor data (1 byte each) on my Arduino Uno Eeprom. I have an ATmega328 on it, so it should allow me to write up to 1Kb on it, however I've tried the Eeprom write command and it ...
4
votes
2answers
4k views

How to increment and decrement an output voltage by using two buttons?

I'm trying to create a code using an Arduino Uno board to increment and decrement the output voltage of the Arduino Uno which is 5 volts and I need to step it up to 10 volts which I have done below. ...
1
vote
0answers
134 views

Display unresponsive in one sketch, while working in another

I'm using a DOGM163 Display. It works in a DEMO sketch provided by the manufacturer but not in my sketch. This is strange, because I am using the same library specific commands as in the example. I ...
3
votes
1answer
5k views

Can both the 3.3V and 5V pins on the Arduino be used at once for power?

I'm supplying power to Arduino via PC USB.
0
votes
2answers
92 views

Verify RGB Led Cube equipment

I'm preparing this kit on eBay to create the following instructable - http://www.instructables.com/id/4x4x4-RGB-LED-Cube/ But I have doubts about 0.1uF and 22pF capacitors since the once on eBay are ...
0
votes
1answer
567 views

How To Make LCD Shield Button Code Work with Pot

I am trying to convert this code into something useable with a potentiometer and push button because I don't have a lcd shield and dont feel like wiring that many buttons. I want the pot to have ...
2
votes
1answer
916 views

Uno as a composite USB HID keyboard

I'm looking to create a USB device that would be basically a HID keyboard. I am able to do that with Uno. I flash new firmware with a HID keyboard descriptor and on the arduino side I loop and check ...
2
votes
4answers
2k views

Passing the input from one pin to another as output without polling?

I am trying to pass the input from one pin to another pin as output. Effectively I want to create a blind passthrough. The end goal is to connect two Arduinos and a series of test points together like ...
0
votes
2answers
1k views

Comparators for digital input mode

I've asked another question in electronics about what to use to compare 2 input voltages, the answer was to use comparators. Digging around a bit, turns out most of the comparators outputs are pull-...
0
votes
1answer
644 views

Integrating two Arduino Ethernet libraries in one sketch

I am trying to integrate two different Arduino Ethernet libraries, EtherShield and UIPEthernet in one sketch. EtherShield library is used to control LEDs via Android mobile application. While ...
2
votes
1answer
1k views

Control servo motors with buttons and via web application

I have this assignment and I have been tinkering a long time about it. I need to make a simulation of a parking lot where servos would represent the ramps. I will be using 2 Arduinos running the same ...
0
votes
1answer
112 views

GET the first result in HTTP request

I have a String content="" and if I put an HTTP request like this: client.println("GET /api/actions?parking_id=39 HTTP/1.1"); client.println("Host: ramp-rampcontrol.rhcloud.com"); client....
0
votes
1answer
133 views

Running both sensor and addressable LED strips at a same time?

I'm trying to obtain the sensors' readings as well as making the LED strips to light up at this particular pattern, if the sensor readings reaches certain values. But since both of these codes are ...
2
votes
2answers
604 views

USB mini type B port on Arduino Uno

I bought today an Arduino Uno R3, and I'm looking forward to make it an HID device. I have seen many projects using a serial USB type B port. As I want to build a little gamepad, I would like to use ...
1
vote
1answer
228 views

Very easy Arduino code challenge for you brainiacs to solve

I've searched the forum for similar problems and still can't see my obvious issue. I'm working on a simple Halloween prop and I'm using an Arduino for the first time. I've tested each individual '...
-3
votes
1answer
71 views

Problem with Arduino code

Please help me with this code it's shows some error [but I can't be bothered to tell you what]. #include <TimerOne.h> /** Analog Clock Paul Cox Dec 2010 */ #define PI 3....
4
votes
3answers
1k views

How to print a line with a variable in it?

I want to know if there is a way to write like in C programming: printf("the num is %d",num); I know that to print a line or a variable the command will be Serial.println when I write: Serial....
1
vote
0answers
771 views

send SMS for 1 time with arduino GPRS SIM900 if an iput is HIGH (4 Digi inputs)

I faced a problem to send 1 SMS if an input is HIGH,and if it is LOW==> no SMS to send,if LOW to HIGH==> send 1 SMS. this code not working,just sent SMS when I turn the GPRS on,and after nothing is ...
1
vote
2answers
2k views

how many processor cycles/time does it minimaly take to transmit 1 Byte via Serial?

My understanding has been that the Serial transmission is indeed done (on the Arduino Uno) via the pins named TX->1 and RX<-0? With this I assume that the Atmega has a machine code that would ...
0
votes
1answer
1k views

How does arduino fetch instruction string from sms and execute?

I am working on a project in which i have to send commands using sms (GSM shield) to the arduino uno to control dc motor. What i want to know is that how can i define the instruction strings that i ...
-1
votes
1answer
44 views

arduino uno com12

In Arduino Uno, com12 board, already Bluetooth code is installed or not? I am doing the project based on robot using Arduino. I uploaded already one code, it is wrong and I want to upload another ...
1
vote
3answers
3k 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 ...
1
vote
1answer
2k views

bitRead() gives wrong answer Arduino UNO R3

I am trying to read from a quadrature rotary encoder using an Arduino UNO R3. This is done by connecting the encoder's channel A pin to the Arduino interrupt 0 pin (digital IO pin 2). Inside the ...
0
votes
5answers
92 views

Arduino Uno questions

Anyways cutting to the chase I am pretty good at C++ as I have been doing it for over 6 months pretty much 1-2 hours each day and I am looking for cool things to use my knowledge on ,I have heard of ...
0
votes
1answer
78 views

Simple Arduino Code Not Working

When I upload this code LED at pin 13 goes HIGH and that's it. My goal is to make it blink in the order specified in the array. What am I doing wrong? int Array[] = {1,1,1,0,1,0,0,0,1,0,1,0,1,1,0,0,1,...
0
votes
1answer
378 views

Unexpected output form Serial.println

So I have a teensy and an arduino uno connected together via I2C, however some very odd behavior is occurring, when monitoring the serial connection for shorter data sent over I2C I receive the ...
1
vote
1answer
603 views

I2C hookup - sketch just crashes

I am encountering problems with I2C when trying to attach a 9DoF Sensor to my Arduino Uno. Following these instructions (the hardware setup I have is like in the schematic) I noticed the basic example ...
3
votes
1answer
114 views

Can I stack an Arduino to another Arduino?

I'm using Arduino clones, which have pin headers the same as Arduino's shields have (with extended "legs" below the board to be stackable). Can I stack my Arduino (Mega) clone to an Arduino (Uno) ...
0
votes
1answer
1k views

Arduino ethernet shield not getting correct IP

I have a very simple sketch which I'm using to (try to) prove out an ethernet shield. The complete sketch is below. When I upload the sketch, the IP address that the shield gets is 0.140.140.140, ...
0
votes
1answer
991 views

This specific code just refuses to compile?

I've been working on some software to do REALLY basic composition of music. Here's my code so far: #include "notes_sharps.h" int notes[] = {NOTE_B0,NOTE_C1,NOTE_D1,NOTE_E1,NOTE_F1,NOTE_G1,NOTE_A1,...
2
votes
2answers
895 views

Measurement of pulse duration greater than 3mins

Is it possible to measure the width of a pulse which is longer than 3 minutes? The pulseIn function can only measure duration of maximum 3 minutes accurately. I've tried using interrupts but haven't ...
0
votes
1answer
2k views

How to send the MFRC522 RFID module into sleep mode?

I'm trying to get the power consumption of a MFRC522 RFID module down, currently while running it consumes about 4mA. There should be a way to put it into sleep mode, I just can't find any ...
2
votes
1answer
307 views

C++ Pointer Issues - Mangled Data

I am having trouble getting my head around pointers in C++, specifically how they behave when passed around or used within objects. As far as my understanding goes as long as pointers, or more ...
0
votes
0answers
68 views

Output to LCD is sometimes shifted to the side

I have an Arduino Uno connected to a LCD. When I try to write to it using the LCD library and the following sketch, it will keep shifting the output around, sometimes drastically. The sketch: #...
2
votes
1answer
183 views

Function not successfully reading sensor registers

I'm trying to write a library for an accelerometer/magnetometer sensor. The sensor is a LSM303D chip (https://www.pololu.com/file/0J703/LSM303D.pdf). I've written a function, readRegister() (below) ...
3
votes
1answer
1k views

What does serial data look like on an oscilloscope?

How I can find the data field on oscilloscope at 300 baud or at 9600 baud? Could someone show me picture on oscilloscope plase. This is the picture at 9600 Baud
0
votes
2answers
426 views

How do I send an arduino PIN state to a local PC using the ethernet connection?

As a PIN goes high I need to trigger an event that will send the IP or MAC of the arduino and the PIN state over the wired Ethernet to a local computer. I am using an Ethernet shield to send and ...
1
vote
1answer
319 views

Why when I press the reset button

Why when I press the reset button it takes 2 second before I see my sketch start? The model of Arduino is UNO, and the text in serial communication.
1
vote
1answer
124 views

Going from arduino & sketch to production

I've got a little proof of concept thing going here with an arduino & Ethernet shield. The basic idea is for it to ping out much like a heartbeat monitor every so often so I can see if my house ...
0
votes
2answers
5k views

Drive 12V Piezo Buzzer (Arduino)

I want to drive this 12V piezo buzzer: http://www.conrad.com/ce/en/product/130256/Kemo-L001-High-Freqeuncy-Piezo-Speaker-Component-12-24-V This is the circuit I am using. The Arduino is powered by a ...
0
votes
1answer
229 views

Arduino reads bogus from serial

Recently I've started playing around with an Arduino Uno (rev 3), and I've set up a communication bridge between the Arduino and my computer using Python. So I send a command in Python ("ping" for ...
-1
votes
1answer
1k views

Arduino Uno and Agilent ADNS-3080 not reading from SPI

I am trying to interface with a mouse sensor and am not able to get data back. datasheet link I have it still soldered to the original PCB but have cut the traces to pins 1-4,6,7 (NCS [SS], MISO, SCLK,...