Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pins]

"Pins" are like gateways between the Arduino code running on the chip and the components attached to Arduino. It can refer either to the physical connectors on the board, or it can refer to the pins defined in the code.

0
votes
2answers
28 views

Ways to add pins in an arduino

I'm making a project for school where I'm using flex sensors and converting that into words on an LCD (similar to the signing glove if you're familiar with that). I ran into a problem since the ...
0
votes
1answer
25 views

Nodemcu ESP12-E (ESP8266), Can I reprogramming when the UART pins are defined as GPIO?

I wonder if there may be any problems using the pins that the UART are using as GPIOs, if now I want to be able to reprogram the circuit? (Of course I will detach the ESP12-E from the mainboard before ...
0
votes
0answers
24 views

Default connection to nodemcu

I'm new to Arduino. I'm doing a project in Arduino using ArduCam mini OV2640 and SD card module with NodeMcu. I need to know the default pin mode to connect ArduCam mini OV2640 and SD card module to ...
0
votes
0answers
13 views

Different level TTL driving each other? A problem? [migrated]

I connected a GPIO of an 3.3V level board (pin is 5V tolerant) as output to a 5V atmega328p pin configured as INPUT_PULLUP. I perform a low active control function with that. Is there current ...
0
votes
3answers
19 views

For Arduino Uno it is possible to use the digital pins with PWM to read analog data, is this also possible with the Wemos D1 Mini?

I want to read out data from a load cell, for this I seem to need 2 analog input pins, the Wemos doesn't have this. In the Arduino I was also able to use the digital pint with PWM, there are also ...
0
votes
0answers
16 views

How to stop and repeat a melody using a button?

How can we make our melody stop when we press the button the first time and repeat the melody when we press the button the second time? // Noterna defineras #define NOTE_B0 31 #define NOTE_C1 33 #...
0
votes
1answer
35 views

What is the maximum number of sensors that can be operated on a single Aurdino unit

I currently have an Aurdiuno uno and a motor driver shield: (http://www.hobbytronics.co.uk/arduino-motor-shield). Now, I would like to run the following mechatronic devices: 3 bi-direction motors, 1 ...
0
votes
2answers
45 views

How can I discard power from a device I want to read from?

I want to read the data line from a device that normally interfaces with a controller. It has 3 pins, 3.3v power, gnd, and data. I don't need the power line since the Arduino will be USB powered and I ...
0
votes
0answers
69 views

NodeMcu SPI boot GPIO 15

On the esp8266 you've got to pull down the pin GPIO 15 to ground on boot. Otherwise the chip won't boot. However, the boards only open SPI interface has it's ChipSelect (CS,SS,..) on the same pin! Now ...
0
votes
1answer
23 views

How to hook up led matrix 1088AS to a PCA 9685 servo controller? there is a way?

I'm confused about the pinout, I can't figure out which fisical pin of 1088as red led matrix must to hook up to the PCA9685, if there is a way to do this I found this image the final target is to ...
0
votes
0answers
22 views

Serial Communication between ESP-01 and arduino [duplicate]

I want to send sensor data from arduino to esp-01 and it further goes to firebase. And also wanted to send status of water pump from firebase back to the arduino to control motor manually. So what pin ...
0
votes
0answers
47 views

Cannot write pin LOW

All the other examples I've seen have had coding errors where they set a pin LOW in a loop with no delay so that it goes high again right away - but this problem is different, and probably something ...
0
votes
0answers
41 views

MOSI pin not turning low [duplicate]

I have the following code: #include <SPI.h> void initChips(){ SPI.begin(); SPI.beginTransaction(SPISettings(20000000, MSBFIRST, SPI_MODE0)); pinMode(SS, OUTPUT); ...
0
votes
2answers
51 views

What data type are the analog pin labels (A0, A1, etc)?

Arduino Mega I would like to have an array containing analog pin labels something like... int analog_pins[] = {A0, A1, A2, A3}; int num_analog_pins = sizeof(analog_pins) / sizeof(analog_pins[0]); ...
0
votes
1answer
58 views

Mini ethernet shield pins don't have SI

Please somebody who had the same issue help me. The question is how to connect this Mini Ethernet shield to an Arduino. The main problem is the pins that my shield have or haven't; my current ...
2
votes
1answer
68 views

Cannot set MOSI pin low even after ending SPI

I'm building a battery operated device and must shutoff MOSI pin during sleep because it leaks current through the SD card if I don't (about 400 µA). Problem is, it won't stay off. I've looked at ...
0
votes
1answer
25 views

Question on pin management using PCA9534PW IO Extender

There is an IO expander PCA9534PW, Arduino UNO. I don’t really understand how I can manage this expander using UNO over I2C. I found an example, but here is the reading mode. What I need: Set the ...
0
votes
0answers
18 views

digitalWrite on Trace SWO pin

I'm using STM32(generic board) and I want to control bi-color LED(common anode). STM32 pin layout and scheme is below, so please see it. Now, in theory scheme Works, but in practice it Works halfway. ...
0
votes
1answer
42 views

arduino is skipping the if statement [duplicate]

Hi guys I am new to this language and i just tested the code to control a servo motor Can anybody help me please ? here is the code void setup() { servo_test.attach(3); pinMode(9, INPUT); ...
1
vote
2answers
57 views

How do I provide a negative current?

I'm trying to use an ATMega328 board to control a board of a broken UPS device. I replaced all the internals of the UPS by custom components, so the only things which remain are the chassis and the ...
0
votes
0answers
43 views

Bit Bang I2C with port manipulation on AtTiny84: new pinout doesn't work

So I am trying to understand bit banging and port operations. I'm developing a breakout board with an ADXL343 IMU read by an AtTiny44 via i2c. I adapted this code from MIT's How To Make Almost ...
0
votes
0answers
28 views

ESP12e pin 13 won't set to output/won't work

I have an ESP12e and running a basic blink code on it. The problem is that GPIO13 of esp12e wont turn on. I have noticed that this has happened from time to time. Earlier I thought that the ESP was ...
0
votes
2answers
83 views

ATmega 32A and 2560 R3 register to pin mapping?

I've been doing research for the last few hours trying to determine the mapping of physical pins to memory-mapped I/O registers for the Arduino Mega board (which is an ATmega 2560 R3). My code is on ...
-1
votes
2answers
88 views

What is the state of Arduino pins when the arduino is unpowered?

I'm building a control box to provide logical control of power outlets. I'm using a 4 channel 5V optically isolated relay system to control 4 separate outlets. To use optical isolation you connect ...
0
votes
2answers
54 views

Can you current-limit Arduino 101 GPIO pins?

A number of questions ask about max possible in/out current on a GPIO pin, that's not my question here. I'm asking if it's possible to set a maximum current limit on a GPIO pin, such that any attempts ...
0
votes
1answer
101 views

Detect power interruption on NodeMCU

Im using a 5v 1A power supply and connected to VIN pin on the NodeMCU. I also use 18650 battery to keep NodeMCU running in case the power supply shuts off due to power interruption. I'm planning to ...
0
votes
1answer
35 views

toggling Rx, Tx pins after Serial.begin

What should one expect when the following program runs on Arduino Uno? void setup() { Serial.begin(9600); DDRD |= 0b11; } void loop() { PORTD |= 0b11; delay(100); Serial.print("...
-1
votes
1answer
192 views

esp32 spi library, how read a mcp23s08 register

thanks for any help I need to read a gpio expander mcp23s08 set as 8 bits input. my code write correctly (I believe) the setup register using SPI library, with the enclosed example modified. But I do ...
0
votes
1answer
56 views

How can we use two devices at the same time with arduino?

I am using fingerprint module r307 and LCD together. In that, I am using 2,3 digital pins of arduino for data transfer to the fingerprint.(I tried other pin configurations for this but it didn't work) ...
1
vote
0answers
358 views

Stepper Motor button control with A4988 Driver

So I'm quite new to programming and have inevitably worked myself into a corner. What I am trying to accomplish is to allow for a stepper motor, (powered by an A4988 driver) to move with the push of a ...
0
votes
3answers
284 views

How can I get my (Arduino) Pro Micro schematic to allow me to program it through GPIO instead of USB

I'm trying this project so far I've got the schematic of a Pro Micro, which is powered through GPIO from a Raspberry Pi Zero, and want to remove the micro usb connection and able to flash it using an ...
0
votes
1answer
106 views

Connecting Winsen ZE11-C2H4 Sensor to Arduino

How should I connect the ZE11 Ethylene Sensor to an Arduino Uno? I want to know how to attach the pins of the sensor to the Arduino and which resistor I should use. I'm very unprofessional at working ...
0
votes
1answer
51 views

Attaching Microcontroller to DAC evaluation board

For an independent undergraduate research project I'm trying to construct a digital feedback loop. I have never used an Arduino, or done much electrical/computer engineering, so I'm just taking things ...
0
votes
1answer
114 views

The Capacitive Sensor library on a D1 Mini

I want to set up a hand-made capacitive sensor on a D1 Mini, as in this tutorial, so that I can get specific capacitive readings. But I couldn't get the CapacitiveSensor library to work with the D1 ...
2
votes
2answers
56 views

Weird behavior (Couldn't pull the pin LOW)

I was trying to implement my own code to control a stepper motor on arduino uno, however I noticed that the pins were always HIGH despite what was written to them. I started to erase the code to leave ...
1
vote
0answers
87 views

Keypad prints just 1 [closed]

I used this example code: #include <Keypad.h> const byte ROWS = 4; //four rows const byte COLS = 4; //four columns char keys[ROWS][COLS] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8'...
0
votes
1answer
82 views

How to have multiple digital outputs for the same pin on Arduino Uno and Simulink?

I'm trying to develop a PID controller with Simulink as shown in the image PID. I'm using a PID controller to control a motor via an Arduino Uno and motor driver. I have the PID output connected to ...
0
votes
3answers
76 views

How to monitor state of 50 Digital Inputs

Good day. I have a specific project need and I spent the past couple of days searching on forum, blogs, etc and I'm still not clear if that's feasible to do with Arduino or not. I need to monitor ...
-1
votes
1answer
157 views

MCP2515 CAN bus with Arduino

I'm using MCP2515 CAN controller and TJA1050 transceiver. I want to send some square waves to TJA1050 with digital write and delay instruction of Arduino. How can I do that? I also read the MCP2515's ...
1
vote
1answer
2k views

ESP 12 unusable pins

The ESP 12 board has 22 pins Are all of them usable? I understand that there is an external flash memory that is accessed through SPI, but I'm not sure what the impact on the pins is. And if it is ...
0
votes
1answer
61 views

The reason for signal not going back to LOW

I have written a simple Arduino sketch, that shall produce a clock signal. Here is the code: void setup() { // put your setup code here, to run once: } void loop() { // put your main code ...
0
votes
1answer
49 views

Switch two or more digital outputs of ESP8266 at the same time [closed]

I'd like to control some digital ICs with a ESP8266-12. How can I switch 2 pins to HIGH in the same moment? How can I switch one to LOW and the other to HIGH in the same moment? Is it possible with ...
1
vote
1answer
965 views

INPUT_PULLUP not work for D8 in my NodeMCU v3

I changed my arduino NodeMCU application pin mode to use INPUT_PULLUP mode instead of INPUT. D8 input pin is not working as expected, I is always in LOW even the button is pressed or not. I have 3 ...
2
votes
2answers
300 views

Checking a jumper between two pins on Arduino

I'm in the process of making a tag scanner (which transfers the tag ID to the computer), and I figured I'd use an Arduino Micro for that and just use the keyboard function on it to save myself a whole ...
1
vote
1answer
92 views

How do I connect my Luxorparts keypad to my Arduino?

I just bought a 12 digit keypad from Luxorparts and it doesn't come with any schematics showing how it's wired at all. How do I figure out how to connect it to my Arduino?
0
votes
2answers
36 views

Does a pin (input pin Arduino) still float when connected to GPIO on RPI?

I am currently testing my application on an Arduino, and I experience floating pin issues. My program reads the pin status of input pins, which are configured as pinMode(5, INPUT); digitalWrite(5, ...
1
vote
1answer
234 views

Uno pin connection: Atmega16u2 & ATmega328P

On my Uno, I set up the HoodLoader2 (link below) so I can program both the ATMega16u2 and the ATmega328P. I can communicate between the two using the serial port. However, I need the serial port to ...
4
votes
4answers
5k views

NodeMCU - use flash button as input in loop()

I couldn't find a proper answer on the net so I came here as a last resort. So I want to use the FLASH button as an input in the loop() method. Is there a way the check if it's pressed or not?
-2
votes
1answer
775 views

hx711 and load cell read out 0 for calibration

I'm using this tutorial from Sparkfun https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide And using THEIR code. The only difference is I added a delay so it wouldn't ...
0
votes
2answers
35 views

Schematic interpretation, where to put resister?

I'm new to schematics, trying to figure out where to put a resistor (no instructions other than the schematic) I'm told I need: 10K variable Resistor x 1, 4.7K Resistor x 1, 100 Resistor x 1 But I ...