Using the "Hack Me" port to gain two digital outputs

Store Forums Defusable Clock General Discussion Using the "Hack Me" port to gain two digital outputs

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #661
    collsoft
    Member

    First I would like to congratulate you on an absolutely brilliant product – I have built 4 of these and used them in Airsoft games – everybody loves them!!!!!

    Now, On one of my builds I sacrificed one of the wires and used it as an output to drive an external mosfet circuit so that I could trigger a car alarm (louder than the buzzer on the board)

    I have been looking at your schematics and I see that the “Hack Me” port is wired to digital pins 0 & 1 on the arduino – so I am guessing that I could use these for additional outputs or inputs with just a little bit of extra programming.

    If I were to use these pins for my own projects would I loose the ability to re-program the controller through the Hack Me port?

    Have to admit that I forgot to buy the USB cable with my last order so for re-programming I have been removing the ATmel chip and stickjing it in an Arduino Uno for programming !!!!!!

    Thanks,

    Jason

    #1805
    Michael
    Keymaster

    Yes, you may use pins 0 and 1 (TX and RX) for your project and you will still be able to upload a new sketch on the 6-pin header. You simply won’t be able to do serial communication (using the Arduino Serial library), but you probably aren’t doing that anyway. When you program an Arduino from the IDE, it resets the microcontroller just before uploading the new sketch. So your sketch that uses pins 0 and 1 will not interfere with the ability to load new code onto the chip.

    I’m glad to hear that these are working well for your Airsoft games!

    #1806
    collsoft
    Member

    Excellent – I shall get cracking on it so!!!!

    Can I ask a cheeky question then?

    I assume that it is somehow possible to reset the microtroller using pins 0 & 1 – do you know how this is done?

    Thanks

    #1807
    Michael
    Keymaster

    You reset the microcontroller by pulling the DTR pin low to ground. This is the rightmost pin on the 6-pin FTDI header. It is a green wire on the FTDI cable and is marked “GRN” on the board.

    This is what the reset button on an Arduino does. It shorts the ATMega328 reset pin to ground when you press it, and that causes the ATMega to reset.

    #1808
    collsoft
    Member

    Thanks Michael – I see it now in your schematic!!!!!!

    Sorry for the silly question

    #1809
    Michael
    Keymaster

    not a silly question at all — a very fine question, actually. Have fun!

    #1846
    superman7
    Member

    This is what the reset button on an Arduino does. It shorts the ATMega328 reset pin to ground when you press it, and that causes the ATMega to reset.

    ___________________
    http://www.selftestengine.com/642-999.html
    http://www.microsoft.com/
    http://www.princeton.edu/main/
    http://en.wikipedia.org/wiki/University_of_Arkansas_Community_College_at_Morrilton
    https://www.facebook.com/ATSDIESEL

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