Skip to main content
18 events
when toggle format what by license comment
May 29, 2020 at 12:14 vote accept user143252
May 28, 2020 at 11:10 history edited user143252 CC BY-SA 4.0
added 22 characters in body; edited tags
May 27, 2020 at 21:28 comment added Delta_G The point is, "Don't try to read a pin that isn't connected to anything."
May 27, 2020 at 21:27 comment added Delta_G The point is that if the pin is tied to a voltage it will read that voltage. If it is unconnected then what voltage is on the pin? If you answer zero then you need to go and study basic electronics some more. A pin should read LOW when it is connected to ground and HIGH when connected to 5V. If it is unconnected then you don't know what the voltage level at the pin is. It can pick up any stray noise and read anything.
May 27, 2020 at 20:00 answer added Edgar Bonet timeline score: 2
May 27, 2020 at 18:05 comment added Edgar Bonet It's not 13th pin, it's pin “digital 13”. Not the same.
May 27, 2020 at 17:41 comment added user143252 electronoobs.com/images/Arduino/tut_31/… PB5 IS 13TH PIN ON ARDUINO i think i am correct
May 27, 2020 at 17:38 comment added user143252 @Delta_G then what is the point of low and high if pin is always (floating ) high
May 27, 2020 at 17:38 comment added user143252 @EdgarBonet so what should i change in code
May 27, 2020 at 17:32 review Close votes
May 27, 2020 at 20:04
May 27, 2020 at 16:43 comment added Delta_G If nothing is connected to the pin then it can read either high or low. Google “floating pin”. If you’re expecting it to read low when not connected to anything then you’re thinking wrong.
May 27, 2020 at 15:42 comment added Edgar Bonet No, digital 13 is PB5, i.e. the 6th bit. The 1st bit is PB0, the 2nd bit is PB1, etc.
May 27, 2020 at 15:23 comment added user143252 I have not used any pull up resistor and i am sure PINB 5th bit is 13 pin of aurdino
May 27, 2020 at 15:08 comment added jsotola your code is operating on the 6th bit ... bits are numbered 0 to 7, so 5th bit is bit 4
May 27, 2020 at 14:31 comment added chrisl Do you use an external pullup or pulldown resistor?
May 27, 2020 at 14:05 history edited user143252 CC BY-SA 4.0
edited title
May 27, 2020 at 13:21 review First posts
May 27, 2020 at 17:14
May 27, 2020 at 13:20 history asked user143252 CC BY-SA 4.0