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.

Filter by
Sorted by
Tagged with
1
vote
1answer
234 views

Can SoftwareSerial be used in an ESP01

I am using ESP01 as a microcontroller that retrieves information from Firebase and sends them over serial to an Arduino Uno for other uses. I am not using NODEMcu since it has few analog pins and ...
2
votes
1answer
36 views

Wirelessly (but fast) transfer STEP and DIR output from Arduino to stepper driver

Very short version: Looking for a way to wirelessly get STEP and DIR signals (only those two signals) from an Arduino to a DRV8825 stepper driver about a meter away: Arduino -> STEP and DIR IO pins ...
0
votes
1answer
72 views

Check pin capabilities at compile time

Are there board-independent functions to check pin capabilities at compile time? I.e. Can the pin be used as output, as in digitalWrite()? Does the pin support PWM, as in analogWrite()? Does the pin ...
1
vote
1answer
770 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
57 views

Problem Using pins A4 and A5 for input and output I2C

Hardare used: Arduino nano ( old Bootloader ) Oled Monochrome Display ( 4 pins, 128 x 32 ) MPU 6050 Both display and MPU use A4 and A5 as I2C communication protocol, They interfere, as the MPU is used ...
10
votes
3answers
1k views

Why are the pin numbers of the diagrams and of the code different?

If I search Google for "arduino nano pin numbers", all results show that the pin number of D2 is 5. But that did not work. I searched for some sample codes, and they were 3 for D3 and 5 for ...
2
votes
2answers
463 views

Unable to use analog pins as digital inputs

I want to use the analog pin A7 as a digital input pin. As stated in the Arduino docs the analog pins can be configured in the same way like any other digital pin. However, when trying to configure an ...
0
votes
1answer
580 views

Use JYETech 2.4 Inch LCD Display Screen Module with Arduino?

I have this JYETech 2.4 Inch LCD Display Screen Module that I would like to use for a project I have in mind, however, I'm not sure how to wire it up with my Arudino Mega. Here is the datasheet for ...
1
vote
1answer
213 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 ...
1
vote
1answer
4k views

Which input pins can I use on the ESP8266 NodeMCU

On the ESP8266 NodeMCU I have GPIO2 , GPIO3 , GPIO1 , GPIO9 free but when I assign them to a button they do not work. I assume it is because those pins have other function behind them. When I look at ...
4
votes
1answer
103 views

Arduino UNO won't move servo

I have a simple MG996 servo motor and I am trying to make it move with my Arduino Uno. I tried different ways of wiring but nothing seems to work as fully expected. For the wiring I followed this ...
1
vote
2answers
205 views

How to set cables to connect Cp2102 to Pro Mini?

How to connect the cables in order to program the pro mini with the CP2102 usb interface ? The TX RX and GND is easy, but I am not sure about the RST, DTR, DST, etc I attached the images of both. ...
1
vote
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 ...
0
votes
1answer
1k views

Arduino Wire communication with MCP23008 GPIO pin expander to turn on an LED with a button press

I am using an Arduino Uno and an MCP23008 GPIO pin expander, I have a momentary button connected to GPIO 2 on the MCP23008 and an LED light connected to GPIO 1 on the MCP23008. What I want is for the ...
0
votes
2answers
1k views

Using CD4053 for arduino

I would like to use CD4053 for multiplexing in arduino but the problem is that I don't understand how CD4053 works, is it the same as CD4051, can someone help me, provide example code and circuit??
0
votes
1answer
71 views

Cant find Sdl and Sca pins in lcd display

My project is of non contact temperature sensor.I am using RG1602A lcd display and mlx90164 temperature sensor. But the problem is, there's no sdl , sca pins in my lcd display. Is there any way, to ...
2
votes
2answers
247 views

Input vs input_pullup

I'm a beginner in Arduino and can't understand some things. How does input pin in Arduino work? I want to set one of the pins as input. When should I use input and when input_pullup? What are the ...
0
votes
1answer
81 views

Safe to power LED strip via ESP32 GPIO

