Questions tagged [pinmode]

10 questions
2
votes
2 answers

How can I stop digital pins from floating at reboot?

I've got a LattePanda 3 Delta, which runs windows on its main processor and an Arduino sketch called StandardFirmata on its coprocessor. It's connected to a lock, which locks at HIGH and unlocks at LOW. When I boot/reboot the LattePanda, there is a…
2
votes
1 answer

Safe to solder a slide switch to unused GPIO pins?

I have a Digispark Rev.3 Kickstarter with ATTiny85 (see pinout below) and a three pin slide switch (see example below). I want to use the slide switch to control a task running on the Digispark, with the example code below. The center pin of the…
emma.makes
  • 105
  • 6
1
vote
1 answer

Setting pinmode() in header file

I am trying to have a header file to handle all my pin definitions and pinmodes. This is the header: #ifndef __HEADER_TESTER__ #define __HEADER_TESTER__ #include const byte rxPin = 2; const byte txPin = 3; SoftwareSerial…
user1584421
  • 1,425
  • 3
  • 26
  • 36
1
vote
1 answer

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 by ATSAM3X8E for any other purpose than the PC…
Brethlosze
  • 337
  • 1
  • 4
  • 17
0
votes
2 answers

How to Identify pins connected to each other?

There is probably another way to achieve what I want without connecting pins to each other, so I will explain the scenario: I am trying to build an Arduino based Enigma Machine. The cryptography is working fine, it runs from the serial monitor. Now…
Diego Dyan
  • 23
  • 1
  • 1
  • 6
0
votes
1 answer

Sketch halts if button is pressed on boot

I have a KY-040 rotary encoder with a push button wired to an ESP8266. My objective is to be able to detect if the button is pressed or not on boot. In the below code, if I hold the button down and power on the ESP8266, neither "IT'S STARTED" or…
0
votes
1 answer

Can pin mode damage Arduino with connected electronics?

I am not that experienced with electronics, so this might be a silly question. But I dont know. Assume that I have connected some electronic circuit (transistors, leds, anything else) to the Arduino pins, is there any chance that I damage the…
Lemonbonbon
  • 113
  • 4
0
votes
1 answer

Is it possible for the Arduino's digital pin mode to flip from OUTPUT to INPUT unexpectedly?

I have an Arduino project (data logger intended to sample 100 samples per second for months) with firmware that is too long to post. It mostly works as supposed to, but I have a confusing issue I can't figure out: rarely, the indicator LEDs (driven…
Vulcan
  • 257
  • 2
  • 7
-1
votes
1 answer

Use same pin for two purposes

I have only one pin available and I'd need to use it both for a digitalRead and for sending serial messages (assigning it the Tx role within a SoftwareSerial). I can alternate these two operations, but I don't seem to succeed. I could be interested…
lesath82
  • 101
  • 4
-1
votes
1 answer

Arduino as Multiplexer

This is a kind of an experiment, I just have a question on how Arduino ports work. Consider this sample: there is this target device that I'm trying to control with Arduino. The device uses a typical scanned keyboard (8 output columns and 5 input…
Jackie Jim
  • 101
  • 3