Keyboard Shortcuts
Likes
Search
difficulties with raduino digital input pin A6
While I was experimenting with digital inputs, I couldn't get pin A6 working. It always reads a "LOW" regardless of the actual input level. The other pins work as expected. I may have blown the input, although I can't remember doing anything wrong (always disconnected the wires while soldering it, etc) Do other users have similar issues? 73, Allard PE1NWL |
¿ªÔÆÌåÓýYes, two others here in KC area have lost inputs A6 or A7 due to static. I think soldering to wire while still connected to the pin is the reason but I¡¯m not sure. New Nano always cured the problem. It could be just handling static too. In any case its happening so take care to follow simple ESD rules.?? 73 Fred KC5RT ? From: [email protected]
[mailto:[email protected]] On Behalf Of Allard PE1NWL
Sent: Friday, April 28, 2017 4:02 AM To: [email protected] Subject: [BITX20] difficulties with raduino digital input pin A6 ? While I was experimenting with digital inputs, I couldn't get pin A6 working. It always reads a "LOW" regardless of the actual input level. The other pins work as expected. I may have blown the input, although I can't remember doing anything wrong (always disconnected the wires while soldering it, etc) Do other users have similar issues? 73, Allard PE1NWL |
let him re program and try . On Fri, Apr 28, 2017 at 4:46 PM, fred via Groups.Io <fgk9@...> wrote:
--
Regards
Sarma ? |
Reprogramming didn't help unfortunately - It's really blown.
toggle quoted message
Show quoted text
I know these are sensitive devices and I always take ESD precautions. Nevertheless it became damaged somehow. I never used this input before, so it may well have been defective from the beginning.. On Fri, April 28, 2017 13:57, Mvs Sarma wrote:
let him re program and try . |
We are apparently lucky with not so much static , being in tropical countries. ? of course i had few PIC16F628Athat failed.On Fri, Apr 28, 2017 at 5:40 PM, Allard PE1NWL <pe1nwl@...> wrote: Reprogramming didn't help unfortunately - It's really blown. --
Regards
Sarma ? |
Yes, I have killed two of them one ones my fault when one of the input wires brushed the 12v line and the other I blamed on static as well. That's why I took the time to put a socket so I could remove and replace the Nano at will. It also lets me compare new sketches by just swapping in another Nano. It's a good thing they are only $3 too. Jeff N9ARZ |
Jack Purdum
On line 102 you will find: #define PTT (A6) which defines a symbolic constant named PTT. Because pins are initialized (normally) in setup(), either gloabl-search on PTT or look in setup() to see how that pin is intialized. At lines 1042, you will find: ? pinMode(PTT, INPUT); ? digitalWrite(PTT, HIGH); This says we are reading PTT (or A6) as an input pin, and it starts out in a HIGH (5V) state. Most digital I/O pins are that way. This means that pressing the switch tied to PTT pulls the line LOW. You can verify this by searching on PTT and observing how the pin is being used. Jack, W8TEE From: ON2AAV <on2aav@...> To: [email protected] Sent: Friday, April 28, 2017 7:45 AM Subject: Re: [BITX20] difficulties with raduino digital input pin A6 Is it correct to say that A6 is PTT in the V1.08 sketch , So it should go high when ptt is pressed ? 73 luc ON2AAV
|
It might still be ok as an output. On Fri, Apr 28, 2017 at 02:02 am, Allard PE1NWL wrote:
? |
Yes perhaps, haven't tried that yet.
toggle quoted message
Show quoted text
It might even still work as an analog input. I'll try out this weekend, just out of curiousity. 73, Allard PE1NWL On Fri, April 28, 2017 16:02, Jerry Gaffke via Groups.Io wrote:
It might still be ok as an output. |
¿ªÔÆÌåÓýHi, I am wondering, once a pin is designated an INPUT (high impedance state), and pulled HIGH with a internal resistor, what does sending a HIGH to it do, as IF it were an OUTPUT. Seems like a wasted instruction? Just asking? Mike, WA6ISP On 4/28/2017 6:49 AM, Jack Purdum via
Groups.Io wrote:
|
In older Arduino versions you had to first define a pin as input, and then
toggle quoted message
Show quoted text
do a digital write HIGH to it to enable the internal pull-up resistor: pinMode(pin, INPUT); // set pin to input digitalWrite(pin, HIGH); // turn on pullup resistors In later Arduino versions these two commands are combined into one single command as: pinMode(pin, INPUT_PULLUP); // set pin to input with internal pull-up Using pinMode(pin, INPUT) alone will explicitely turn off the internal pull-up resistor. 73, Allard PE1NWL On Sat, April 29, 2017 16:32, Michael Hagen wrote:
Hi, |
Jack Purdum
This gives a pretty good discussion and touches on "floating" pins. Jack, W8TEE From: Michael Hagen <motdog@...> To: [email protected] Sent: Saturday, April 29, 2017 10:32 AM Subject: Re: [BITX20] difficulties with raduino digital input pin A6 Hi,
I am wondering, once a pin is designated an INPUT (high impedance
state), and pulled HIGH with a internal resistor, what does
sending a HIGH to it do, as IF it were an OUTPUT.
Seems like a wasted instruction? Just asking?
Mike, WA6ISP
On 4/28/2017 6:49 AM, Jack Purdum via
Groups.Io wrote:
|
Ah! That explains!
toggle quoted message
Show quoted text
I wasn't aware if this. Thanks very much Miguel! 73, Allard PE1NWL On Sat, April 29, 2017 19:48, Miguel Angelo Bartie via Groups.Io wrote:
Please look at : |