I want to rewire a battery powered LED strip (as shown in the picture below) to power via an ESP32's GPIO pin. I have a ESP32 NodeMCU Development Board, powered via USB. The LED strip has specified 3,...
11
votes
5answers
26k 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?
1
vote
0answers
44 views

Can I support all these sensors? Will I have enough pins?

So i'm new to arduino and i'm working on a project that will require 3 modules/sensors. I wanted to know, can all of the following modules work with the arduino mega 2560 that comes with this touch ...
4
votes
1answer
48 views

Custom LED toggling function: one out of three LEDs misbehave

I connected three LEDs to an Arduino Uno and wrote a simple LED class. I toggle all the leds the main loop, but for some reason one led (connected to pin7) always misbehaves, skips one toggle or stays ...
14
votes
1answer
45k views

What is an ICSP pin?

What is an ICSP pin? I have read that it is an AVR and a tiny programming header for the Arduino, but what is an AVR and what does an ICSP pin do?
1
vote
1answer
78 views

Select pin to connect RF receiver

I use the RCSwitch library receive signals with a RF receiver. I really need to change the pin the receiver is connected to on my Arduino Uno. What should I change in my sketch? What pins can I ...
1
vote
1answer
49 views

Accessing Physical Pins in Arduino Due from Arduino IDE

It is possible to access the Physical Pin 93, Pin PC11 on ATSAM3X8E in Arduino Due from the Arduino IDE? I am programming a Barebone ATSAM3X8E, and it do not seems to be allocated by Arduino Due nor ...
1
vote
3answers
451 views

Connecting an arbitrary number of pins to pin holes without soldering?

I want to avoid soldering for health reasons. I have no well-ventilated open area in my apartment. For a board/modules that have no pins but only holes, how can I connect pins to the holes without ...
3
votes
3answers
324 views

Can internal and external pull up/pull down resisters be used together?

What happens if a sketch uses code like pinMode(18,INPUT_PULLDOWN) to configure internal pull-down (or pull-up) resistors, but is used in a circuit where external resistors are also present? Are there ...
1
vote
1answer
47 views

How to connect an Output to a Pullup Input of another arduino

:tldr; Could problems occur if one connects a HIGH Output of one arduino to a PULLUP_INPUT of another while using differed power sources? Hi I'm building some devices for a LARP Dungeon (think Escape ...
2
votes
1answer
825 views

How to use attachInterrupt() in ATtiny85 with Arduino IDE?

It's possible use external interrupts/attachInterrupt() with the ATtiny85 when I program with Arduino IDE? If is possible, how many inputs (for external interrupts) the ATtiny85 have and which are ...
0
votes
1answer
165 views

D1 mini esp8266 error: esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

I am pretty sure this device worked yesterday. I tried to short GPIO0 to ground (flash), nothing. I have a second ESP that uploads fine, but this one does not. Is their another way to get this ...
1
vote
2answers
116 views

Can we use UART COMMUNICATION with MCP23017?

I am using MCP23017 as a GPIO expander with Arduino in my project. I have too many serial devices and no pins left on Arduino for UART communication. I am wondering if I can use this MCP23017 GPIO ...
1
vote
0answers
38 views

How to avoid two arduino components using the same digital PIN [duplicate]

I'm trying to build an Arduino project where it involves a TFT and an ethernet W5500 component. Here's the project I want to build to learn Arduino. However I wanted to change the board that already ...
-1
votes
2answers
390 views

Share I2C pins with other device when lacking GPIOs

We're Using ESP12E as our MCU and we have three functionality : SIM800 connected to TX(GPIO1), RX(GPIO3) Matrix Keypad connected to GPIOs: 14,13,2,10,0,4,5,16 GLCD connected to GPIOs: 15,12 And we ...
1
vote
1answer
3k views

How do I get a nonzero output from my HX711 and load cell?

