Thanks for all your comments and suggestions - they definitely motivate me to try different ideas

By Julian

Youtuber, shed dweller, solar charge controller aficionado

15 thoughts on “Update: neopixels and pics with name checks”
  1. Avataaar/Circle Created with python_avatars Ryan Turner says:

    Hi Julian, great video! I've been wanting to mess with these for a long time and finally got around to it… So far I have it some-what working from your screen capture of the "rotate" subroutine, the problem I am having is it will sequence the LED's then have a long delay before the next cycle… Do you have any example code to share??

  2. Avataaar/Circle Created with python_avatars Richard Allsebrook says:

    You just discovered loop unrolling ๐Ÿ˜‰

  3. Avataaar/Circle Created with python_avatars Logan says:

    Agh! I love all the WS2801 stuff!!! Thanks for the programming examples!

  4. Avataaar/Circle Created with python_avatars HAM and Wine says:

    Actually, one comment to your software diagram… The problematic area is only the bit-banging loop of led-on and led-off. To be precise, the part of the time where you send out the first bit till the transmission of the last required bit. The following timeout just sets the previously sent values to be visible. What you do before and after this transmission sequence is absolutely non-critical. Without having seen your code, may be you just need to tweak some branch decisions or you unfold a loop, or you use counting from x to 0 instead of the other way round, and you can use the untrimmed 8MHz. However: Well done video!

  5. Avataaar/Circle Created with python_avatars Dosbomber says:

    Them lens flares tho… lol

  6. Avataaar/Circle Created with python_avatars jims408 says:

    Nice! If you have a free pin available — can you toggle a signal with each iteration of the loop and hook up to the oscilloscope so we can see how long the loop is taking? Would also enjoy seeing how much faster than 8Mhz the clock is running at tweaked frequency.

  7. Avataaar/Circle Created with python_avatars Peter Feerick says:

    Microchips AN244 indicates that OSCTUNE will tune a frequency within a range of +/-12 percent on the selected frequency. The only caveat is that it specifically mentions only the PIC16 & PIC18, but maybe this still valid for the PIC12s with tuneable oscillators? I'd also recommend the PIC12F1840, as it is a nice chip with the ultra low power modes, and was also the pic used chosen by Revolution Education for the 8pin model PICAXE chip.

  8. Avataaar/Circle Created with python_avatars Nicnl says:

    Verry interesting and classy way of representing your loops on paper, I might do the same from now on.
    Great video, as usual. Thank you Julian.

  9. Avataaar/Circle Created with python_avatars h3po says:

    if you're just a few percent too slow, how about unrolling the loops using assembler macros? check out @cnlohr, he's done some incredible bitbanging stuff

  10. Avataaar/Circle Created with python_avatars Jeff Merlin says:

    Great video! Will you be doing AVR assembly in the near future? The AVR has no internal clock division and is cheap. Most instructions are single clock cycle execution.

  11. Avataaar/Circle Created with python_avatars David Buchanan says:

    I'm running into similar timing problems with my 4MHz 6502 SBC. I can fit basic patterns in the 9us window, but anything more complex causes issues. I plan to compute the pixel values beforehand, and then stream them from memory to the output.

  12. Avataaar/Circle Created with python_avatars bwack says:

    Make an 8bit LFSR in software and display it on the ring for a sparkle effect ๐Ÿ™‚ I'm going to buy a neopixel ring and try it out !

  13. Avataaar/Circle Created with python_avatars Jo Russ says:

    Use MACRO instead of calling subroutines. Code size will grow considerably but you'll lose all that call/stack management and gain clock cycles.

  14. Avataaar/Circle Created with python_avatars fredlllll says:

    would it be worth to see if we can get this to work with c code? ๐Ÿ˜‰

  15. Avataaar/Circle Created with python_avatars FindLiberty says:

    Nice!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.