The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

How to fade in and fade out led strip connected to arduino based on continous analog input from capacitative sensor?

So I've been trying to get a capacitive sensor made from aluminum foil to work. And I have had success the kind of proximity and readings I need to light up a single LED and produce basic tone. Using ...
-1
votes
3answers
8k views

Can anyone explain how hex codes 0x1A is used for sending ctrl+z & 0x0D for Carriage Return & 0x0A for LineFeed?

Please explain in detail. How the Hexadecimal code has been assigned? Edit: This is the code: #include <Wire.h> void setup() { Wire.begin(); Serial.begin(9600); delay(1000); ...
1
vote
0answers
138 views

I2C with an arduino, a PI and an IO expander

im working on a project which requires alo i/o pins. For that reason i bought a pcf8574P 8bit I/O expander which uses the I2C protocol. The problem is how to combine the Rasp PI and the arduino. For ...
1
vote
2answers
386 views

How to power on Arduino a few seconds later after GSM module initialization?

I've connected a SIM900A GSM module to Arduino and the circuit works standalone on a 12V power supply. The problem is when I provide the 12V power supply, both GSM module and Arduino starts but the ...
2
votes
1answer
569 views

Can I use Serial.println() in a class?

I'm trying to convert a class header file from another c++ project to arduino, which in my mind involves replacing cout with Serial.println. When I try to recomplile with all of these changes, I get ...
0
votes
2answers
35 views

Stack isn't popping off correct data?

So, I was working on a project where I needed to get a random object from a stack, so to make sure my design was correct, I made a dummy program that does nothing but fill a stack with data, then ...
1
vote
0answers
474 views

After putting Arduino Uno into DFU mode, it is no longer recognised by PC [closed]

My Arduino just stopped working after putting it into DFU mode. I did not flash any firmware. Could it be stuck in DFU mode? I have a UNO r3.
0
votes
2answers
2k views

Arduino SoftwareServo by example

I am interested in writing a simple Arduino program that will turn a servo back and forth (180 degrees each time) continuously. I am looking at these servos and am planning on following this example. ...
1
vote
1answer
321 views

Adafruit CC3000 Wifi Shield on IRQ 2?

I'm using an AdaFruit CC3000 Wifi shield as an HTTP server with an Arduino Uno. I have a script which works fine -- logs into my Wifi and listens for connections as it should. However, I want to ...
6
votes
2answers
198 views

Disturbed digital out at 4Mhz on Arduino NANO

I've written a simple program - it generates signals over Port D at 4 MHz: #include <Arduino.h> int main(void) { DDRD = B11111111; PORTD = B00000000; while (true) { PORTD ...
0
votes
2answers
260 views

How to increase Arduino's memory to save Dot Matrix Library?

I need to display some dynamic Chinese characters to 12864 using Arduino. What to show is transported from my web server. The character is stored as a 16x16 dot matrix, needing 16*16/8=32 byte. And I ...
0
votes
1answer
195 views

Custom Bootloader on Atmega328p - PU - 28 pin DIP

I am experimenting with low-power wireless arduino modules. For that, I needed 3V powered arduino so that I can do away with voltage regulators which eat up a lot of battery juice. I am using 28 pin ...
-1
votes
1answer
421 views

ardino gsm not working [closed]

I'm trying to get my arduino GSM shield working with the example "Send SMS" code provided. However, when I upload and compile the program, the serial monitor displays "SMS Messages Sender" and nothing ...
0
votes
1answer
322 views

Arduino Start en Stop

Is there a way to set a time for instance 8.00 PM to make the arduino-uno start or stop at that time?
2
votes
2answers
286 views

Why is SoftwareSerial causing arduino to reboot?

I'm trying to design an RC controller using an Arduino and an XBee Series 2 Pro. I have the hardware serial running for debug information and I want the XBee to be connected to a soft serial on pins 8 ...
0
votes
1answer
2k views

Arduino Mini Pro not working with my Neopixel project

my project involves 9 Neopixel LEDs. I have tested my code with my Arduino Uno board successfully. I'm using a mix of breadboard, jumper wires, and solder to connect everything. Powering the strip of ...
3
votes
5answers
7k views