I am trying to set up a load cell using the HX711 amplifier. Whenever I upload my sketch, my serial monitor only will read zeros regardless of load applied to the sensor (no signal appears to be ...
1
vote
3answers
72 views

How do I create a constant loop with an event that only occurs once?

I am currently working in void loop() and have setup a distance meter that constantly checks the distance. Once the distance threshold is met, a function is called. Now I only need this function to ...
0
votes
3answers
118 views

Short circuiting GND and power pins

I have created an arduino shield and i want to measure the voltage between the GND pin and 5V pins, to see if i see a voltage difference between the two points, in order to test if my pcb is fine. My ...
1
vote
0answers
44 views

Can I create an hemi-cycle raising signal with one pin and the other hemi-cycle signal with another pin?

I am new to Arduino, I would like to know if someone could help me to create this type of signal with the Arduino Uno. Many thanks!!
2
votes
1answer
495 views

Can't Turn Off Internal I2C Pull-Ups on ESP32

I've designed a custom ESP32 board around the WROVER-IE module. To keep power low, I'm using a GPIO-controlled high-side FET to turn off unused peripherals when in deep sleep mode. The issue: I've ...
1
vote
0answers
24 views

Touch sensor trouble

I need help I use Touch Sensor(T)v.0 and it always receives a signal not matter I touched it or not. Here is the code. #define TOUCH_PIN 7 int touchVal = 0; void setup() { Serial.begin(115200); ...
0
votes
1answer
33 views

I have five pushbuttons that refer to a specific pin number. I need an efficient code to set the variable for the pin with state 1. What can I use?

There are 5 push buttons each which correspond to a certain pin let us use 1 to 5 for an example. I want to set a variable, ActiveButton which will be set equal to the the only pin in the one state. ...
1
vote
0answers
22 views

Directly synthesising an OOK modulated LF signal using a CSV file

I'm looking to transmit some data (CSV files) from a measurement instrument underground to a receiver on the surface. I've learned that in order to penetrate the limestone, low frequencies have to be ...
1
vote
0answers
35 views

Trouble with laser sensor

I have trouble with my laser sensor it doesn't work properly. When I connect all pins its doesn't work, when I remove GND and connect just the signal pin and VCC it works but the laser light is dim(I ...
0
votes
1answer
37 views

Does setting a value always mean setting a Arduino pin?

One thing that always confused me was why we use int or other commands to set the variables to have pin numbers as if those commands were always restricted to pin numbers only. For example int ledPin =...
0
votes
2answers
472 views

Transient and reverse current

Does anyone know (1) how much transient current can be output from a pin and (2) how much (and how long) reverse current an output pin can take? For instance, consider the following circuit (driven ...
0
votes
2answers
321 views

Portenta pinouts for ADC

I wanted to have your comments about one of my questions. I am currently working on the sketch for the Arduino Portenta H7. However, due to my poor electrical background, I would like to ask your ...
0
votes
3answers
606 views

Why all unset pins of my Arduino Uno are outputting 2 volts?

I am new to Arduino and physical computing When I measure the wire coming from any UNSET Arduino uno pin, the result is approximately 2 volts even the "ANALOG IN" pins. Considering that the pins which ...
1
vote
1answer
51 views

What pins to use on a Teensy to get data from multiple peripherals?

I'm using a Teensy to keep records on the location, speed, altitude, and direction of a weather balloon I'm hoping to launch. I have an Adafruit LSM9DS1 and a Ublox NEO-M8N with compass (HMC5833L) so ...
0
votes
1answer
50 views

What is the pinout of the Arduino MKR motor carrier when using external power supply, not the Li-Po battery

I see there is a blue terminal connector an the tags below the PCB Vin, 5V, 3,3V and GND, but I am unsure where should I supply voltage to power up the board. Also, in the product page it says the ...
1
vote
2answers
265 views

Switch on the piezo emitter for a short time

I need a short beep for every minute of change. I wrote a separate function. The signal duration should be 50 ms, the rest of the time the emitter connected to the A1 contact should be silent. A ...
22
votes
3answers
122k views

NodeMCU - Vin pin as 5V output?

I know that Vin can be used to power the board but have also been reading that it can be used as a 5V output. Is it possible to assign Vin as an output as I would any other GPIO? If I want to power ...
1
vote
2answers
563 views

How to power Arduino Uno from L298N motor driver's 5v terminal?

I am trying to setup L298N motor driver controller with my Arduino. Different online schematics about how to connect them are mostly similar - but they differ in powering the Arduino from the drive ...

1
2 3 4 5
10