The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
25 views

Get an additional analog pin?

I have the following board: As far as I can tell, there's only a single analog pin (A0). But I need at least 2 additional (for 3 total). Is there some way to fake analog input on GPIO pins?
0
votes
2answers
48 views

Can I use the same Data Registry for both input and output pins?

This is for a class in which we are not allowed to use the Arduino Library (Not my choice or preference). I know to use DDRB for the B pins. This is the code that I have so far: //Global pointers ...
1
vote
1answer
48 views

Prevent 5V output on Arduino Nano 5V pin

I just made an addressable RGB LED strip controller but im concerned about if I'm going to break the thing. I know it sounds vague so let me elaborate: there is an external power supply connected to ...
0
votes
0answers
29 views

Text file from PC to SD card via Arduino Ethernet Shield?

Is possible to transfer a text file from PC to SD card via Arduino Ethernet Shield? Are there an easy way to do this?
0
votes
1answer
11 views

How to encode resistance change (reed) for Arduino?

I have a water counter which switches reed on each 10 liters of water. I would like to count these values with Arduino. I wrote a program which counts changes from analog input and connected counter ...
0
votes
3answers
44 views

Why isn't this pushbutton program working?

Here is my circuit: and here is my code: int LED = 13; int BTN = 7; void setup() { pinMode(LED,OUTPUT); pinMode(BTN,INPUT); } void loop() { if(digitalRead(BTN) == HIGH) { digitalWrite(LED,LOW); } ...
0
votes
0answers
22 views

What's wrong with my IR AAC keys code ? :(

#include <IRremote.h> #include <IRremoteInt.h> int receiver = 2; // IRrecv irrecv(receiver); // create instance of 'irrecv' decode_results results; void setup() { Serial.begin(9600);...
1
vote
0answers
37 views

Arduino Robot motors disabled when AnalogInput is connected

I have attached a solar panel to the Arduino Robot, connecting the - to the TK3 Input GND, and the + to the TK3 Input Analog Pin. I want to turn the robot around and "scan" the voltage. But the motors ...
1
vote
2answers
41 views

Reading Multiple switch inputs

I am trying to setup 20 input switches that can be pressed with hand. I am trying to get the output based on the pattern in which the input switches are pressed with the hand. Based on the pressure ...
1
vote
1answer
62 views

PWM Every Other Pin Doesn't Read

Scenario I've plugged 6 pins from my RC receiver into my Arduino in order to read the incoming values. Problem I'm using Digital PWM~ pins 2-6. Oddly the Arduino only reads odd channels: 1480, 0, ...
0
votes
1answer
46 views

ATtiny85 (Sparfun Clone/Trinket), detect/read operation voltage

I just started with Arduino programming and currently I'm using this Sparkfun clone board: o http://nl.aliexpress.com/item/Digispark-kickstarter-Micro-development-board-ATTINY85-module-for-Arduino-...
0
votes
1answer
48 views

Computer to Arduino to hardware, controlling on / off state of hardware via user input on computer

First time coding for Arduino. I'm working on code to operate an electronic valve switch. We have a laptop connected to an Arduino Mega, and that Arduino is hooked up to the valve (hardware) on Pin 53....
1
vote
1answer
27 views

Read int from Serial

with the following sketch I should be able to read and store what is entered in the Serial monitor void setup() { Serial.begin(115200); while(!Serial); } void loop() { Serial.println("Enter ...
1
vote
1answer
61 views

Can an arduino tell between being powered by USB or by the jack?

I have an arduino mega that will be communicating through serial to a pc. One of the things I want it to tell the pc is whether or not it is connected to a wall power to 12V converter (where there is ...
1
vote
1answer
44 views

Digital input pin voltage treshold (voltage to register 1 or 0)

I was thinking of using multiple analog light sensors (variable resistance by light), but basically I only need to know if there is "a lot of light" or "not a lot of light". And would like to use ...
0
votes
2answers
254 views

'Keyboard' not found when trying to use Keyboard.write from the <Keyboard> library

I am trying to get a response from the arduino when I press a key, but when I try to upload the code it says that it could not find 'Keyboard' with 'Keyboard.write'. Here is my code. Ignore the bits ...
0
votes
1answer
33 views

Arduino digital I/O pins

I heard that using digital io pins in INPUT_PULLUP mode is much reliable and stable than in the case of using them in INPUT MODE.Then why is INPUT MODE still used...I mean Why isn't INPUT_PULLUP mode ...
1
vote
2answers
41 views

Port Manipulation - fastest implementation

I'm working on an Arduino program but am getting bogged down on what is the 'correct' implementation. I understand that multiple versions may work, so for my needs the 'correct' version will be the ...
0
votes
1answer
20 views

User input for utility program

I am writing a utility program to test relay boards. I'd like to be able to accept a user input of the number of relays on the board. Is this doable via the serial monitor since when I'm testing ...
1
vote
1answer
96 views

Measuring LPO (Low-Pulse Occupancy)

I'm using an Arduino clone (Seeeduino Lotus) together with a Shinyei PPD42NS sensor to measure air quality. The sensor reports its measurement as Low-Pulse occupancy. What would be the best way how to ...
0
votes
1answer
210 views

ATtiny85 and INPUT_PULLUP

I have read some conflicting sources about what pins have internal pullup resistors available for the Attiny85 microcontroller. Can all I/O pins work with INPUT_PULLUP, or just some of them? And if so,...
0
votes
1answer
93 views

Digital Input with long cable - flickering values

I have an Arduino Nano with two attached Motion sensors "PIXNOR HC-SR501". This sensor puts 5V on its middle Pin, when it detects motion. I have connected this Pin to my Arduino and read the value ...
-1
votes
2answers
803 views

Arduino: Read frequency of input from audio jack

I want to trigger an arduino from a sound from an audio jack from a mobile phone. The audio is a 1 Khz sound that the mobile will play. I want to avoid accidental triggering of the audio by testing ...
1
vote
2answers
87 views

do digital input pins act as a positive or negative

I've gotten contradicting information on the subject. Some say that digital input pins send out positive voltage, and if it goes to ground (for example) it reads LOW but if the pin is connected to ...
0
votes
1answer
27 views

İs there any way different way than GND's Arduino

İ'm making a project on my arduino uno when i figured out i had no more GND left to finish the circuit. İs there any other way to optimize, use pins as input maybe. İ tried whit other websites, ...
3
votes
1answer
57 views

What is the Maximum Current an Arduino can Supply?

I was wondering how much my Arduino I/O pin can output when it is set at Output and is at High. I am using an Arduino Uno R3. Thanks in Advanced.
0
votes
2answers
291 views

Industrializing Arduino - 24V io? (Electronics)

I would like to make an arduino board that is capable of handling 24V i/o. Powering the Arduino would be done through either a linear or switching regulator of some sort. Low amperages, so efficiency ...
4
votes
1answer
39 views

Input clock limit

If you use an external oscillator, and divide-by-8 internally, can you apply up to 160MHz on PB6? For example, can I use my 50MHz oscillator to clock my 328p @ 6250KHz? Note: when I say oscillator I ...
0
votes
3answers
167 views

How to check if a pin is set from bank?

How would you go about checking if an input pin has been set using the entire bank? I am thinking that I need to use bit twiddling with a bit mask but I have not used this enough to figure out how to ...
4
votes
3answers
97 views

How do I create a 9 bit number based on values from 9 digital inputs?

I have 9 pins that are inputs from 9 IR LEDs. I want to combine all their results into one 9 bit number. example: pin1 = high, pin2 = high, pin3 = high, pin4 = low, pin5 = high, pin6 = low, pin7 = ...
0
votes
3answers
223 views

How to add more inputs on Arduino?

I'm building an instrument that has 72 buttons that can be pressed. Now I'm planning on using Arduino to send data to computer via USB cable about which buttons are pressed. So I figured I'd need 72 ...
0
votes
0answers
42 views

Programming Arduino Uno

So I am working with an Arduino Uno to make my RC Car move. The thing is I am understanding how to call the pins to make the RC Car perform a function like moving forward or backward. The thing is it ...
0
votes
3answers
88 views

does INPUT_PULLUP uses power?

When using a digital pin as input, one has the option of using the internal arduino resistor, which is connected to VCC; that is setting the digital pin as INPUT_PULLUP, and then the pin reads HIGH. ...
4
votes
1answer
320 views

Arduino Analog Input Oscillating

I'm making a simple Infrared detector using a thermopile. I have a few extra capacitors than what that schematic says. I'm currently following another, but this is the gist. Schematic and Breadboard- ...
2
votes
1answer
189 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 ...
0
votes
3answers
104 views

Why should a pin be set as an input if it can read input when set as output?

I recently created a circuit to read the value from two sets of buttons using only two analog pins. It involves setting one pin HIGH and reading the input on the other pin and then swapping. With both ...
1
vote
2answers
275 views

Arduino nano getting powered through analog input?

I noticed something today. I am powering the Arduino Nano from a battery and a 5v step up converter. That works just fine and I'm getting a stable 5v output. I have a second cable coming out from the ...
0
votes
2answers
789 views

Digital pin input stays high after receiving a high signal

I don't know why but when a pin set to input mode receives a high signal, then a low signal, it stays high for a seemingly random amount of time. #include <LiquidCrystal.h> LiquidCrystal lcd(7, ...