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

/dev/cu port resource always busy on OS X 10.10

Is there any reason why is my /dev/cu port always busy? How can I fix that? It happened on both Uno clone and Spark Core. The problem is, I'm having issues doing serial communication. Where (as a ...
0
votes
1answer
211 views

AT command XBee from atmega to disable DIO5 (associated led)

I community! I need put ATcommand to my XBee from my atmega using a "xbee library" and a function that I have found in internet. I think the ATComand is "ATD50" to change the DIO5 to value "0" (...
2
votes
1answer
878 views

Am I Running Out of RAM Or Not?

I'm attempting to drive 300 TM1803 RGB LEDs from an Arduino Uno using the FastLED library. My code works fine for 100 LEDs, but when I go to 150, the arrays that store LED values and my sensor data ...
0
votes
1answer
495 views

Arduino UNO + CC3000 Wifi Shield, Reading webpage data

I'm new so I might be making a stupid mistake, but I'm declaring: char dollars; at the begging of file, afterwards I'm reading a data from a web page, printing it to my serial. That part work well. ...
2
votes
2answers
10k 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
91 views

Arduino Ethernet Shield vendor is null

I bought Ethernet Shield for Arduino Uno! from AliExpress. It is good work but I scanned my network with Fing and device Vendor name is null. Can I change/set device Vendor? #include <SPI.h> #...
0
votes
1answer
552 views

Stabilizing output values of conductive sheet(Velostat) connected to analog pin A0 of Arduino

I am trying to do some experiments with conductive sheet (velostat). When I apply a force on the sheet it should change the value of resistance(output). I taking the output of the sheet by connecting ...
8
votes
2answers
4k views

Arduino interruption (on pin change)

I use the interrupt function to fill an array with values received from digitalRead(). void setup() { Serial.begin(115200); attachInterrupt(0, test_func, CHANGE); } void ...
0
votes
1answer
412 views

How to check whether my Arduino is working? And how to fix this?

I tried my first project with Arduino Uno. But I can't upload any code. Power green LED is working and orange LED is always on, not blinking, and IC also getting hot. What can I do to fix this problem?...
1
vote
0answers
346 views

How can I open simultaneously 2 client socket connections with GSM shield?

How can I open simultaneously two socket connections with a GSM shield? It seems that when I try to open the second connection, it is not opened, and additionally the first connection is closed. ...
2
votes
1answer
420 views

Understanding Digital IMU 6DOF sketch

I am looking at the following code and getting confused by a few elements in it: 1) Why is there a writeto function being performed to the memory locations x053,0x31,x09 for accelerometer and 0x68,...
2
votes
0answers
199 views

Why does avrdude error appear when interfacing GLCD with arduino uno in ubuntu

I want to interface a GLCD with arduino uno. The GLCD is JHD12864E. The connections are as shown in this image I downloaded the OpenGLCD library and uploaded HelloWorld program from it. I got ...
0
votes
1answer
323 views

Taking voice input from raspberry pi and sending converted text to arduino to turn on relays

I have one raspberry pi B+ and an Arduino uno. I know how to control a relay from an Arduino. I searched a tutorial about voice recognition on arduino but got to know that arduino cannot take in audio ...
1
vote
3answers
9k views

High Frequency Sine Wave Generation

I'm new to the world of Arduino and I'm working on a wireless charging project that needs a 5.7MHz sine wave. I've tried using a Due and changing the PWM and DAC, but I can't get a clean sine wave at ...
0
votes
2answers
576 views

ADXL345 Arduino UNO data_ready interrupt

I would like the sensor values to be updated each 10ms(100Hz) and then run the algorithm and repeat the same process. However, after timing the algorithm it is taking only 2ms, I think the data_ready ...
1
vote
2answers
4k views

How to power both arduino and 1 color led strip from single power source

I'm trying to understand and adapt this tutorial: https://learn.adafruit.com/rgb-led-strips/current-draw to my own use. I am doing essentially the same thing, except I have this single color LED ...
0
votes
1answer
549 views

Bluetooth hc-06 and Standalone Atmega168(possible?)

