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.

58 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
2
votes
0answers
41 views

How to make 16 coin vibration motors and 5 servos work at the same time on a Arduino Mega?

I saw in Arduino Mega's datasheet that the sum of currents out of all input/output pins combined should be maximum 200mA. But I want to make 16 vibration motors and 5 servos work together on the same ...
2
votes
0answers
152 views

Wake up from a pin, Sleep when work is done

I have a project which needs to sleep most of the time, and when a button gets pressed, it does its thing which is producing a fading sound wave (using interrupts) until it's time to sleep again. The ...
2
votes
0answers
2k 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 ...
2
votes
0answers
189 views

Unable to send IR command

I am trying to switch the TV on using Arduino. Following is my set of code #include <IRremote.h> IRrecv receiver(2); IRsend sender; decode_results results; long repeatitions; long count; ...
2
votes
0answers
80 views

Connecting Arduino Wifi shield to Arduino Uno based Mcore board

I am trying to connect this mBot board to an external network, that's why I bought the arduino wifi shield. I am connecting the wifi shield to the 6pins (5V MOSI GND RST SCK MISO) of the mCore. ...
2
votes
0answers
449 views

How can I connect a Fona to an Adafruit feather?

I have this adafruit-feather-huzzah-esp8266: https://learn.adafruit.com/adafruit-feather-huzzah-esp8266/pinouts and I want to connect a Fona board. But I am not certain which pins have the ...
2
votes
0answers
473 views

SPI or A0/A1: what is the best solution for pin allocation on an Arduino shield?

When you design an Arduino shield you want to make it compatible with a maximum number of shields that may be stacked with it on an Arduino (UNO). Considering the following two possible tradeoffs, ...
2
votes
0answers
311 views

GSM librarys Software Serial conflicts with I2C pins 2 and 3 for Arduino Micro

The GSM library apparently uses the Software Serial library to perform the communication. The Arduino Micro specified pins for the serial connection to the GSM is pin 2 and 3 (doc says, but see def of ...
2
votes
0answers
228 views

arduino teensy no true HI-Z available?

I am using this https://github.com/watterott/SilentStepStick stepper driver to drive a stepper motor. I am having trouble setting pins to HI-Z/floating to configure the stepper driver. To set the ...
2
votes
0answers
147 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 ...
2
votes
0answers
1k views

Analog Input not going to Zero

Arduino Uno user here I am building a project with 4 analog inputs A0 dose not work. A1 A2 and A3 work perfectly fine! But for last input when I connect to A4 or A5, then they do not go to zero. They ...
2
votes
0answers
77 views

gpio input read 0, but voltage is 3V3

I'm using GPIO api and configure it as input pull down. It reads value 0. However, when I use power meter, and connect this gpio and ground, it shows 3.3V. Is it normal or maybe some other peripheral ...
2
votes
0answers
396 views

Custom Library Pin Change

I'm using an Arduino Uno with Funduino I2C 1602 LCD display. The LCD display is connected as LCD SCL--> A5 SDA -->A4 I need to measure the temperature, pressure and the velocity of a duct flow. So ...
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 ...
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!!
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); ...
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 ...
1
vote
0answers
86 views

ESP-01 and HC-SR04 problems booting up

