1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

art mixed with a pic

Discussion in 'Microcontrollers' started by MrDEB, Jun 9, 2017.

  1. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,414
    Likes:
    23
    been cobbling this project together just for fun by mixing art with a pic. Have boards ordered and going with smd on the Leds and pic. going to utilize 3 AA batteries and use the HLVD feature that will blink the green eye when the battery is getting low.
    Looking at using the 18f24K40 to keep the cost down.
    slow down the delayms along with other tweeks.
    the project is cut from acrylic plastic on a scrollsaw.
    oups! the video file is too large even after I compressed it.
    will try something else
     
  2. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,414
    Likes:
    23
    that didn't work either.
    can't seem to get the correct url from photobucket
     
  3. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,414
    Likes:
    23
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. dr pepper

    dr pepper Well-Known Member Most Helpful Member

    Joined:
    Oct 6, 2008
    Messages:
    4,763
    Likes:
    259
    Location:
    North west UK

    When coding for a pic if I need more than one delay I use an interrupt, then in said interrupt make counts and call other routines from the count value, this means you can only have integer multiples of the interrupt frequency, however if you application isnt time exact it works well and doesnt block.
     
  6. Mosaic

    Mosaic Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    2,623
    Likes:
    129
    Location:
    Caribbean
    If you code in asm, the harvard architecture of the PIC allows instruction stepping based on the precise timing as driven by the Xtal speed.
    So if you run a 64Mhz PIC your instructions step at 16 Mhz or 62.5 nS. A 4 Mhz PIC will instruction step @ 1 uSec.
    Thus fixed coded loops give fixed delays as req'd.
     

Share This Page