I am making a project that requires bluetooth communication between a Raspberry Pi(equipped with a bluetooth dongle) and a standalone atmega168 circuit. I want to be able to transfer information ...
1
vote
3answers
2k views

Wifi Data Logger without Delay

I am really new to Arduino so please bear with me. I am running an Arduino Uno with several sensors to capture some data related to a fish tank. Here is basically what it does: Capture data (light, ...
1
vote
1answer
634 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
3answers
13k views

Stable frequency generation

I'm trying to work out the best way to generate a stable frequency with my Uno R3 I'm using interrupts to generate an approximately 40KHz frequency which drives some ICs/MOSFETs to effectively ...
1
vote
3answers
1k views

ISR executes even though an interrupt is not triggered

I am trying to implement a function queue scheduling system. INT1 is connected to a button and int1task causes an LED to flash. typedef void (*funcptr)(void); TPrioQueue *queue = NULL; void int1ISR()...
2
votes
0answers
1k views

Interfacing SD card with arduino without shield

I am trying to connect SD card with arduino without using a shield. To convert to 3.3v, I have used voltage divider circuit as described in these two sites: http://garagelab.com/profiles/blogs/...
1
vote
4answers
16k views

New to Arduino: Should I learn C, C++ or both (C & C++)?

From what i've researched here is my thoughts on both C++ I heard that you can create libraries using C++ in arduino. And you can use the Arduino IDE to do that stuff. Here is the proof http://...
0
votes
2answers
1k views

How to save the SHA256 with HMAC into a variable instead of serial print?

#include "sha256.h" uint8_t hmacKey1[]={ 0x65,0x63,0x73,0x74,0x61,0x63,0x79 }; void printHash(uint8_t* hash) { int i; for (i=0; i<32; i++) { Serial.print("0123456789abcdef"[hash[i]>>4]);...
-2
votes
3answers
7k views

Arduino Raspberry Pi USB Communication [closed]

I am trying to connect an Arduino and Raspberry Pi over USB. I would like to send serial commands, just like the serial monitor in the Arduino IDE. I know how to do this on the Arduino end but I'm ...
0
votes
1answer
81 views

Choosing rangefinder for obstacle-avoiding

I am looking to buy a range finder module for an obstacle avoidance robot. Currently, two good options based on available libraries and compatibility with Arduino and rPI are HC-SR04 and parallax ...
1
vote
1answer
3k views

Arduino around the Xmega?

I came across a dev board around the Atmel Xmega controller. This an AVR like used on Arduino, but with a lot of extras. I was surprised to see that the board is hardly more expensive than an ...
1
vote
0answers
513 views

Combining & averaging magnetometer values

I am trying to measure a users 'hand steadiness' in order to control a video game character in UNITY3D. I am using a MinIMU-9 Gyro/Accelerometer/Compass linked with Arduino. I can measure pitch/roll ...
1
vote
0answers
535 views

Arduino support package in matlab PROBLEM

i have installed the Arduino support package in matlab , and i have all blocks that come with it in my simulink the problem is that when i try to establish a serial communication i got smth like this ...
0
votes
2answers
2k views

estimating battery run time

I have a project which runs a continuous loop and listens for the push of a button to light an led and activate a servo motor on an Arduino Uno (R2). The arduino is powered by 4 AA batteries, and the ...
1
vote
2answers
839 views

Arduino Uno with crystal

Are there Arduino UNO R3s which use a crystal instead of a ceramic resonator? (Frankly, I don't understand this cheapness: if you really want to save on component cost you can run both AVRs on the ...
3
votes
1answer
1k views

How does one use (specically the wiring) the OV7670 camera with the Arduino Uno?

If one could tell me where each of the pins on the back of the camera go to, that would be great. if someone added the code also that would be awesome.
1
vote
1answer
806 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 ...
0
votes
2answers
4k views

project not working when switching to battery power

I have a project which involves a photocell, an led, a push button, and a small hobby servo (tower pro sg5010) - the project works as expected when the arduino is powered by usb, but when I switch to ...
1
vote
2answers
513 views

Can I connect to WiFi with an Arduino, “wireless SD shield” and XBee

I want to create a growhouse sensor system. I have an Arduino UNO, wireless SD shield and I have just ordered a series 2 XBee XB24. Any info I find seems to revolve around having 2 Arduinos and 2 ...
0
votes
1answer
1k views

modbus slave ID setting

I have small problem in setting device ID for Mosbus slave arduino. Here is simple example In Modus library; device ID being configure hardcode while program. This code works for Me. Modbus slave(1,...
1
vote
1answer
3k views

Arduino Ethernet and Uno R3 as a firewall

Is there a way to program the Ethernet Shield and Uno R3 to act as a firewall without using a huge chunk of the allowed bytes on the R3? I plan on using a DC adapter to plug the R3 into a wall, and ...
3
votes
2answers
26k views

How to control 19 RGB LED strips with one arduino?

I need to light up 19 RGB LED strips, which it seems would require 19*3=57 PWM outs and 57 transistors. The transistors aren't an issue, but of course the 57 PWM's is. Even if I hacked the digital ...
1
vote
1answer
2k views

Writing serial data, just once after read

I have developed a program and the idea is that when it receives serial data (any single character) it returns a single random number. I have it working but it returns 3 x random numbers one after ...
-1
votes
2answers
5k views

6 + 1 motors connected to an arduino uno?

Is it possible to connect 6 dc motors and 2 dc servo motors to an Arduino Uno? I intend to control the Uno with a Raspberry pi connected through USB. Assuming every motor to be bidirectional, how ...
-1
votes
1answer
101 views

I put a photo sensor, however my lights are on no matter what! [closed]

I'm still new to Arduino and I need some help. I put a photo sensor so that if the sensor detects light, my LED lights stay off, but if no light is detected, my LEDs turn off depending on the ...
1
vote
1answer
736 views

XBEE coordinator WITH or WITHOUT Arduino?

I am building a wireless system that has got an Arduino with a XBEE as the 'end user' and I need to acquire data/control that Arduino from a PC graphical interface. As far as I'm aware there are two ...
2
votes
3answers
42k views

Make a PC graphical interface for Arduino - Any easy software? [closed]

What's the best/easiest software to make a PC-Arduino interface? Ideally, I need to create a .exe that shows up a simple graphic interface, where the user can display data acquired from sensors ...
0
votes
1answer
605 views

Connecting a LSM9DS0 9DoF module to Arduino Uno

I got a bit confused by Sparkfun's hookup guide for this 9DoF breakout module. It says the VDD-in on the breakout "should [get voltage] regulated between 2.4V and 3.6V", yet in their example they do ...
1
vote
1answer
61 views

Plugged in shield off by one, now all analogues read high

I have a prototyping shield for an Arduino Uno. I accidentally plugged the shield into my arduino so that the pins were all "off by one". I didn't think this was possible, but it turns out that the ...
4
votes
2answers
3k views

Set Arduino digitalRead reference voltage

I wanted to know if the reference voltage for the digitalRead() function could be set to a particular voltage, either with an external reference or internally. In the Arduino reference under the ...
5
votes
1answer
2k views

Cannot find Arduino under /dev Directory

I have the Arduino board connected to a USB port of my machine. But I cannot find it under /dev/ directory in my Ubuntu. Does anyone know how to deal with this issue? By the way, "lsusb"'s output ...
-1
votes
3answers
832 views

Time based scheduling, NTP vs delay()

Without asking an open-ended question, i wish to find the best way (resourcefulness) to execute methods from an arduino based on time. in a nutshell, every 10 minutes i want functionA() to be called &...
0
votes
3answers
605 views

Arduino UNO does not get recognized by PC(no USB connecting sound), also TX and RX not blinking, neither are lit

I am trying to build a robot, which needs motors to roll around. So I was trying to control two DC motors with H-Bridge that comes with Arduino StarterKit(H-bridge motor driver [L293D]). I used Sketch ...
0
votes
1answer
2k views

Why are pin 18 and 19 always HIGH?

I wired my switch just like in the default button program. I know it works because it works fine on other pins, just not pin 18 or 19. What am I doing wrong? const int buttonPin = 18; // the ...

1
130 131
132
133 134
144