​ ​ ​ ​ Please point me to some step by step basics to code the PICAXE using Blockly. - Page 21
Page 21 of 21 FirstFirst ... 11 19 20 21
Results 201 to 206 of 206

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

  1. #201
    Technical Support
    Join Date
    Jan 1970
    Location
    Bath,UK
    Posts
    6,468
    Blog Entries
    1

    Default

    Are you wiring directly to the picaxe output pin (not using a darlington buffered output such as on an AXE020 project board - on the AXE020 the direct connection is the pcb pads between the two chips?)
    PICAXE Technical Support

  2. #202
    Member
    Join Date
    May 2018
    Location
    Ft. Myers FL
    Posts
    91

    Default

    In the simulator this code lights two LEDs one from pin 6 to ground and the other from pin one to ground. I want to light 1 LED placed between pin 6 and pin 1.
    No we did not wire directly to the chip.

  3. #203
    Technical Support
    Join Date
    Jan 1970
    Location
    Bath,UK
    Posts
    6,468
    Blog Entries
    1

    Default

    The code will do this, but you need to have the electronics correct too. Electrically a darlington driver buffered output cannot do this, which is why you need to connect direct.
    PICAXE Technical Support

  4. #204
    Member
    Join Date
    May 2018
    Location
    Ft. Myers FL
    Posts
    91

    Default

    Thank you!!
    Behold, it works:-)
    Last edited by Gramps; Yesterday at 02:22.

  5. #205
    Senior Member
    Join Date
    Jan 1970
    Location
    Nova Scotia, Canada
    Posts
    2,832

    Default

    Quote Originally Posted by Gramps View Post
    this code will not light an LED across pins b1 and b6. Why?
    Trust you have a resistor in series with the LED--at least 330R for 5V supply. Otherwise you could have burned out a pin with excess current. How about B.1 to B.7 and B.2 to B.6?

  6. #206
    Member
    Join Date
    May 2018
    Location
    Ft. Myers FL
    Posts
    91

    Default

    Opps! forgot the resistor. Touched the led to the pins for a few moments to see if it was really working. It was!
    A new thought and a question;
    Could the pin pairs (for example, B1 and b6 ) that control the matrix be reversed to light one of the LEDs from the 19 diode string? If so that would save 4 pins....
    Last edited by Gramps; Today at 00:17.

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
  •