Arduino communicating back and forth with PHP server

I am researching to find the best method to work with in order to control the arduino from a web interface (hosted on a web server using PHP) and also sending data from arduino to webserver and save ...
1
vote
2answers
281 views

Improve sampling speed while using a multiplexer

I currently connected 5 sensor via a multiplexer (I must connect them to a multiplexer because they are I2C devices but they cannot been allocate more then 2 addresses so I use a multiplexer to solve ...
0
votes
2answers
4k views

Sensing concentration of methane with MQ-4 methane sensor?

I'm on a project to sense any amounts of methane in the home. I have bought the popular MQ-4 methane sensor from SparkFun: https://www.sparkfun.com/products/9404 I've looked online for any sample ...
1
vote
2answers
191 views

cannot convert error with pointers

I write a code to store patterns for LED blinking, but I got this error: led_basics:39: error: cannot convert 'char (*)[17][2]' to 'char*' in initialization led_basics:39: error: cannot convert '...
0
votes
1answer
916 views

arduino suddenly shows “avrdude: ser_open(): can't open device ”\\.\COM3" after last upload

I am using arduino uno to make a sound detector. I uploaded a program, found error in the code that it returns unintended numbers unreasonably big. I also think I used wrong code for the module, but ...
2
votes
1answer
59 views

What are possible issues when moving Arduino to another microcontroller?

When Arduino was conceived AVR was very much the best 8-bit controller available. But we're 10 years on now, and still using the AVR, despite lots of better microcontrollers available, notably ARMs. ...
0
votes
1answer
672 views

Control external device using Java Web Servlet -> Pi -> Arduino -> Device

I'm new to the world of Arduino & PI, so far it's been a fantastic experience but I'm now looking to build something a bit more practical. My plan is for the PI to host a JSP Servlet website. I'...
0
votes
1answer
1k views

Which battery should I use to power arduino+motor shield + two 200 RPM (3.6V/1.5A)motors

I am using two motors ( from old two drill machines - same kind, these are 3.6v motors ), connected to arduino + arduino motor shield seeed studio v2. When I measured the both motors (indvidually) ...
1
vote
0answers
1k views

Blinking LEDs as fast as possible at different rates.

I'm trying to use the Arduino Uno to make a strip of LEDs blink as fast as they can while still blinking at different rates. I am able to get them blinking at different rates but the blinking is very ...
0
votes
2answers
276 views

Multithreading Leds and Joystick

I'm trying to made a program that turn on and turn off leds with an input and send the coordinates of joystick, but, in the loop, the arduino makes one at a time, and i want make this in the same time....
1
vote
0answers
192 views

How do I connect a micro display to an Arduino? [closed]

I have a micro display that I bought for a project and to my knowledge there is no driver(?). Would I need some component to be able to control the LCD? Which would it be? Specifications Datasheet
2
votes
3answers
16k views

Do I need the Motor Shield to drive servo motors?

I was perusing Arduino's list of official shields and noticed the Motor Shield that can be used to drive up to 2 servo motors. Being brand new to Arduino/robotics, I am wondering: do I really need ...
0
votes
4answers
108 views

Arduino: Breadboards and PCBs [duplicate]

I just watched this excellent video tutorial that shows a simple Arduino program that toggles an LED via a pushbutton. Very cool! In the video, the author is using a breadboard for prototyping his ...
0
votes
2answers
98 views

When and where do I have to worry about accounting for sensor “noise”?

I just watched this excellent video tutorial that shows a simple Arduino program that toggles an LED via a pushbutton. Very cool! Being brand new to electronics/robotics, I was shocked that something ...
1
vote
1answer
688 views

Arduino/DuinOS vs Normal C/ARM Programming

I'm trying to understand the difference between programming Arduino hardware (Atel/ARM based) versus 'normal C-based ARM programming'. My understanding is that the Arduino language is cross-compiled ...
0
votes
1answer
184 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
2answers
5k views

Transistor for DC motor and 9v

I have this schematic for a DC motor in my arduino, now I want to add 9v battery. But I've seen that people use TIP120 transistor, I have BC548B, can I just put the 9v with that transistor?
2
votes
1answer
5k views

How to convert a String number Into a int value?

I want to convert a string into a int value. in my real code, I receive a string "Slider 255" the number after slider changes from 0 to 255, so I want a int value to be equal to that number. This is a ...
1
vote
1answer
6k views

Interfacing a CCTV camera (AV output) with Arduino Uno

I have to use a camera to take picture in my major project. I want to use this camera, which has AV output. Please tell me how to interface this camera with my Arduino Uno and use the data from camera ...
1
vote
0answers
367 views

The Ethernet Shield Unable to Establish Full Duplex Communication [closed]

I am using Arduino Uno R3 board with Atmega 328p microcontroller along with an ethernet shield for showing tempererature over a network. However i am facing a problem that the FULLD(full duplex for ...
0
votes
1answer
442 views

Arduino serial informations

Is it possible to change serial information of arduinos board ? For example I have an arduino uno with this serial informations : { comName: '/dev/cu.usbmodem1411', manufacturer: '...
0
votes
4answers
1k views

Is it possible to program Arduino UNO with USB/TTL adapter withouth connection Vcc

For some strange reason my Arduino UNO clone board occasionally cause my Mac to reset, when I connect the usb cable. Possibly a power problem in Arduino or the USB hub. Is it possible to program ...
1
vote
1answer
141 views

Powering arduino uno from Car's reverse light?

I am making a reverse sensing alarm system. I am using a HC-SR04, arduino UNo and a piezo buzzer. The programming was a success however i will like this circuit to be powered when the reverse gear is ...
0
votes
1answer
146 views

Not sure if programmer or ATMega is burned

some time ago i tried doing this with my original arduino uno r3. I guess i had to plug the power cables in wrong order(i think it's called reversing polarity) because my arduino stoped working. It ...
14
votes
5answers
4k views

How to connect two Arduino without shields?

I'm planning an Arduino system that consists of several Arduino boards. The maximum distance between the boards is about 50 meters. I want to send basic data between these, like short strings or ...
0
votes
1answer
3k views

Modbus master slave

I need Help in two thing Here. 1)My main project is i have 23 hallsensors with analog output. There are connected to arduino UNO analog pins using 16:1 Mux or 8:1 mux circuit. The currently i can ...
0
votes
1answer
839 views

Serial LED control

Hell0! I run in small problem. I am try to control LED's by serial port.So I am expect to send "1" and two LED's will start to blink or send "0" and only one LED is constantly lighted up. At first I ...
0
votes
2answers
105 views

Problems splitting a string to get authentication and command

Good afternoon, In a nutshell I'm having some difficulty with splitting and returning part of a string. Essentially I'm working on the code for transmitting a password (24 character string) and ...
0
votes
1answer
277 views

LCD Display hangs the computer

I'm trying to connect 16x2 LCD screen to clone Arduino UNO via PF8574T backpack. 4 cables are connected to +5V, GND, SDA and SDL pins. When I tried this I2C scanner code from arduino.cc. It returned ...
1
vote
1answer
776 views

How can I use a 'Global' class object?

I created a class inside the sketch file(not in another file) and init it as object before setup() and loop() as a global object, after I change some parameters inside the object in setup() , I found ...
1
vote
1answer
2k views

How to precisely control servo motor by changing duty cycle?

I developed a PWM using timer1,using arduino uno and digital output, and identified that when I send a wave with duration of 0.6ms in High level, the motor goes to 0º. If I send 2.1ms, it goes to 180º....
5
votes
1answer
505 views

Mechanical requirements for Arduino compatibility

If I want to design an Arduino-compatible board I guess I'll have to use the same outline, and connector positions to fit existing enclosures. (Beats me why they didn't choose a simple rectangular ...
0
votes
1answer
293 views

Turn on led by phone and phone contacts

I would like ask for help. Can you give me an advice how to create (contacts) nubers who can turn on led. #include <GSM.h> #define PINNUMBER "" GSM gsmAccess; GSMVoiceCall vcs; char numtel[20];...
5
votes
4answers
9k views

Timer2 does not work as it should

I am currently playing with Arduino timers (on UNO currently) and I am building a library that has a function that must be called every millisecond. There is plenty of code samples on Internet so I ...