WIRE_3 always "HIGH"

Store Forums Defusable Clock Bugs/Problems WIRE_3 always "HIGH"

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #633
    Romain
    Participant

    Hello everyone,

    i tried different programming changes from 2 weeks now and I never had any problem.

    Now whatever I do, the WIRE_3 is still “HIGH”, even if I write it LOW.

    I tested it, it always sends 4.62V, HIGH or LOW…

    Even if i try another program I have a HIGH on that pin…

    Any idea?

    Thx.
    Romain.

    #1726
    Michael
    Keymaster

    WIRE_3 is an INPUT pin, not an OUTPUT pin. You can’t “write” the value to LOW. The purpose of an input pin is to read its value to see if it is shorted to ground or not. If WIRE_3 is connected to ground (by a wire), then digitalRead(WIRE_3) returns LOW. If not, digitalRead(WIRE_3) returns HIGH.

    if you are trying to use WIRE_3 as an output, then you need to set pinMode(WIRE_3, OUTPUT).

    #1727
    Romain
    Participant

    I did this to try changing its state.

    I thought there was a problem when my program stopped to work suddenly, and “WIRE_3” was the in cause.

    Now, i have uploaded your original sketch and look what it does (without changing the random defuse and detpin):

    #1728
    Michael
    Keymaster

    Are you saying that the clock worked correctly when you received it?

    I think your wires are not connected well. Make sure each terminal on the right side is connected to ground. All four terminals on the left side are at ground. Use a multimeter to ensure that all terminal blocks are at ground when all wires are attached.

    #1729
    Romain
    Participant

    yes all worked correctly when I received it; both of the 2 kits.

    I changed the wires, checked the connections, but it changes nothing….

    Here’s what i did :

    I changed WIRE1 to 4 as OUTPUT, wrote it LOW and I have this :

    #1730
    Michael
    Keymaster

    Thanks for the videos.

    Ok, did you ever change WIRE_3 to OUTPUT and set it HIGH while it was connected to ground? If so, you will destroy the I/O pin on the microcontroller.

    I think you may have done that accidentally as you were making code changes.

    #1731
    Romain
    Participant

    Well damn….

    It is possible….

    I have to change the atmega now 🙂

    Thanks Michael !

    #1732
    Michael
    Keymaster

    Bon chance, my friend!

    #1733
    Romain
    Participant

    Ahah merci !!

    😉

    #1734
    Romain
    Participant

    Well, I tried to unsold it but…It’s damn too well solded !!!!! I ruined evrything…

    Plan B, i have extracted the atmega ..with my leatherman…Atmega finished in 7 pieces……lol…not good to see…and i must drill new holes now to insert a socket to prevent destroying others 328^^

    Re-bon chance myself 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.