​ ​ ​ ​ Please point me to some step by step basics to code the PICAXE using Blockly. - Page 20
Page 20 of 20 FirstFirst ... 10 18 19 20
Results 191 to 192 of 192

Thread: Please point me to some step by step basics to code the PICAXE using Blockly.

  1. #191
    Member
    Join Date
    May 2018
    Location
    Ft. Myers FL
    Posts
    84

    Default

    We made a wiring error on the 9 LED array. We grounded the Anodes instead of the cathodes! Pins B0 through B7 work the other way. Is there a way to reverse the direction of the DC on the pins or must we rewire the diodes?

  2. #192
    Senior Member
    Join Date
    Jan 1970
    Location
    Nova Scotia, Canada
    Posts
    2,829

    Default

    If I understand correctly, all you would need to do is reverse the HIGHs and LOWs. So in the code in post 44, after "else ' portB LED matrix control--", replace "high pinNo" with "low pinNo", and "low pinNo" with "high pinNo".

    (Maybe I misunderstood--do you mean on the 16-LED matrix? If not, I would think you need to rewire. Alternatively, you can take the common wire from all the Anodes to +5V, and the cathode wires to the individual pins (through resistors). Then the "active state" for each pin would be "LOW" instead of "HIGH"--"tri-state" the inactive pins by making them inputs.)
    Last edited by lbenson; Today at 03:34.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •