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
1answer
512 views

Driving multiple LED arrays with shift registers

The project I'm building requires multiple LED arrays. I'm going to wire these LEDs in parallel and then connect the arrays to individual pins on a shift register. In addition to the LEDs running in ...
1
vote
1answer
144 views

Arduino snake on 5110 screen - some help needed

I'm trying to make a snake game using the u8g lib. But for now, only the second body part of the snake follows the head, where I want the whole body to follow the snake's head and I don't understand ...
0
votes
1answer
552 views

Arduino Interface with Serial device and LCD display

I want to connect my Arduino UNO to a serial device that once powered displays signature numbers. I want to then display those numbers on an LCD display. I have my 16x2 LCD wired correctly and it ...
1
vote
3answers
3k views

Alternative to delay function

I am trying to make a workaround for the delay function. I am trying to use the function in the Analog Write Mega example, by replacing delay with the function i made. However, whenever i use my ...
2
votes
2answers
1k views

Can I use this cheap GPS module with arduino

For my project I need a GPS module, it should be cheap and I should be able to use it with arduino, after some search I got a product on ebay, I'm a 16 year old school boy and I didn't know that it ...
1
vote
1answer
54 views

How is LED powered when PIN 2 is disconnected?

Using the Arduino tutorial "Button", I have noticed that if I totally disconnect Pin2 from the circuit, the LED comes on dimly. I am trying to understand HOW this happens. Is it simply due to being ...
0
votes
2answers
199 views

What is the relationship between the gain on the receiver and the delay time

I was conducting some research on wireless communication between a simple transmitter and receiver module using an Arduino. Now, I tested the channel accuracy and i received 14% error for a delay of ...
1
vote
4answers
199 views

A knob that can be turned by hand, have the position read, and turned by software to another position?

I'd like to be able to change variables on the Arduino by adjusting a set of knobs. When I get to a desirable setting I'd like to be able to save those settings on the Arduino... and then I'd like to ...
2
votes
2answers
3k views

MPU-9250 : How to convert pitch (+90/-90) to 360 degree?