I have a problem in a project that I am working, basically I need to use a ESP-01 to receive the measurements from a HC-SR04 and send it to another ESP-01 (which I won't cover here). Basically my ESP ...
1
vote
0answers
28 views

Is it possible to configure uboot without the "Yun Serial Terminal" sketch by using the hardware serial on pins 0 and 1 instead?

Trying to rescue a Yun with the 1.5.3 image. It's not possible to upload the required "Yun Serial Terminal" sketch because the device hangs at U-Boot (hence the rescue attempt). Using putty ...
1
vote
0answers
37 views

3 pin ethernet module?

So basically I'm working on a project that uses an Atmega328 like on the Arduino Uno. I need to receive both DMX (with max485) and E131 (Not both at the same time, I'll decide which with a boolean in ...
1
vote
0answers
74 views

Understanding the pin diagram for MPU6050 IMU

I was reading this tutorial about the MPU6050 IMU and I was unable to understand why the pin configurations vary so much when compared to this schematic for EasyEDA. The tutorial has this pin ...
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 ...
1
vote
0answers
67 views

Arduino GPIO automatically turns high

I've been trying to turn on 21W bulb with Protected MOSFETS. But somehow the bulbs are getting high automatically from arduino. I've tried all the hardware related things like pull down with different ...
1
vote
0answers
53 views

Adafruit 2.8 TFT LCD Touchscreen 4 wire pins - unclear instructions

Warning - Noob question I am trying to follow the instructions provided by the vendor https://learn.adafruit.com/2-8-tft-touch-shield/touchscreen-paint-example to no avail. Specifically: We ...
1
vote
0answers
203 views

Help Needed! How do I attach a color sensor to a 2WD robot and use it to control its movement?

I'm relatively new to the world of Arduino, so don't be frustrated if I ask questions that could be silly. This project has a deadline, so any input is appreciated. THE PROJECT: I am planning to ...
1
vote
0answers
109 views

ESP8266 GPIO limitations with HC-SR04

I want to build a systems that measures if some parking spots are occupied or not. I chose to use an ESP8266 12-E NodeMCU Kit with multiple HC-SR04 ultrasonic sensors. In my project, it is essential ...
1
vote
0answers
67 views

Non-Linear readings on Analog Pin A0 vs. other Pins A1

I discovered a curios behavior of my Nano v3. The analog Pin A0 seems to measure data in a non-linear way while the other pins seem to work normal. Please have a look at the screenshot. This is the ...
1
vote
0answers
134 views

Made a light controller for the holidays

I am a new the world of Arduino. I found on YouTube, how to build a light controller (https://www.youtube.com/watch?v=WvG9c84ApFA&t=39s). I follow every step but it doesn't work. Here are some ...
1
vote
0answers
470 views

HC-SRO4 always returns zero no matter what I do?

Wondering if it's the sensor or the code? can anyone help? I've used the code here /* HC-SR04 Ultrasonic Sensor with LCD dispaly HC-SR04 Ultrasonic Sensor VCC to Arduino 5V GND to Arduino GND ...
1
vote
0answers
93 views

Creating WebServer with 5000 port with AT command(ESP-01f)

I'm setting webserver with toggle led. I want to create global webserver. I`m mean hat use server with global ip. For it I must use port too. global ip/local ip:port. I want to create on 5000 port. I'...
1
vote
0answers
101 views

HC-05 Bluetooth module on breakout board with straight header pins

Has anyone found the HC-05 bluetooth module (on the breakout board) with straight header pins? I seem to only be able to find them with the 90 degree header pins. Removing those and soldering on ...
1
vote
0answers
35 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 #...
1
vote
0answers
133 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 ...
1
vote
0answers
196 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 ...
1
vote
0answers
35 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 ...
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 ...
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
0answers
727 views

Pin Mapped Wemos D1 R1

I want to ask about Wemos d1 R1. Can I use those pins connected for different sensor? For example I use pin D5 and D13 for switch and push button, or I use pin D7 and D11 for two different sensors. ...
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 ...
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
1answer
2k views

2 Arduino Unos Connected with 1-Wire and Receiver Pin getting Stuck High

I am trying to accomplish 1-wire communication between 2 Arduinos and so I wanted to start off by having 1 Arduino toggle a digital output pin and have the other read the state of that pin. To ...
0
votes
0answers
21 views

query of arduino sketch with regards to employment of gsm sim900a module

what i'm trying to do is to send message to one whose no. is used in code about balance of sim_card plugged in sim900a. but i get commands in message or blank message after using ATE0. what i was ...
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 ...
0
votes
0answers
57 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
0answers
3k views

WEMOS D1 MINI NodeMCU, how to correctly powering it?

I'm developing a simple project using a WEMOS D1 MINI NodeMCU to drive an rgb LED strip so I managed to use a 12V power source to drive the current to the 12V pin of the led strip, a STEP DOWN ...
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
0answers
1k views

ESP8266 pin multiplexing possible?

I am trying to use Adafruit's ESP8266 implementation for a project of mine, which makes use of a bunch of sensors. The problem I have is the limited amount of pins available from ESP8266: 2 pins are ...
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??