I'm using Arduino Uno with MPU-9250 to find roll, pitch and yaw. Everything works fine but I want to covert pitch from (+90/-90) to 360 degree. I'm using this code: vec.setX(atan2(2.0 * (m_data[2] ...
0
votes
1answer
452 views

Can't upload my sketch from arduino IDE

I am using arduino uno and window7 64bit.I can't upload my program to arduino uno.When I upload it the warning message is show me.The warning message is"WARNING:Category 'USB' in library keyboard and ...
-3
votes
2answers
2k views

How do you make the arduino go forward,backward and stop using Infrared? [closed]

Please give me a code and diagram use makeblock i.r sensor V2.1 and makeblock remote. It should be connected to a d.c motor that works with a h-bridge.It also has to be a dual motor which combines ...
1
vote
1answer
172 views

Help understanding code to build circuit for plant reader

I'm working a design project that measures the tiny changes of conductivity in a plant. (To visualize how a plant reacts to its environment) I'm working with Arduino to realize that. Two wires are ...
1
vote
1answer
334 views

Upload Assembly to AVR on a breadboard using Arduino as ISP

I try to learn assembly and use an arduino uno R3 to act as a programmer. i have build a standalone circuit with an atmega328p, can upload usual sketches (written in c) and have also sucessfully ...
-3
votes
1answer
100 views

How do you write a randomizer, like, after a sequence of events occurs? [closed]

favorite I wrote a code for an arduino. It functions like this: you press a sequence of buttons, and then the lights flash three times, and then it's supposed to reset and randomize the order. My ...
1
vote
2answers
109 views

Beginner here. Which arduino revision should i buy?

I have no idea what difference is there between the revisions and how it affects me. I have a pdf and this pic was in there: My questions which arduino revision is this? Does it matter which ...
0
votes
2answers
3k views

Wrong calculation UNO

I've a joystick and a servo connected to my UNO, but for some reason my calculations keep on being wrong? I'm trying to calculate how the rotation should be of my servo (Tower Pro 9g, max value of 180 ...
0
votes
1answer
78 views

How can I do this sentence show me in arduino [closed]

How can I do this sentence show me in arduino."WARNING: Category 'USB' in library Mouse/keyboard is not valid.Setting to 'Uncategorized'
0
votes
1answer
1k views

Arduino RBBB - Device not accepting address

I recently purchases and make a Arduino RBBB with a BUB II from Modern Device. I ordered the package found HERE. I built everything according to the instructions, but when I connect it to my laptop (...
0
votes
2answers
1k views

Servos don't move

I made simple code for a robotic arm, but the servos don't seem to be reacting at all. I made debug code before all the if statements, and those aren't working. I made sure my wiring was good and it ...
0
votes
2answers
134 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
307 views

2.8" tft screen arduino all pins used

I'm trying to connect a 2.8" display but it uses all the pins. That similar to this post (here: 2.8" TFT Touchscreen Prohibits Access to Unused Pins) However, they recommend a proto screw shield ...
0
votes
1answer
132 views

Help with Flappy Bird Sketch

I am compiling the sketch found here. I just downloaded the .ino and .h files and opened them, so I have not modded the code at all. I keep getting the following error. In file included from ...
0
votes
1answer
3k views

When the Arduino is in reset mode are the digital pins high impedance?

I have an Arduino (Arduino A) hooked up to an external FRAM chip and I want to be able to pull the Arduino A's reset pin to ground to keep it in a constant reset state. Then I want to hook up another ...
0
votes
1answer
187 views

Interrupt not firing on motion

I'm trying to get MMA8452Q to trigger an interrupt when motion is detected and wonder if I'm missing something very obvious here. So I setup CTRL_REG4 to 0x0B with void MMA8452Q::setupISR() { ...
0
votes
1answer
280 views

actual use of noTone() in arduino

What is the use of noTone() function as the duration for which the note must be played can be specified using the third argument of note() function.
7
votes
3answers
27k views

I2C 2 way communication between Arduino Uno and Arduino Mega

If I remove the transmission code from slave this works properly but I need to transmit from slave. Here is my master code #include <Wire.h> void setup() { Wire.begin(3); Wire.onReceive(...
2
votes
3answers
672 views

Arduino coding of producing frequency

Im new here. Anyone that could give a code or sample that would generate I wanted to use a frequency in range of 35k-43kHz. Please help me.
1
vote
2answers
3k views

run two motors in turns without using delay()

I googled solutions and tried, but I still cannot get it working. I've tried BlinkwithoutDelay. I feel it is very confusing to track timing of two motors (i.e., step, direction, speed) for the ...
0
votes
2answers
79 views

Identical statements, different outcome

First a little background on me and my project. Most of my programming experience is with PHP and javascript. I have just recently started looking at C and C++ for this Arduino project. My project is ...
1
vote
1answer
339 views

Linking Arduino With Twitter

My project is having Arduino with my WiFi shield connect to Twitter and look for any messages that other users have tweeted at me that contain a certain color, (I.E. @myTwitterHandle I want red) and ...
0
votes
1answer
2k views

Why does my Arduino seem to reboot every time that I open Serial Monitor? [duplicate]

Every time that I open the Serial Monitor, my Arduino Uno, seems to go back to void setup(). Is it a normal thing?
0
votes
2answers
130 views

Using an Arduino as a electrical mains switch

How do I make an electrical switch using Arduino, that when it receives signal (wirelessly or through a LAN port) to switch off it disconnects the switch and then again told to turn on turns the ...
3
votes
1answer
727 views

Is it possible to create an electromagnetic wave using PWM?

What would be the simplest way of making an Arduino emit EM waves using PWM (or without)? Theoretically, oscillating a current through a wire would result in an electromagnetic wave, but I don't know ...
1
vote
1answer
56 views

How to change the topic_name string to PROGMEM?

I'm trying to save SRAM on my Arduino pro mini by going through some libraries. I've noticed that to use my Arduino as a ROS node the library stores the topic name and message type as constants. ...
1
vote
3answers
92 views

Arduino code on Raspberry? [closed]

Is there any way to run Arduino sketches on Raspberry Pi (basically on Raspbian)? I have several projects that work on Arduino and I would like to run the exact same stuff on my Raspberry Pi. Is there ...
0
votes
0answers
1k views

Printing bitmap image from thermal printer using Serial input

I want to print Bitmap image from thermal printer, but image data is from Serial Input. But I am not getting valid print. What wrong i am doing ? Here is code i wrote #include "Adafruit_Thermal.h" #...
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
353 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
564 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 ...